chiark / gitweb /
elogind.git
9 years agoudev: import the full db on MOVE events for devices without dev_t
Tom Gundersen [Tue, 9 Sep 2014 10:23:19 +0000 (12:23 +0200)]
udev: import the full db on MOVE events for devices without dev_t

9 years agobuild-sys: make hibernation support configure option also handle hybrid-sleep; fix...
Ivan Shapovalov [Mon, 8 Sep 2014 21:40:51 +0000 (01:40 +0400)]
build-sys: make hibernation support configure option also handle hybrid-sleep; fix indentation

9 years agohwdb: update
Marcel Holtmann [Tue, 9 Sep 2014 05:44:02 +0000 (07:44 +0200)]
hwdb: update

9 years agoexecute: silence warnings
Thomas Hindoe Paaboel Andersen [Mon, 8 Sep 2014 20:10:36 +0000 (22:10 +0200)]
execute: silence warnings

Mark two function parameters as const

9 years agonamespace: avoid posible use of uninitialized variable
Thomas Hindoe Paaboel Andersen [Mon, 8 Sep 2014 20:05:17 +0000 (22:05 +0200)]
namespace: avoid posible use of uninitialized variable

9 years agorules: net-setup-link - remove stray linebreak
Mantas Mikulėnas [Mon, 8 Sep 2014 19:53:39 +0000 (22:53 +0300)]
rules: net-setup-link - remove stray linebreak

If not backslash-escaped, it splits the rule in two.

9 years agorules: net-setup-link - preserve ID_NET_LINK_FILE and ID_NET_NAME after MOVE
Tom Gundersen [Mon, 8 Sep 2014 15:16:24 +0000 (17:16 +0200)]
rules: net-setup-link - preserve ID_NET_LINK_FILE and ID_NET_NAME after MOVE

9 years agomachined: remove redundant sd_notify
Dave Reisner [Mon, 8 Sep 2014 13:27:41 +0000 (09:27 -0400)]
machined: remove redundant sd_notify

We already call this on via bus_event_loop_with_idle on exit. This
makes machined consistent with other similar daemons: localed,
hostnamed, timedated.

9 years agonetworkd: allow specification of DHCP route metric
Angus Gibson [Mon, 8 Sep 2014 10:26:47 +0000 (20:26 +1000)]
networkd: allow specification of DHCP route metric

This lets the routing metric for links to be specified per-network,
still defaulting to DHCP_ROUTE_METRIC (1024) if unspecified. Hopefully
this helps with multiple interfaces configured via DHCP.

9 years agonetworkctl: show the link file applied to each link
Tom Gundersen [Mon, 8 Sep 2014 12:18:32 +0000 (14:18 +0200)]
networkctl: show the link file applied to each link

9 years agoudev: link-config - only set *name on success
Tom Gundersen [Mon, 8 Sep 2014 12:17:46 +0000 (14:17 +0200)]
udev: link-config - only set *name on success

9 years agoudev: net_setup_link - export the .link filename applied to the link
Tom Gundersen [Mon, 8 Sep 2014 12:00:58 +0000 (14:00 +0200)]
udev: net_setup_link - export the .link filename applied to the link

9 years agonetworkctl: show the network file applied to each link
Tom Gundersen [Mon, 8 Sep 2014 12:00:34 +0000 (14:00 +0200)]
networkctl: show the network file applied to each link

9 years agosd-network: add _get_network_file api
Tom Gundersen [Mon, 8 Sep 2014 11:50:52 +0000 (13:50 +0200)]
sd-network: add _get_network_file api

9 years agoTODO
Tom Gundersen [Mon, 8 Sep 2014 11:12:06 +0000 (13:12 +0200)]
TODO

9 years agonetworkd: add preferred source to dhcp4 gateway route
Emil Renner Berthing [Fri, 5 Sep 2014 09:56:02 +0000 (11:56 +0200)]
networkd: add preferred source to dhcp4 gateway route

This makes DHCPv4 and IPv4LL coexist peacefully.

