chiark / gitweb /
5 years agoTranslate fsckd messages for plymouth
Didier Roche [Mon, 26 Jan 2015 16:12:54 +0000 (17:12 +0100)]
Translate fsckd messages for plymouth

For plymouth themes not supporting i18n (like .script), send translated
messages to display to user, which is equivalent to the sent machine
readable data.

5 years agoAdd gettext support
Didier Roche [Thu, 29 Jan 2015 15:12:58 +0000 (16:12 +0100)]
Add gettext support

5 years agoConnect to plymouth and support cancellation of in progress fsck
Didier Roche [Thu, 5 Feb 2015 16:08:18 +0000 (17:08 +0100)]
Connect to plymouth and support cancellation of in progress fsck

Try to connect and send to plymouth (if running) some checked report progress,
using direct plymouth protocole.

Update message is the following:
* num_devices corresponds to the current number of devices being checked (int)
* progress corresponds to the current minimum percentage of all devices being
  checked (float, from 0 to 100)
* string is a translated message ready to be displayed by the plymouth theme
  displaying the information above. It can be overriden by plymouth themes
  supporting i18n.

Grab in fsckd plymouth watch key Control+C, and propagate this cancel request
to systemd-fsck which will terminate fsck.

Send a message to signal to user what key we are grabbing for fsck cancel.

Message is: fsckd-cancel-msg:<string>
Where string is a translated string ready to be displayed by the plymouth theme
indicating that Control+C can be used to cancel current checks. It can be
overriden (matching only fsckd-cancel-msg prefix) for themes supporting i18n.

5 years agosystemd-fsck: always connect to systemd-fsckd
Didier Roche [Mon, 26 Jan 2015 15:01:11 +0000 (16:01 +0100)]
systemd-fsck: always connect to systemd-fsckd

Remove the plymouth running or show-status checks from systemd-fsck. Instead,
always connect to systemd-fsckd socket, and let this one decide if we display
progress or not.

5 years agofsckd daemon for inter-fsckd communication
Didier Roche [Wed, 4 Feb 2015 15:42:47 +0000 (16:42 +0100)]
fsckd daemon for inter-fsckd communication

Add systemd-fsckd multiplexer which accepts multiple systemd-fsck
instances to connect to it and sends progress report. systemd-fsckd then
computes and writes to /dev/console the number of devices currently being
checked and the minimum fsck progress. This will be used for interactive
progress report and cancelling in plymouth.

systemd-fsckd stops on idle when no systemd-fsck is connected.

Make the necessary changes to systemd-fsck to connect to the systemd-fsckd

5 years agotest: utf8 - fix utf16 tests on BE machines
Tom Gundersen [Wed, 18 Feb 2015 13:33:50 +0000 (14:33 +0100)]
test: utf8 - fix utf16 tests on BE machines

5 years agogummiboot/sd-boot/systemd-boot: rename galore
Tom Gundersen [Tue, 17 Feb 2015 19:12:50 +0000 (20:12 +0100)]
gummiboot/sd-boot/systemd-boot: rename galore

What used to be gummiboot, was renamed sd-boot when it was merged into
systemd. Let's try to be a bit more consistent with the rest of systemd
and rename it again as follows:

The EFI bootloader is now called 'systemd-bootx64.efi', and its sources are in
'src/boot/efi/'. The drop-in directory where bootctl will find EFI loaders
is now /usr/lib/systemd/boot/efi/.

5 years compile with gcc v5
Harald Hoyer [Wed, 18 Feb 2015 13:45:12 +0000 (14:45 +0100)] compile with gcc v5

Set -std=gnu90 to let efibind.h define the standard types.

[tomegun: retyped the patch as the originl would not apply]

5 years agoupdate TODO
Lennart Poettering [Wed, 18 Feb 2015 12:08:23 +0000 (13:08 +0100)]
update TODO