[tomegun: apply to both the dhcp routes, use in_addr_is_null() rather than a
separate variable to indicate when prefsrc should be applied]

9 years agounits: networkd - order after udev
Tom Gundersen [Sat, 6 Sep 2014 20:37:31 +0000 (22:37 +0200)]
units: networkd - order after udev

This way we are sure that /dev/net/tun has been given the right permissions before we try to connect to it.
Ideally, we should create tun/tap devices over netlink, and then this whole issue would go away.

9 years agonetworkd: netdev - failing to create a netdev is not fatal, just fail that netdev
Tom Gundersen [Sat, 6 Sep 2014 20:16:20 +0000 (22:16 +0200)]
networkd: netdev - failing to create a netdev is not fatal, just fail that netdev

9 years agonetworkd: tuntap - return correct error when /dev/net/tun cannot be opened
Tom Gundersen [Sat, 6 Sep 2014 20:06:58 +0000 (22:06 +0200)]
networkd: tuntap - return correct error when /dev/net/tun cannot be opened

9 years agoservice: hook up custom endpoint logic
Daniel Mack [Fri, 22 Aug 2014 17:02:03 +0000 (19:02 +0200)]
service: hook up custom endpoint logic

If BusPolicy= was passed, the parser function will have created
an ExecContext->bus_endpoint object, along with policy information.

In that case, create a kdbus endpoint, and pass its path name to the
namespace logic, to it will be mounted over the actual 'bus' node.

At endpoint creation time, no policy is updloaded. That is done after
fork(), through a separate call. This is necessary because we don't
know the real uid of the process earlier than that.

9 years agoexit-status: add new exit code for custom endpoint errors
Daniel Mack [Fri, 5 Sep 2014 15:24:27 +0000 (17:24 +0200)]
exit-status: add new exit code for custom endpoint errors

9 years agonamespace: add support for custom kdbus endpoint
Daniel Mack [Fri, 22 Aug 2014 16:55:21 +0000 (18:55 +0200)]
namespace: add support for custom kdbus endpoint

If a path to a previously created custom kdbus endpoint is passed in,
bind-mount a new devtmpfs that contains a 'bus' node, which in turn in
bind-mounted with the custom endpoint. This tmpfs then mounted over the
kdbus subtree that refers to the current bus.

This way, we can fake the bus node in order to lock down services with
a kdbus custom endpoint policy.

9 years agobus: parse BusPolicy directive in service files
Daniel Mack [Mon, 18 Aug 2014 20:42:28 +0000 (22:42 +0200)]
bus: parse BusPolicy directive in service files

Add a new directive called BusPolicy to define custom endpoint policies. If
one such directive is given, an endpoint object in the service's ExecContext is
created and the given policy is added to it.

9 years agobus: add code to create custom endpoints and set their policy
Daniel Mack [Mon, 18 Aug 2014 17:58:42 +0000 (19:58 +0200)]
bus: add code to create custom endpoints and set their policy

Custom endpoints are alternative connection points to a bus, allowing
specific policy to be uploaded.

Add two functions to bus-kernel. One to create such endpoints, and another
one for setting a policy for them.

9 years agobus: add kdbus endpoint types
Daniel Mack [Mon, 18 Aug 2014 17:55:32 +0000 (19:55 +0200)]
bus: add kdbus endpoint types

Add types to describe endpoints and associated policy entries,
and add a BusEndpoint instace to ExecContext.

9 years agobus: factor out bus policy items
Daniel Mack [Mon, 18 Aug 2014 20:07:47 +0000 (22:07 +0200)]
bus: factor out bus policy items

In order to re-use the policy definitions, factor them out into their own
files.

9 years agohwdb: Update database of Bluetooth company identifiers
Marcel Holtmann [Mon, 8 Sep 2014 03:06:18 +0000 (05:06 +0200)]
hwdb: Update database of Bluetooth company identifiers

9 years agoman: fix references to systemctl man page which is now in section 1
Michael Biebl [Sat, 6 Sep 2014 11:43:25 +0000 (13:43 +0200)]
man: fix references to systemctl man page which is now in section 1

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760613

9 years agoupdate TODO
Lennart Poettering [Fri, 5 Sep 2014 19:49:23 +0000 (21:49 +0200)]
update TODO

9 years agoexit-status: fix URL in comment
Daniel Mack [Fri, 5 Sep 2014 11:48:05 +0000 (13:48 +0200)]
exit-status: fix URL in comment

The LSB sites have moved, so update the URL.

9 years agoexec: move code executed after fork into exec_child()
Daniel Mack [Sat, 23 Aug 2014 14:02:21 +0000 (16:02 +0200)]
exec: move code executed after fork into exec_child()

This factors out one conditional branch that has grown way too big, and
makes the code more readable by using return statements rather than jump
labels.

9 years agoexec: factor out most function arguments of exec_spawn() to ExecParameters
Daniel Mack [Sat, 23 Aug 2014 13:28:37 +0000 (15:28 +0200)]
exec: factor out most function arguments of exec_spawn() to ExecParameters

This way, the list of arguments to that function gets more comprehensive,
and we can get around passing lots of NULL and 0 arguments from socket.c,
swap.c and mount.c.

It also allows for splitting up the code in exec_spawn().

While at it, make ExecContext const in execute.c.

9 years agoman: make it more clear that the concepts systemctl(1) manage are introduced in syste...
Lennart Poettering [Thu, 4 Sep 2014 19:41:54 +0000 (21:41 +0200)]
man: make it more clear that the concepts systemctl(1) manage are introduced in systemd(1)

Based on a suggestion of Ken Coar.

9 years agohibernate-resume: let's move all hibernate-resume tools into the same directory
Lennart Poettering [Thu, 4 Sep 2014 19:40:00 +0000 (21:40 +0200)]
hibernate-resume: let's move all hibernate-resume tools into the same directory

They are closely related, so let's move them together, and clean up the
.c file naming while we are at it.

9 years agonetworkd: link - allow loopback links to be manage, but ignore DHCP/IPv4LL
Tom Gundersen [Thu, 4 Sep 2014 18:54:08 +0000 (20:54 +0200)]
networkd: link - allow loopback links to be manage, but ignore DHCP/IPv4LL

9 years agobuild: don't install busname units and target if kdbus support is disabled
Michael Biebl [Wed, 3 Sep 2014 21:34:29 +0000 (23:34 +0200)]
build: don't install busname units and target if kdbus support is disabled

9 years agonetworkd: link - clarify log message when receiving address for unknown link
Tom Gundersen [Thu, 4 Sep 2014 12:16:56 +0000 (14:16 +0200)]
networkd: link - clarify log message when receiving address for unknown link

9 years agonetworkd: link - do not manage loopback links
Tom Gundersen [Thu, 4 Sep 2014 11:40:24 +0000 (13:40 +0200)]
networkd: link - do not manage loopback links

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=83134.

9 years agonetworkd: link - save link flags when the link is added
Tom Gundersen [Thu, 4 Sep 2014 12:10:43 +0000 (14:10 +0200)]
networkd: link - save link flags when the link is added

Don't wait for the link to be fully synchronised.

9 years agonetworkd: move carrier gained/lost handling from link_update_flags() to link_update()
Tom Gundersen [Thu, 4 Sep 2014 12:05:54 +0000 (14:05 +0200)]
networkd: move carrier gained/lost handling from link_update_flags() to link_update()

This allows us also to simplify link_has_carrier() a bit.

9 years agoUpdate TODO
Zbigniew Jędrzejewski-Szmek [Thu, 4 Sep 2014 02:12:51 +0000 (22:12 -0400)]
Update TODO

9 years agoman: fix typo
Zbigniew Jędrzejewski-Szmek [Thu, 4 Sep 2014 02:07:29 +0000 (22:07 -0400)]
man: fix typo