5 years agologind: open up most bus calls for unpriviliged processes, using PolicyKit
Lennart Poettering [Wed, 18 Feb 2015 11:55:25 +0000 (12:55 +0100)]
logind: open up most bus calls for unpriviliged processes, using PolicyKit

Also, allow clients to alter their own objects without any further
priviliges. i.e. this allows clients to kill and lock their own sessions
without involving PK.

5 years agomachinectl: issue all bus commands while allowing interactive auth
Lennart Poettering [Wed, 18 Feb 2015 10:42:03 +0000 (11:42 +0100)]
machinectl: issue all bus commands while allowing interactive auth

5 years agomachined: open up most of machined's commands to unprivileged clients via PolicyKit
Lennart Poettering [Wed, 18 Feb 2015 10:41:28 +0000 (11:41 +0100)]
machined: open up most of machined's commands to unprivileged clients via PolicyKit

5 years agosd-bus: allow setting a per-connection default value for the "allow-interactive-authe...
Lennart Poettering [Tue, 17 Feb 2015 19:30:33 +0000 (20:30 +0100)]
sd-bus: allow setting a per-connection default value for the "allow-interactive-authentication" message flag

Most of our client tools want to set this bit for all their method
calls, even though it defaults to off in sd-bus, and rightfully so.
Hence, to simplify thing, introduce a per sd_bus-object flag that sets
the default value for all messages created on the connection.

5 years agoimport: remove unused variable
Thomas Hindoe Paaboel Andersen [Tue, 17 Feb 2015 19:06:13 +0000 (20:06 +0100)]
import: remove unused variable

5 years agomachined: make "machinectl copy-to" and "machinectl copy-from" server side operations
Lennart Poettering [Tue, 17 Feb 2015 18:22:03 +0000 (19:22 +0100)]
machined: make "machinectl copy-to" and "machinectl copy-from" server side operations

This way, any bus client can make use of these calls.

5 years agomachined: various simplifications
Lennart Poettering [Tue, 17 Feb 2015 17:54:33 +0000 (18:54 +0100)]
machined: various simplifications

5 years agobus: sync with kdbus
David Herrmann [Tue, 17 Feb 2015 17:05:32 +0000 (18:05 +0100)]
bus: sync with kdbus

Pull in new kdbus changes, namely:
 - ENOMSG is merged with EAGAIN for consistency

5 years agobus: don't rely on static IDs in tests
David Herrmann [Tue, 17 Feb 2015 17:03:50 +0000 (18:03 +0100)]
bus: don't rely on static IDs in tests

We should never put any constraints on the IDs returned by the kernel. Use
sd_bus_get_unique_name() to retrieve the ID of a peer.

5 years agobuild-sys: add missing HAVE_GNUEFI condition
Kay Sievers [Tue, 17 Feb 2015 17:01:10 +0000 (18:01 +0100)]
build-sys: add missing HAVE_GNUEFI condition

5 years agomachined: move logic for bind mounting into containers from machinectl to machined
Lennart Poettering [Tue, 17 Feb 2015 16:19:57 +0000 (17:19 +0100)]
machined: move logic for bind mounting into containers from machinectl to machined

This extends the bus interface, adding BindMountMachine() for bind
mounting directories from the host into the container.

5 years agobootctl: add sd-boot support
Kay Sievers [Sun, 8 Feb 2015 16:18:30 +0000 (17:18 +0100)]
bootctl: add sd-boot support

5 years agosd-boot: add EFI boot manager and stub loader
Kay Sievers [Sun, 8 Feb 2015 11:25:35 +0000 (12:25 +0100)]
sd-boot: add EFI boot manager and stub loader

5 years agotmpfiles: Fix parse_acl error message
Martin Pitt [Tue, 17 Feb 2015 11:47:51 +0000 (12:47 +0100)]
tmpfiles: Fix parse_acl error message

parse_acl() returns the error instead of setting errno.