9 years agosystemd: fix argument ordering in UnsetAndSetEnvironment
Zbigniew Jędrzejewski-Szmek [Thu, 4 Sep 2014 02:22:38 +0000 (22:22 -0400)]
systemd: fix argument ordering in UnsetAndSetEnvironment

Fixup for v208-615-g718db96199.

9 years agolocaled: check for partially matching converted keymaps
Zbigniew Jędrzejewski-Szmek [Thu, 4 Sep 2014 02:55:54 +0000 (22:55 -0400)]
localed: check for partially matching converted keymaps

If a user specifies multiple X11 keymaps, with a (at least the first
one) nonempty variant, and we don't match the whole combo, use
a converted keymap which includes the variant in preference to
the default, variantless, keymap.

E.g.: We would convert X11 config "layout=fr variant=mac" to "fr-mac",
but "layout=fr,us variant=mac," to "fr", because we don't have a
converted keymap which would match "fr,us", and we don't have a legacy
mapping for "fr,us". This is unexpected, and if we cannot match both,
it is still better to match the primary mapping and use "fr-mac".

9 years agolocaled: introduce helper function to simplify matching
Zbigniew Jędrzejewski-Szmek [Thu, 4 Sep 2014 02:55:52 +0000 (22:55 -0400)]
localed: introduce helper function to simplify matching

9 years agolocaled: log locale/keymap changes in detail
Zbigniew Jędrzejewski-Szmek [Thu, 4 Sep 2014 02:55:16 +0000 (22:55 -0400)]
localed: log locale/keymap changes in detail

Converting X11 to legacy keymaps and back is a fucking mess. Let's
make it at least possible to request detailed logs of what is being
changed and why (LOG_DEBUG level).

At LOG_INFO level, we would log the requested change of X11 or console
keymap, but not the resulting change after conversion to console or X11.
Make sure that every change of configuration on disk has a matching
line in the logs.

9 years agolocaled: remove free_and_copy
Zbigniew Jędrzejewski-Szmek [Thu, 4 Sep 2014 02:53:23 +0000 (22:53 -0400)]
localed: remove free_and_copy

It was mostly a duplicate of free_and_strdup().

9 years agolocaled: double free in error path and modernization
Zbigniew Jędrzejewski-Szmek [Wed, 3 Sep 2014 14:28:24 +0000 (10:28 -0400)]
localed: double free in error path and modernization

Very unlikely to trigger, but in principle strv_free
could be called twice: once explictly, and once from cleanup.

9 years agobuild-sys: configure option to disable hibernation
Umut Tezduyar Lindskog [Tue, 2 Sep 2014 10:31:49 +0000 (12:31 +0200)]
build-sys: configure option to disable hibernation

9 years agoman: two fixes, reported on irc by 'wget'
Lennart Poettering [Wed, 3 Sep 2014 17:31:22 +0000 (19:31 +0200)]
man: two fixes, reported on irc by 'wget'

9 years agoupdate TODO
Lennart Poettering [Wed, 3 Sep 2014 16:59:17 +0000 (18:59 +0200)]
update TODO

9 years agobase-file-system: always generate error messages locally
Lennart Poettering [Wed, 3 Sep 2014 17:00:21 +0000 (19:00 +0200)]
base-file-system: always generate error messages locally

Functions either should generate error messages for everything they do
themselves, or for nothing and let the caller do it. But they certainly
shouldn't generate errors for some messages but not for others. Since
the function in this case is one that generates messages on its own, it
really should do that for everything, not just for some things, hence.

9 years agoupdate TODO
Lukas Nykryn [Wed, 3 Sep 2014 11:59:59 +0000 (13:59 +0200)]
update TODO

Yum was creating <container>/var/run/yum.pid and hence this directory
was created before filesystem package could create the symlink
/var/run -> /run.
This should be now fixed in yum.

9 years agoinitrd-parse-etc.service: ignore return code of daemon-reload
Harald Hoyer [Wed, 3 Sep 2014 11:28:31 +0000 (13:28 +0200)]
initrd-parse-etc.service: ignore return code of daemon-reload

It seems the return code of systemctl daemon-reload can be !=0 in some
circumstances, which causes a failure of the unit and breaks booting in
the initrd.

9 years agobase_filesystem_create: do not try to create "/root" if it exists
Harald Hoyer [Wed, 3 Sep 2014 11:22:40 +0000 (13:22 +0200)]
base_filesystem_create: do not try to create "/root" if it exists

The check, if the directory/file already exists is only executed, if
there is a symlink target specified. In case of "/root", there is none,
so it is unconditionally tried to create the directory.

In case of a readonly filesystem, errno != EEXIST, but errno == EROFS,
so base_filesystem_create() and switch_root does not succeed.

This patch checks for existance not only in the symlink case.

9 years agoman: fix file extension in udev rules example
Zbigniew Jędrzejewski-Szmek [Tue, 2 Sep 2014 23:37:04 +0000 (19:37 -0400)]
man: fix file extension in udev rules example

https://bugzilla.redhat.com/show_bug.cgi?id=634736

9 years agoRevert "timesyncd: remove retry_timer logic which is covered by the server timeout"
Kay Sievers [Tue, 2 Sep 2014 13:28:56 +0000 (15:28 +0200)]
Revert "timesyncd: remove retry_timer logic which is covered by the server timeout"

This reverts commit 665c6a9eab46b0b253af6566ca9fc70c866b3fcd.

On Tue, Sep 2, 2014 at 3:17 PM, Miroslav Lichvar <mlichvar@redhat.com> wrote:
>
> With the other patch allowing missed replies included it's now getting
> stuck as there is no timer to send the 2nd and 3rd request.

9 years agotimesyncd: don't reset polling interval when reselecting server
Kay Sievers [Tue, 2 Sep 2014 12:33:59 +0000 (14:33 +0200)]
timesyncd: don't reset polling interval when reselecting server

Original patch from: Miroslav Lichvar <mlichvar@redhat.com>

9 years agotimesyncd: allow two missed replies before reselecting server
Miroslav Lichvar [Tue, 2 Sep 2014 12:29:51 +0000 (14:29 +0200)]
timesyncd: allow two missed replies before reselecting server

After receiving a reply from the server, allow two missed replies before
switching to another server to avoid unnecessary clock hopping when
packets are getting lost in the network.

9 years agotimesyncd: remove retry_timer logic which is covered by the server timeout
Kay Sievers [Tue, 2 Sep 2014 12:27:00 +0000 (14:27 +0200)]
timesyncd: remove retry_timer logic which is covered by the server timeout

9 years agotimesyncd: wait before reconnecting to first server
Miroslav Lichvar [Wed, 27 Aug 2014 14:47:24 +0000 (16:47 +0200)]
timesyncd: wait before reconnecting to first server

When all servers are exhausted, wait for one poll interval before trying
to connect again to the first server in the list. Also, keep increasing
the polling interval to make sure a client not getting any valid replies
will not send requests to any server more frequently than is allowed by
the maximum polling interval.

9 years agosd-rtnl: don't assign to unused variable
Tom Gundersen [Mon, 1 Sep 2014 20:59:52 +0000 (22:59 +0200)]
sd-rtnl: don't assign to unused variable

Reported by Thomas H.P. Andersen <phomes@gmail.com>.

9 years agorules: remove firmware loading rules
Zbigniew Jędrzejewski-Szmek [Mon, 1 Sep 2014 16:55:23 +0000 (12:55 -0400)]
rules: remove firmware loading rules

blueness> poettering, was there a reason for not removing
          50-firmware.rules when you nuked userland firmware
          loading?

Followup for v216-119-gbe2ea723b1.

9 years agologin: simplify controller handling
David Herrmann [Mon, 1 Sep 2014 12:04:44 +0000 (14:04 +0200)]
login: simplify controller handling