5 years agojournal-remote: fix client_cert memory leak
Michal Schmidt [Tue, 17 Feb 2015 09:36:57 +0000 (10:36 +0100)]
journal-remote: fix client_cert memory leak

Found by Valgrind while testing the previous memory leak fix.

5 years agojournal-remote: fix certificate status memory leak
Michal Schmidt [Tue, 17 Feb 2015 09:33:01 +0000 (10:33 +0100)]
journal-remote: fix certificate status memory leak

The output of gnutls_certificate_verification_status_print() needs to be

Noticed this while staring at verify_cert_authorized() to see what could
possibly confuse gcc5 on armv7hl to segfault during compilation.

5 years agoupdate TODO v219
Lennart Poettering [Mon, 16 Feb 2015 20:54:57 +0000 (21:54 +0100)]
update TODO

5 years agoRevert "build-sys: re-add old symbols for abi compat"
Michal Schmidt [Mon, 16 Feb 2015 20:17:48 +0000 (21:17 +0100)]
Revert "build-sys: re-add old symbols for abi compat"

This reverts commit 93a1e66efd4b0f4cda29c467d20d0f7510c0b3a8.

It broke the builds for Walters.
Kay hates it and "just knows" there are no actual users.

5 years agoNEWS: typo fixes
Thomas Hindoe Paaboel Andersen [Mon, 16 Feb 2015 20:21:16 +0000 (21:21 +0100)]
NEWS: typo fixes

5 years agoTranspose args in strv_fnmatch() to be more oo
Zbigniew Jędrzejewski-Szmek [Mon, 16 Feb 2015 19:04:36 +0000 (14:04 -0500)]
Transpose args in strv_fnmatch() to be more oo

5 years agotest-network: fix segfault with NULL dev_path/driver/type/name
Zbigniew Jędrzejewski-Szmek [Mon, 16 Feb 2015 18:56:31 +0000 (13:56 -0500)]
test-network: fix segfault with NULL dev_path/driver/type/name

5 years agoupdate TODO
Lennart Poettering [Mon, 16 Feb 2015 18:36:56 +0000 (19:36 +0100)]
update TODO

5 years agoNEWS: fix typo
Lennart Poettering [Mon, 16 Feb 2015 18:36:51 +0000 (19:36 +0100)]
NEWS: fix typo

5 years agoanalyze: change behaviour of combined --to/from--pattern
Zbigniew Jędrzejewski-Szmek [Fri, 13 Feb 2015 23:38:33 +0000 (18:38 -0500)]
analyze: change behaviour of combined --to/from--pattern

We would require a match against all three: patterns specified
with --to, with --from, and as positional arguments to show an
edge. This does not seem useful. Let instead the positional args
behave like they were specified in both --to and --from, which is
fairly intuitive and should be more useful.

5 years agonetwork-internal: chain matches with AND in net_match_config()
Zbigniew Jędrzejewski-Szmek [Fri, 13 Feb 2015 23:38:22 +0000 (18:38 -0500)]
network-internal: chain matches with AND in net_match_config()

The test would treat the first non-empty set of matches in
match_paths, match_drivers, match_types, match_names as definitive
(essentially chaining them with OR). Make those tests instead match
like other tests and require all to pass if the set of patterns is

5 years agoAdd helper for fnmatch over strv
Zbigniew Jędrzejewski-Szmek [Fri, 13 Feb 2015 23:37:43 +0000 (18:37 -0500)]
Add helper for fnmatch over strv

5 years agohwdb: Update database of Bluetooth company identifiers
Marcel Holtmann [Mon, 16 Feb 2015 18:10:39 +0000 (19:10 +0100)]
hwdb: Update database of Bluetooth company identifiers

5 years agotimesync: Use UINT64_C for OFFSET_1900_1970
Cristian Rodríguez [Mon, 16 Feb 2015 16:24:29 +0000 (13:24 -0300)]
timesync: Use UINT64_C for OFFSET_1900_1970

So it matches what the comment says in both 32 and 64 bit systems.

5 years agoupdate TODO
Lennart Poettering [Mon, 16 Feb 2015 17:41:49 +0000 (18:41 +0100)]
update TODO

5 years agobuild-sys: re-add old symbols for abi compat
Zbigniew Jędrzejewski-Szmek [Mon, 16 Feb 2015 17:13:20 +0000 (12:13 -0500)]
build-sys: re-add old symbols for abi compat

For two releases those exported with version 183 by mistake, and then
they were fixed to have version 215 (015419c0df libudev: fix symbol
version for udev_queue_flush() and udev_queue_get_fd()). But that
breaks ABI compatibility for binaries compiled with udev from before
that commit. There most likely very few such binaries, if any, but as
a matter of principle we should export the old symbols too, in order
to keep full compatibility.

5 years agohwdb: update
Lennart Poettering [Mon, 16 Feb 2015 16:28:35 +0000 (17:28 +0100)]
hwdb: update

5 years agosd-bus: add missing format attribute
Cristian Rodríguez [Mon, 16 Feb 2015 04:09:55 +0000 (01:09 -0300)]
sd-bus: add missing format attribute

5 years agoupdate NEWS
Lennart Poettering [Mon, 16 Feb 2015 16:17:07 +0000 (17:17 +0100)]
update NEWS

5 years agohwdb: fix syntax
Lennart Poettering [Mon, 16 Feb 2015 16:14:20 +0000 (17:14 +0100)]
hwdb: fix syntax

5 years agosd-bus: make sure we always serialize the reply cookie as 64bit on dbus2, and 32bit...
Lennart Poettering [Mon, 16 Feb 2015 14:59:45 +0000 (15:59 +0100)]
sd-bus: make sure we always serialize the reply cookie as 64bit on dbus2, and 32bit on dbus1

5 years agoRevert "Revert "sd-bus: change serialization of kdbus messages to qualify in their...
Lennart Poettering [Fri, 13 Feb 2015 16:32:38 +0000 (17:32 +0100)]
Revert "Revert "sd-bus: change serialization of kdbus messages to qualify in their entirety as gvariant objects""

This reverts commit 954871d8ba15911d014f76ed2c7a9492953cf39d.

5 years agopo: Update German translation
Christian Kirbach [Sun, 15 Feb 2015 13:30:05 +0000 (14:30 +0100)]
po: Update German translation

5 years agohwdb: Microsoft Microsoft 3-Button Mouse
Lukas Märdian [Sat, 14 Feb 2015 19:37:40 +0000 (14:37 -0500)]
hwdb: Microsoft Microsoft 3-Button Mouse

5 years agocore: make RuntimeDirectory honor SELinux labels
Zbigniew Jędrzejewski-Szmek [Sat, 14 Feb 2015 19:11:24 +0000 (14:11 -0500)]
core: make RuntimeDirectory honor SELinux labels

5 years agobus-proxy: be more verbose if messages cannot be forwarded
David Herrmann [Sat, 14 Feb 2015 18:01:21 +0000 (19:01 +0100)]
bus-proxy: be more verbose if messages cannot be forwarded

If we cannot forward messages, include information on the peer and message
just like the xml-policy does. This helps debugging such situations and
figuring out what exactly is going wrong.

5 years agobootchart: display each CPU utilization/wait
WaLyong Cho [Fri, 13 Feb 2015 05:59:39 +0000 (14:59 +0900)]
bootchart: display each CPU utilization/wait

5 years agonetwork: fix 'LinkLocal' -> 'LinkLocalAddressing' in network files
David Herrmann [Sat, 14 Feb 2015 14:31:26 +0000 (15:31 +0100)]
network: fix 'LinkLocal' -> 'LinkLocalAddressing' in network files