Simplify the way we handler session-controllers and fix several
shortcomings:
 * send ReleaseDevice() signals on forced session takeover
 * fix mem-leaks for busnames in case VT preparation fails (non-critical)
 * avoid passing pre-allocated names to helpers

9 years agologin: fix mem leak
Thomas Hindoe Paaboel Andersen [Sun, 31 Aug 2014 21:34:01 +0000 (23:34 +0200)]
login: fix mem leak

9 years agoconfig-parser: fix mem leak
Thomas Hindoe Paaboel Andersen [Sun, 31 Aug 2014 21:13:12 +0000 (23:13 +0200)]
config-parser: fix mem leak

9 years agojournal-remote: fix check if realloc failed
Thomas Hindoe Paaboel Andersen [Sun, 31 Aug 2014 20:54:40 +0000 (22:54 +0200)]
journal-remote: fix check if realloc failed

9 years agotest-network: fix off-by-one error in test
Tom Gundersen [Sun, 31 Aug 2014 17:22:33 +0000 (19:22 +0200)]
test-network: fix off-by-one error in test

9 years agomissing: add IFF_MULTI_QUEUE
Tom Gundersen [Sun, 31 Aug 2014 16:50:23 +0000 (18:50 +0200)]
missing: add IFF_MULTI_QUEUE

This was added in 3.8, but we should building with 3.7 headers.

Reported by Samuli Suominen <ssuominen@gentoo.org>.

9 years agojournalctl: Allow to disable line cap with --lines=all
Jan Janssen [Sun, 31 Aug 2014 09:12:22 +0000 (11:12 +0200)]
journalctl: Allow to disable line cap with --lines=all

9 years agoQuote unit names in suggested systemctl commandlines
Zbigniew Jędrzejewski-Szmek [Sun, 31 Aug 2014 04:42:27 +0000 (00:42 -0400)]
Quote unit names in suggested systemctl commandlines

The fact that unit names have to be quoted can be a bit surprising.
Show quotes in the hint commandline, but only after checking that this
is necessary, since quotes are visually heavy and usually not needed.

https://bugs.freedesktop.org/show_bug.cgi?id=82832

9 years agounits: update rescue.service and emergency.service
Zbigniew Jędrzejewski-Szmek [Sun, 31 Aug 2014 02:34:56 +0000 (22:34 -0400)]
units: update rescue.service and emergency.service

^D works in emergency.service too. One needs to log in when in rescue
mode too.

9 years agounits: m4 is not needed for rescue.service
Zbigniew Jędrzejewski-Szmek [Sun, 31 Aug 2014 03:59:37 +0000 (23:59 -0400)]
units: m4 is not needed for rescue.service

9 years agounits: make emergency.service conflict with rescue.service
Zbigniew Jędrzejewski-Szmek [Sun, 31 Aug 2014 02:33:40 +0000 (22:33 -0400)]
units: make emergency.service conflict with rescue.service

They both use StandardInput=tty-force so they cannot be run
concurrently.

https://bugs.freedesktop.org/show_bug.cgi?id=82778
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757072

9 years agotimesyncd-manager: don't clear current_server_name if ServerAddress is NULL
Steven Noonan [Sat, 30 Aug 2014 12:58:06 +0000 (05:58 -0700)]
timesyncd-manager: don't clear current_server_name if ServerAddress is NULL

https://bugs.freedesktop.org/show_bug.cgi?id=83091

[zj: add comment]

9 years agosd-dhcp6-client: properly calculate buffer size when parsing options
Zbigniew Jędrzejewski-Szmek [Sat, 30 Aug 2014 22:31:21 +0000 (18:31 -0400)]
sd-dhcp6-client: properly calculate buffer size when parsing options

Also make pointer calculations more explicit so they are
easier to understand.

9 years agotest-dhcp6-client: Fix option length
Patrik Flykt [Fri, 29 Aug 2014 06:20:46 +0000 (09:20 +0300)]
test-dhcp6-client: Fix option length

The whole DHCPv6 test message length was incorrectly used as the length
of DHCPv6 options causing the following bad memory access:

$ build/test-dhcp6-client
Assertion 'interface_index >= -1' failed at ../src/libsystemd-network/sd-dhcp6-client.c:129, function sd_dhcp6_client_set_index(). Ignoring.
=================================================================
==29135==ERROR: AddressSanitizer: global-buffer-overflow on address 0x7fe204aa9148 at pc 0x7fe204a5958f bp 0x7fff3e47d470 sp 0x7fff3e47d460
READ of size 1 at 0x7fe204aa9148 thread T0
    #0 0x7fe204a5958e in option_parse_hdr ../src/libsystemd-network/dhcp6-option.c:145
    #1 0x7fe204a59884 in dhcp6_option_parse ../src/libsystemd-network/dhcp6-option.c:165
    #2 0x7fe204a4eb9c in test_advertise_option ../src/libsystemd-network/test-dhcp6-client.c:227
    #3 0x7fe204a51c58 in main ../src/libsystemd-network/test-dhcp6-client.c:584
    #4 0x7fe2031590df in __libc_start_main (/lib64/libc.so.6+0x200df)
    #5 0x7fe204a4cc5b (/home/test/systemd/build/test-dhcp6-client+0x25c5b)

0x7fe204aa9148 is located 2 bytes to the right of global variable 'msg_advertise' from '../src/libsystemd-network/test-dhcp6-client.c' (0x7fe204aa9080) of size 198
0x7fe204aa9148 is located 56 bytes to the left of global variable 'msg_reply' from '../src/libsystemd-network/test-dhcp6-client.c' (0x7fe204aa9180) of size 173
SUMMARY: AddressSanitizer: global-buffer-overflow ../src/libsystemd-network/dhcp6-option.c:145 option_parse_hdr

9 years agocgroup-util: shorten cg_path_get_session
Zbigniew Jędrzejewski-Szmek [Fri, 29 Aug 2014 12:48:33 +0000 (07:48 -0500)]
cgroup-util: shorten cg_path_get_session

9 years agosystemd: fix error message
Zbigniew Jędrzejewski-Szmek [Sat, 30 Aug 2014 21:22:42 +0000 (17:22 -0400)]
systemd: fix error message

9 years agotest-compress: also test with incompressible inputs
Zbigniew Jędrzejewski-Szmek [Sat, 30 Aug 2014 18:47:36 +0000 (14:47 -0400)]
test-compress: also test with incompressible inputs

9 years agojournal/compress: use LZ4_compress_continue()
Evangelos Foutras [Sat, 30 Aug 2014 07:13:43 +0000 (10:13 +0300)]
journal/compress: use LZ4_compress_continue()

We can't use LZ4_compress_limitedOutput_continue() because in the
worst-case scenario the compressed output can be slightly bigger than
the input block. This generally affects very few blocks and is no reason
to abort the compression process.

I ran into this when I noticed that Chromium core dumps weren't being
compressed. After switching to LZ4_compress_continue() a ~330MB Chromium
core dump gets compressed to ~17M.

9 years agosd-ipv4ll: name the correct source
Tom Gundersen [Fri, 29 Aug 2014 11:08:16 +0000 (13:08 +0200)]
sd-ipv4ll: name the correct source

9 years agoFix a few more typos
Ruben Kerkhof [Sat, 30 Aug 2014 15:13:16 +0000 (17:13 +0200)]
Fix a few more typos

9 years agoUpdate french translation
Sylvain Plantefève [Sat, 30 Aug 2014 14:25:59 +0000 (16:25 +0200)]
Update french translation

9 years agolibudev: fix symbol version for udev_queue_flush() and udev_queue_get_fd()
Michael Biebl [Sat, 30 Aug 2014 00:01:51 +0000 (02:01 +0200)]
libudev: fix symbol version for udev_queue_flush() and udev_queue_get_fd()