'LinkLocal' was renamed to 'LinkLocalAddressing' in:

    commit 56fd6bf795926409b087bce406ea851ad89f9fe8
    Author: Tom Gundersen <>
    Date:   Sat Feb 14 00:32:26 2015 +0100

        networkd: .network - rename LinkLocal to LinkLocalAddressing

..but apparently the network files were not updated. Fix this.

5 years agobus-proxy: don't fake data we don't have
David Herrmann [Sat, 14 Feb 2015 14:13:38 +0000 (15:13 +0100)]
bus-proxy: don't fake data we don't have

UDS sockets transmit EUID+EGID only. Don't try to fake data we don't know!
Otherwise, this might be used to override user-limits by non-root setuid
programs (by faking UID==EUID).

Now that sd-bus is fixed to always use EUID even on UDS, we can safely set
all other UID/GID fields to INVALID.

5 years agoutil: use a shared lookup function for string tables
Bruno Bottazzini [Fri, 13 Feb 2015 20:40:50 +0000 (18:40 -0200)]
util: use a shared lookup function for string tables

Macro DEFINE_STRING_TABLE_LOOKUP expands to a new function for each
of the almost 120 tables throghout the code.
Move the its implementation to a function (guaranteed to never be inlined),
and make the macro expand to an inlined function that calls this function.
This saves a few kilobytes from the systemd binary

(David: - fix coding-style
        - use 'ssize_t' to fix 32bit to 64bit propagation
        - use streq_ptr())

5 years agonetworkd: network - rename ipv6token parser
Tom Gundersen [Fri, 13 Feb 2015 23:32:56 +0000 (00:32 +0100)]
networkd: network - rename ipv6token parser

Too generic name.

5 years agonetworkd: .network - rename LinkLocal to LinkLocalAddressing
Tom Gundersen [Fri, 13 Feb 2015 23:32:26 +0000 (00:32 +0100)]
networkd: .network - rename LinkLocal to LinkLocalAddressing

Makes it a bit less ambiguous.

5 years agoman: - document IPv6Token
Tom Gundersen [Fri, 13 Feb 2015 23:30:51 +0000 (00:30 +0100)]
man: - document IPv6Token

5 years agosd-rtnl: add missing IFLA_INET6_ADDR_GEN_MODE definition
Djalal Harouni [Fri, 13 Feb 2015 22:39:13 +0000 (23:39 +0100)]
sd-rtnl: add missing IFLA_INET6_ADDR_GEN_MODE definition

Add missing IFLA_INET6_ADDR_GEN_MODE definition so we can build with
kernel headers < 3.17

5 years agoTODO
Tom Gundersen [Fri, 13 Feb 2015 23:14:52 +0000 (00:14 +0100)]

5 years agobus-proxy: ECONNRESET/ENOTCONN can hit us on every step, hence handle it on every...
Lennart Poettering [Fri, 13 Feb 2015 16:17:45 +0000 (17:17 +0100)]
bus-proxy: ECONNRESET/ENOTCONN can hit us on every step, hence handle it on every step

5 years agobus-proxy: a few simplifications
Lennart Poettering [Fri, 13 Feb 2015 16:17:28 +0000 (17:17 +0100)]
bus-proxy: a few simplifications

5 years agosd-bus: initialize a few structs at time or declaration
Lennart Poettering [Fri, 13 Feb 2015 16:16:51 +0000 (17:16 +0100)]
sd-bus: initialize a few structs at time or declaration

5 years agobus-proxy: close each connection fd only once
Lennart Poettering [Fri, 13 Feb 2015 16:15:41 +0000 (17:15 +0100)]
bus-proxy: close each connection fd only once

After passing the fds over to the sd_bus object, we should forget them,
so that we don't close them a second time when the object goes away.

5 years agobus-proxy: also consider ENOTCONN a clean termination condition
Lennart Poettering [Fri, 13 Feb 2015 15:11:45 +0000 (16:11 +0100)]
bus-proxy: also consider ENOTCONN a clean termination condition