Those symbols were introduced in commit
14cb733684d3c3f50d088a3a370ddf8e8894dfa4 and released in v215.

9 years agoudev: bump event timeout to 60 seconds
Kay Sievers [Sat, 30 Aug 2014 09:36:32 +0000 (11:36 +0200)]
udev: bump event timeout to 60 seconds

9 years agoudev: remove userspace firmware loading support
Kay Sievers [Sat, 30 Aug 2014 09:34:20 +0000 (11:34 +0200)]
udev: remove userspace firmware loading support

9 years agocompletion: filter templates from restartable units
Dave Reisner [Sat, 30 Aug 2014 00:35:15 +0000 (20:35 -0400)]
completion: filter templates from restartable units

Since c6a373a2634854, we might encounter unit templates via the
'list-units' verb. These aren't restartable (and we throw errors), so
make sure they're filtered out of the completion options.

fixes downstream bug: https://bugs.archlinux.org/task/41719

9 years agoUpdate Russian translation
Sergey Ptashnick [Fri, 29 Aug 2014 15:48:47 +0000 (19:48 +0400)]
Update Russian translation

By analogy with commit 1977376274.

9 years agotimesyncd: check root distance
Miroslav Lichvar [Wed, 27 Aug 2014 14:47:20 +0000 (16:47 +0200)]
timesyncd: check root distance

NTPv4 servers don't reply with unsynchronized status when they lost
synchronization, they only keep increasing the root dispersion and it's
up to the client to decide at which point they no longer consider it
synchronized.

Ignore replies with root distance over 5 seconds.

9 years agotimesyncd: get kernel timestamp in nanoseconds
Miroslav Lichvar [Wed, 27 Aug 2014 14:47:19 +0000 (16:47 +0200)]
timesyncd: get kernel timestamp in nanoseconds

9 years agotimesyncd: fix calculation of transmit time
Miroslav Lichvar [Wed, 27 Aug 2014 14:47:18 +0000 (16:47 +0200)]
timesyncd: fix calculation of transmit time

The kernel timestamp (recv_time) is made earlier than current time
(now_ts), use the timestamp captured before sending packet directly.

9 years agotimesyncd: check if stratum is valid
Miroslav Lichvar [Wed, 27 Aug 2014 14:47:17 +0000 (16:47 +0200)]
timesyncd: check if stratum is valid

9 years agoFix a few typos in log messages
Ruben Kerkhof [Fri, 29 Aug 2014 11:28:04 +0000 (13:28 +0200)]
Fix a few typos in log messages

9 years agosystemd-journal-upload: fix invalid After=
Marius Tessmann [Thu, 28 Aug 2014 20:01:46 +0000 (22:01 +0200)]
systemd-journal-upload: fix invalid After=

After= belongs into [Unit], not [Install]. Found with systemd-analyze
verify.

9 years agosystemd-firstboot: fix typo in man page
Marius Tessmann [Thu, 28 Aug 2014 20:01:45 +0000 (22:01 +0200)]
systemd-firstboot: fix typo in man page

9 years agosystemd-firstboot.service: fix man page section
Marius Tessmann [Thu, 28 Aug 2014 20:01:44 +0000 (22:01 +0200)]
systemd-firstboot.service: fix man page section

Found with systemd-analyze verify.

9 years agosd-event: simplify sd_event_source_set_name()
David Herrmann [Thu, 28 Aug 2014 20:44:28 +0000 (22:44 +0200)]
sd-event: simplify sd_event_source_set_name()

free_and_strdup() does exactly the same as sd_event_source_set_name(), use
it!

9 years agosd-event: name event sources used in libraries
Tom Gundersen [Thu, 28 Aug 2014 13:46:29 +0000 (15:46 +0200)]
sd-event: name event sources used in libraries

This should help in debugging failing event sources.

9 years agosd-event: use event source name rather than address in debug messages
Tom Gundersen [Thu, 28 Aug 2014 13:48:07 +0000 (15:48 +0200)]
sd-event: use event source name rather than address in debug messages