Sometimes, when we try to reply to messages we don't check return
values. This means we might miss a ECONNRESET, and will get a ENOTCONN
on next command. Treat both the same hence.

5 years agoexit-on-idle: only exit if actually idle
Tom Gundersen [Fri, 13 Feb 2015 15:20:45 +0000 (16:20 +0100)]
exit-on-idle: only exit if actually idle

sd_event_wait() returning 0 usually means that it timed out, which means it must
have been idle. However, sd_event_wait() may return 0 in case an event was triggered
but it turned out there was nothing to do. Make the check for idle explicit to avoid
this edge-case.

5 years agobus-proxy: whenever we cannot forward a message, report this back to caller, but...
Lennart Poettering [Fri, 13 Feb 2015 14:38:38 +0000 (15:38 +0100)]
bus-proxy: whenever we cannot forward a message, report this back to caller, but don't exit

Errors like EPERM from the kernel should certainly not be reason to
exit. Let's try to be defensive here, and try to continue on most send
errors, but possibly tell the sender about it.

5 years agobus-proxy: rename synthetic_reply_return_strv() to synthetic_reply_method_return_strv()
Lennart Poettering [Fri, 13 Feb 2015 14:37:34 +0000 (15:37 +0100)]
bus-proxy: rename synthetic_reply_return_strv() to synthetic_reply_method_return_strv()

That way it matches more closely the nomenclature of our other
success reply calls.

5 years agobus-proxy: minor simplifications
Lennart Poettering [Fri, 13 Feb 2015 14:36:15 +0000 (15:36 +0100)]
bus-proxy: minor simplifications

5 years agosd-bus: export sd_bus_error_set_errnofv()
Lennart Poettering [Fri, 13 Feb 2015 14:34:54 +0000 (15:34 +0100)]
sd-bus: export sd_bus_error_set_errnofv()

5 years agobus-proxy: no need to negate error codes, log_error_errno() already does it
Lennart Poettering [Fri, 13 Feb 2015 14:34:11 +0000 (15:34 +0100)]
bus-proxy: no need to negate error codes, log_error_errno() already does it

5 years agobus-proxy: tell Coverity we don't care about these return values
Lennart Poettering [Fri, 13 Feb 2015 14:33:42 +0000 (15:33 +0100)]
bus-proxy: tell Coverity we don't care about these return values

5 years agobus-proxy: we don't pointlessly abbreviate function names
Lennart Poettering [Fri, 13 Feb 2015 14:05:34 +0000 (15:05 +0100)]
bus-proxy: we don't pointlessly abbreviate function names

It's fine to abbreviate local variables, but it's not OK to abbreviate
function names needlessly. This is not an excercise in writing
unreadable code.

5 years agosd-bus: sync kdbus.h (ABI break)
Daniel Mack [Fri, 13 Feb 2015 13:55:51 +0000 (14:55 +0100)]
sd-bus: sync kdbus.h (ABI break)

Another slice logic rework in kdbus made KDBUS_ITEM_PAYLOAD_OFF items
relative to the message header again. Catch up with that in sd-bus.

5 years agounits: turn on --network-veth by default for systemd-nspawn@.service
Lennart Poettering [Fri, 13 Feb 2015 13:35:50 +0000 (14:35 +0100)]
units: turn on --network-veth by default for systemd-nspawn@.service

Given the recent improvements in networkd, it's probably the better
default now.

5 years agounits: fix systemd-networkd.service in containers lacking CAP_NET_ADMIN
Lennart Poettering [Fri, 13 Feb 2015 13:30:05 +0000 (14:30 +0100)]
units: fix systemd-networkd.service in containers lacking CAP_NET_ADMIN

5 years agohwdb: update name databases
Lennart Poettering [Fri, 13 Feb 2015 13:09:17 +0000 (14:09 +0100)]
hwdb: update name databases

5 years agobuild-sys: already bump package version in preparation for next release
Lennart Poettering [Fri, 13 Feb 2015 10:06:42 +0000 (11:06 +0100)]
build-sys: already bump package version in preparation for next release

(don't misunderstand this, the release is still out quite a bit...)

5 years agobuild-sys: bump sonames in preparation for next release
Lennart Poettering [Thu, 12 Feb 2015 19:49:22 +0000 (20:49 +0100)]
build-sys: bump sonames in preparation for next release

5 years agoNEWS: add contributors list
Lennart Poettering [Thu, 12 Feb 2015 19:45:19 +0000 (20:45 +0100)]
NEWS: add contributors list

5 years agorules: simplify mmc RPMB handling
Martin Pitt [Fri, 13 Feb 2015 09:59:38 +0000 (10:59 +0100)]
rules: simplify mmc RPMB handling

We don't actually want a by-path/ symlink for MMC RPMB devices, so just add
them to the blacklist. This will prevent creating wrong by-path links and
blkid'ing those.

5 years agorules: Fix by-path of mmc RPMB partitions and don't blkid them
Martin Pitt [Wed, 11 Feb 2015 14:26:52 +0000 (15:26 +0100)]
rules: Fix by-path of mmc RPMB partitions and don't blkid them

Linux 3.10+ exposes RPMB (Replay Protected Memory Block) partitions of MMC
devices [1] ; trying to read them with blkid or other unspecific means will
cause kernel buffer I/O errors and timeouts. So don't run blkid on these.

Also ensure that /dev/disk/by-path creates proper symlinks and exposes the
-rpmb partition separately, instead of letting the "normal" partition symlink
point to the rpbm device (this is a race condition).


5 years agoinclude <poll.h> instead of <sys/poll.h>
Thomas Hindoe Paaboel Andersen [Thu, 12 Feb 2015 13:06:32 +0000 (14:06 +0100)]
include <poll.h> instead of <sys/poll.h>

include-what-you-use automatically does this and it makes finding
unnecessary harder to spot. The only content of poll.h is a include
of sys/poll.h so should be harmless.

5 years agoAdd missing includes in header files
Thomas Hindoe Paaboel Andersen [Tue, 10 Feb 2015 11:56:53 +0000 (12:56 +0100)]
Add missing includes in header files

This fixes various issues found by globally reordering the include
sections of all .c files.

5 years agotest-util: remove superfluous const
Thomas Hindoe Paaboel Andersen [Thu, 12 Feb 2015 19:32:03 +0000 (20:32 +0100)]
test-util: remove superfluous const

5 years agoremove unused variable
Thomas Hindoe Paaboel Andersen [Thu, 12 Feb 2015 14:12:11 +0000 (15:12 +0100)]
remove unused variable

5 years agoexec: also evaluate working_directory_missing_ok when not applying chroots
Lennart Poettering [Thu, 12 Feb 2015 17:58:43 +0000 (18:58 +0100)]
exec: also evaluate working_directory_missing_ok when not applying chroots

5 years agoNEWS: begin collecting news items for 219
Lennart Poettering [Thu, 12 Feb 2015 17:44:46 +0000 (18:44 +0100)]
NEWS: begin collecting news items for 219

5 years agonetworkd: explicitly enable/disable ipv6ll addresses
Tom Gundersen [Thu, 12 Feb 2015 13:15:41 +0000 (14:15 +0100)]
networkd: explicitly enable/disable ipv6ll addresses

The kernel does not like getting an empty container, so just always pass the parameter, even if
it is the default.

5 years agohwdb: adjust --help text to be more like other --help texts
Lennart Poettering [Thu, 12 Feb 2015 12:17:08 +0000 (13:17 +0100)]
hwdb: adjust --help text to be more like other --help texts

Fix capitalization, indentation, make sure we support --version, and

5 years agocore: disarm shutdown watchdog if we fail to set timeout
Lennart Poettering [Thu, 12 Feb 2015 11:28:48 +0000 (12:28 +0100)]
core: disarm shutdown watchdog if we fail to set timeout

Better safe than sorry, if drivers are stupid, and reset immediately on
device closing if the timeout could not be initialized.

5 years agocore: don't fail to run services in --user instances if $HOME is missing
Lennart Poettering [Thu, 12 Feb 2015 11:21:16 +0000 (12:21 +0100)]
core: don't fail to run services in --user instances if $HOME is missing

Otherwise we cannot even invoke systemd-exit.service anymore, thus not
even exit.

5 years agoRevert "tree-wide: Always use recvmsg with MSG_CMSG_CLOEXEC"
Lennart Poettering [Thu, 12 Feb 2015 10:44:48 +0000 (11:44 +0100)]
Revert "tree-wide: Always use recvmsg with MSG_CMSG_CLOEXEC"

This reverts commit d6d810fbf8071f8510450dbacd1d083f37603656.

It's apparently not OK to pass MSG_CMSG_CLOEXEC to recvmsg() of raw

5 years agomissing: add __NR_getrandom for powerpc architecture
Marcel Holtmann [Wed, 11 Feb 2015 21:15:13 +0000 (22:15 +0100)]
missing: add __NR_getrandom for powerpc architecture

5 years agocore: don't watch for socket events when service is in SERVICE_STOP
Lennart Poettering [Wed, 11 Feb 2015 20:25:30 +0000 (21:25 +0100)]
core: don't watch for socket events when service is in SERVICE_STOP

If a service has an ExecStop= program that uses the socket the service was
activated by to tell it to terminate, then that should not be used as
trigger to start the service again.

5 years agosystemctl: don't update the reboot parameter if none is given
Michael Olbrich [Sun, 8 Feb 2015 19:29:50 +0000 (20:29 +0100)]
systemctl: don't update the reboot parameter if none is given

Otherwise systemd-reboot.service will remove the parameter that was set
before. This was broken in commit "b986229efe2cc96157aa14c37bab7843311bbef1
systemctl: bugfix for systemctl reboot command with argument"

5 years agocore: correct a log message
Lennart Poettering [Wed, 11 Feb 2015 17:51:35 +0000 (18:51 +0100)]
core: correct a log message

The log message talks specifically about services, though it actually
applies to any kind of unit.

5 years agotree-wide: whenever we include libgen.h, immediately undefine basename()
Lennart Poettering [Wed, 11 Feb 2015 17:50:38 +0000 (18:50 +0100)]
tree-wide: whenever we include libgen.h, immediately undefine basename()

Also, document in adjacent comments and in CODING_STYLE why we do that.

5 years agocore: remove unneeded <libgen.h> include
Cristian Rodríguez [Tue, 10 Feb 2015 00:41:09 +0000 (21:41 -0300)]
core: remove unneeded <libgen.h> include

execute.c only uses basename (the GNU version in <string.h>)

5 years agoRevert "units: add SecureBits"
Lennart Poettering [Wed, 11 Feb 2015 17:28:06 +0000 (18:28 +0100)]
Revert "units: add SecureBits"

This reverts commit 6a716208b346b742053cfd01e76f76fb27c4ea47.

Apparently this doesn't work.

5 years agoata_id: remove unused header files
Robert Milasan [Thu, 5 Feb 2015 13:19:35 +0000 (14:19 +0100)]
ata_id: remove unused header files

Signed-off-by: Robert Milasan <>
5 years agounits: add SecureBits
Topi Miettinen [Wed, 11 Feb 2015 16:32:14 +0000 (18:32 +0200)]
units: add SecureBits

No setuid programs are expected to be executed, so add
SecureBits=noroot noroot-locked
to unit files.