]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
6 years agoMerge pull request #6775 from poettering/run-pipe2
Zbigniew Jędrzejewski-Szmek [Wed, 13 Sep 2017 20:27:04 +0000 (22:27 +0200)] 
Merge pull request #6775 from poettering/run-pipe2

run: add new --pipe option for "systemd-run"

6 years agoMerge pull request #6805 from poettering/exec-dir
Zbigniew Jędrzejewski-Szmek [Wed, 13 Sep 2017 20:26:41 +0000 (22:26 +0200)] 
Merge pull request #6805 from poettering/exec-dir

exec-util,conf-files: skip non-executable files in execute_directories()

6 years agoman: fix repeated use of "use" in a sentence 6775/head
Zbigniew Jędrzejewski-Szmek [Wed, 13 Sep 2017 20:11:03 +0000 (22:11 +0200)] 
man: fix repeated use of "use" in a sentence

6 years agosd-bus: extend D-Bus authentication timeout considerably (#6813)
Lennart Poettering [Wed, 13 Sep 2017 17:08:26 +0000 (19:08 +0200)] 
sd-bus: extend D-Bus authentication timeout considerably (#6813)

As it turns out the authentication phase times out too often than is
good, mostly due to PRNG pools not being populated during boot. Hence,
let's increase the authentication timeout from 25s to 90s, to cover for
that.

(Note that we leave the D-Bus method call timeout at 25s, matching the
reference implementation's value. And if the auth phase managed to
complete then the pools should be populated enough and mehtod calls
shouldn't take needlessly long anymore).

Fixes: #6418
6 years agoMerge pull request #6811 from fbuihuu/dont-detach-root-DM-dev
Lennart Poettering [Wed, 13 Sep 2017 13:09:25 +0000 (15:09 +0200)] 
Merge pull request #6811 from fbuihuu/dont-detach-root-DM-dev

Dont try to detach DM dev hosting "/" even when it uses BTRFS

6 years agoMerge pull request #6798 from poettering/nspawn-seccomp
Lennart Poettering [Wed, 13 Sep 2017 10:57:59 +0000 (12:57 +0200)] 
Merge pull request #6798 from poettering/nspawn-seccomp

nspawn seccomp improvements

6 years agoshutdown: don't be fooled when detaching DM devices with BTRFS 6811/head
Franck Bui [Wed, 13 Sep 2017 09:04:17 +0000 (11:04 +0200)] 
shutdown: don't be fooled when detaching DM devices with BTRFS

Otherwise we would try to detach the DM device hosting the rootfs with BTRFS
which is doomed to fail.

6 years agoutil: make get_block_device() available
Franck Bui [Wed, 13 Sep 2017 09:47:15 +0000 (11:47 +0200)] 
util: make get_block_device() available

6 years agoconf-files: log when we skip a drop-in configuration file 6805/head
Lennart Poettering [Wed, 13 Sep 2017 09:41:41 +0000 (11:41 +0200)] 
conf-files: log when we skip a drop-in configuration file

6 years agoexec-util,conf-files: skip non-executable files in execute_directories()
Lennart Poettering [Tue, 12 Sep 2017 14:57:33 +0000 (16:57 +0200)] 
exec-util,conf-files: skip non-executable files in execute_directories()

Fixes: #6787
6 years agoshutdown: fix incorrect fscanf() result check (#6806)
Lennart Poettering [Wed, 13 Sep 2017 08:08:37 +0000 (10:08 +0200)] 
shutdown: fix incorrect fscanf() result check (#6806)

A correction for 090e3c9796ef6468d4f396610804d62f6ffd797f.

Fixes: #6796
6 years agohwdb: add Lenovo Yoga 510-14IKB sensor mount quirk (#6799)
jonasBoss [Tue, 12 Sep 2017 16:39:25 +0000 (18:39 +0200)] 
hwdb: add Lenovo Yoga 510-14IKB sensor mount quirk (#6799)

6 years agotmpfiles.d/journal-nocow: fix typo (#6804)
Lukáš Nykrýn [Tue, 12 Sep 2017 16:28:21 +0000 (18:28 +0200)] 
tmpfiles.d/journal-nocow: fix typo (#6804)

6 years agorun: add new --pipe option for including "systemd-run" commands in shell pipelines
Lennart Poettering [Fri, 8 Sep 2017 13:38:40 +0000 (15:38 +0200)] 
run: add new --pipe option for including "systemd-run" commands in shell pipelines

In this mode, we'll directly connect stdin/stdout/stderr of the invoked
service with whatever systemd-run itself is invoked on. This allows
inclusion of "systemd-run" commands in shell pipelines, as unlike
"--pty" this means EOF of stdin/stdout/stderr are propagated
independently.

If --pty and --pipe are combined systemd-run will automatically pick the
right choice for the context it is invoked in, i.e. --pty when invoked
on a TTY, and --pipe otherwise.

6 years agoMerge pull request #6802 from systemd-mailing-devs/20170911184738.GA11495@dtor-ws
Lennart Poettering [Tue, 12 Sep 2017 14:15:22 +0000 (16:15 +0200)] 
Merge pull request #6802 from systemd-mailing-devs/20170911184738.GA11495@dtor-ws

rules: load drivers only on "add" events

6 years agonspawn: implement configurable syscall whitelisting/blacklisting 6798/head
Lennart Poettering [Mon, 11 Sep 2017 15:45:21 +0000 (17:45 +0200)] 
nspawn: implement configurable syscall whitelisting/blacklisting

Now that we have ported nspawn's seccomp code to the generic code in
seccomp-util, let's extend it to support whitelisting and blacklisting
of specific additional syscalls.

This uses similar syntax as PID1's support for system call filtering,
but in contrast to that always implements a blacklist (and not a
whitelist), as we prepopulate the filter with a blacklist, and the
unit's system call filter logic does not come with anything
prepopulated.

(Later on we might actually want to invert the logic here, and
whitelist rather than blacklist things, but at this point let's not do
that. In case we switch this over later, the syscall add/remove logic of
this commit should be compatible conceptually.)

Fixes: #5163
Replaces: #5944

6 years agorules: load drivers only on "add" events 6802/head
Dmitry Torokhov [Mon, 11 Sep 2017 18:47:38 +0000 (11:47 -0700)] 
rules: load drivers only on "add" events

Previously we were loading kernel modules on all device events save
for "remove". With the introduction of KOBJ_BIND/KOBJ_UNBIND this causes
issues, as driver modules that have devices bound to their drivers get
immediately reloaded, and it appears to the user that module unloading
does not work.

Let's change the rules to only load modules on "add" events instead.

6 years agonspawn: replace homegrown seccomp filter table largely with references to the existin...
Lennart Poettering [Sun, 10 Sep 2017 17:25:08 +0000 (19:25 +0200)] 
nspawn: replace homegrown seccomp filter table largely with references to the existing syscall groups

Let's shorten the table, now that we are hooked up to the syscall group
system.

6 years agonspawn: part over seccomp code to use seccomp_add_syscall_filter_item()
Lennart Poettering [Sun, 10 Sep 2017 17:16:09 +0000 (19:16 +0200)] 
nspawn: part over seccomp code to use seccomp_add_syscall_filter_item()

Let's unify a bit of the code here.

6 years agoseccomp: split out inner loop code of seccomp_add_syscall_filter_set()
Lennart Poettering [Sun, 10 Sep 2017 17:10:29 +0000 (19:10 +0200)] 
seccomp: split out inner loop code of seccomp_add_syscall_filter_set()

Let's add a new helper function seccomp_add_syscall_filter_item() that
contains the inner loop code of seccomp_add_syscall_filter_set(). This
helper function we can then export and make use of elsewhere.

6 years agoseccomp: drop default_action parameter from seccomp_add_syscall_filter_set()
Lennart Poettering [Sun, 10 Sep 2017 16:52:23 +0000 (18:52 +0200)] 
seccomp: drop default_action parameter from seccomp_add_syscall_filter_set()

The function doesn't actually use the parameter, hence let's drop it.

6 years agounits: remove unnecessary Requires= and After= in system.slice (#6794)
John Lin [Mon, 11 Sep 2017 08:35:51 +0000 (16:35 +0800)] 
units: remove unnecessary Requires= and After= in system.slice (#6794)

6 years agohwdb: Add ACCEL_MOUNT_MATRIX for the Lamina T-1016B.NORD 2-in-1 tablet (#6430)
Marcus Lundblad [Mon, 11 Sep 2017 07:56:57 +0000 (09:56 +0200)] 
hwdb: Add ACCEL_MOUNT_MATRIX for the Lamina T-1016B.NORD 2-in-1 tablet (#6430)

6 years agoaccelerator mount matrix for Asus TP300LD (#6789)
Thomas Sailer [Mon, 11 Sep 2017 06:36:05 +0000 (08:36 +0200)] 
accelerator mount matrix for Asus TP300LD (#6789)

6 years agosystemctl: don't do ANSI underlining on TERM=linux (#6778)
Lennart Poettering [Sat, 9 Sep 2017 20:48:35 +0000 (22:48 +0200)] 
systemctl: don't do ANSI underlining on TERM=linux (#6778)

The linux console apparently can't do underlining, hence let's not do it
on the console.

Also see: #6601

6 years agoMerge pull request #6780 from poettering/agent-message
Zbigniew Jędrzejewski-Szmek [Sat, 9 Sep 2017 20:32:37 +0000 (22:32 +0200)] 
Merge pull request #6780 from poettering/agent-message

Three minor fixes.

6 years agolibudev: add missing errno initialization/error propagation (#6781)
Lennart Poettering [Sat, 9 Sep 2017 20:31:09 +0000 (22:31 +0200)] 
libudev: add missing errno initialization/error propagation (#6781)

In libudev (which es much older code than the rest of systemd), we
propagate errors in functions not returning an int, via (positive) errno
(i.e. libc-style), and as negative Exyz values in those returning an int
(much preferred, i.e. Linux kernel style). Let's fix up a few place,
where this was incorrectly done, or not done at all.

Fixes: #6613
6 years agoman: update reference to definition of StartLimitAction (#6786)
Alan Jenkins [Sat, 9 Sep 2017 12:54:23 +0000 (13:54 +0100)] 
man: update reference to definition of StartLimitAction (#6786)

The values for StartLimitAction are defined in `man systemd.unit`.
Don't send people to `man systemd.service` just to find they need to look
back in `man systemd.unit` again :).

6 years agokmod-setup: define has_virtio_rng() only in a case when HAVE_KMOD is enabled (#6784)
0xAX [Fri, 8 Sep 2017 21:51:04 +0000 (03:51 +0600)] 
kmod-setup: define has_virtio_rng() only in a case when HAVE_KMOD is enabled (#6784)

in other way we will get a warning message:

../src/core/kmod-setup.c:83:13: warning: ‘has_virtio_rng’ defined but
not used [-Wunused-function]

  static bool has_virtio_rng(void) {
             ^~~~~~~~~~~~~~

6 years agosulogin-shell: switch from shell implementation to a C implementation (#6698)
Felipe Sateler [Fri, 8 Sep 2017 16:21:37 +0000 (13:21 -0300)] 
sulogin-shell: switch from shell implementation to a C implementation (#6698)

6 years agoefivars: don't crash when somebody wants to remove an efi variable 6780/head
Lennart Poettering [Fri, 8 Sep 2017 15:34:11 +0000 (17:34 +0200)] 
efivars: don't crash when somebody wants to remove an efi variable

This corrects b3c908b4a230c5cca0dcdd7e94d02ec54a298abf by allowing a
NULL value again for variable deletion.

Fixes: #6753
6 years agoman: only document "systemd-mount --umount", never "--unmount"
Lennart Poettering [Fri, 8 Sep 2017 15:29:55 +0000 (17:29 +0200)] 
man: only document "systemd-mount --umount", never "--unmount"

Internally, we accept either, but let's stick to one of the spellings
for all docs.

Fixes: #6757
6 years agocore: downgrade log message about inability to propagate cgroup release message
Lennart Poettering [Fri, 8 Sep 2017 15:24:57 +0000 (17:24 +0200)] 
core: downgrade log message about inability to propagate cgroup release message

If dbus is already down during shutdown, we can't propagate the cgroup
release message anymore, but that's expected and nothing to warn about.
Hence let's downgrade the message from LOG_WARN to LOG_DEBUG.

Fixes: #6777
6 years agoutil-lib: wrap personality() to fix up broken glibc error handling (#6766)
Lennart Poettering [Fri, 8 Sep 2017 14:16:29 +0000 (16:16 +0200)] 
util-lib: wrap personality() to fix up broken glibc error handling (#6766)

glibc appears to propagate different errors in different ways, let's fix
this up, so that our own code doesn't get confused by this.

See #6752 + #6737 for details.

Fixes: #6755
6 years agomanager: when reexecuting try to connect to bus only when dbus.service is around...
Michal Sekletar [Fri, 8 Sep 2017 13:41:44 +0000 (15:41 +0200)] 
manager: when reexecuting try to connect to bus only when dbus.service is around (#6773)

Trying to connect otherwise is pointless, because if socket isn't around
we won't connect. However, when dbus.socket is present we attempt to
connect. That attempt can't succeed because we are then supposed
to activate dbus.service as a response to connection from
us. This results in deadlock.

Fixes #6303

6 years agojournalctl: honor --quiet when vacuuming (#6771)
Kai-Heng Feng [Fri, 8 Sep 2017 12:25:44 +0000 (20:25 +0800)] 
journalctl: honor --quiet when vacuuming (#6771)

'journalctl --vacuum-*' does not suppress output message with --quiet.

Let journal_directory_vacuum honors --quiet to fix the problem.

BugLink: https://bugs.launchpad.net/bugs/1692188
6 years agoAllow configuration of a bridge netdev's group_fwd_mask. (#6759)
b1tninja [Fri, 8 Sep 2017 10:36:06 +0000 (03:36 -0700)] 
Allow configuration of a bridge netdev's group_fwd_mask. (#6759)

6 years agoMerge pull request #6770 from lucaswerkmeister/analyze-get-log
Lennart Poettering [Fri, 8 Sep 2017 10:08:16 +0000 (12:08 +0200)] 
Merge pull request #6770 from lucaswerkmeister/analyze-get-log

analyze: add get-log-level, get-log-target verbs

6 years agoMerge pull request #6768 from fsateler/umount-message
Djalal Harouni [Fri, 8 Sep 2017 06:38:00 +0000 (08:38 +0200)] 
Merge pull request #6768 from fsateler/umount-message

Some better messages for systemd-mount --umount

6 years agoanalyze: add get-log-level, get-log-target verbs 6770/head
Lucas Werkmeister [Thu, 7 Sep 2017 21:41:20 +0000 (23:41 +0200)] 
analyze: add get-log-level, get-log-target verbs

They’re counterparts to the existing set-log-level and set-log-target
verbs, simply printing the current value to stdout. This makes it
slightly easier to temporarily change the log level and/or target and
then restore the old value(s).

6 years agoshell-completion: add systemd-analyze set-log-target 6769/head
Lucas Werkmeister [Thu, 7 Sep 2017 21:23:33 +0000 (23:23 +0200)] 
shell-completion: add systemd-analyze set-log-target

The `systemd-analyze set-log-target` command was added in v227 (commit
2ca2a91cf1), but was missing from the shell completion specifications.

6 years agomount: always show the user-provided argument when umount can't be done 6768/head
Felipe Sateler [Thu, 7 Sep 2017 19:16:19 +0000 (16:16 -0300)] 
mount: always show the user-provided argument when umount can't be done

Otherwise it can be confusing if the path is not the same

6 years agomount: Add message when the target path does not exist
Felipe Sateler [Thu, 7 Sep 2017 19:12:35 +0000 (16:12 -0300)] 
mount: Add message when the target path does not exist

Fixes: #6760
6 years agoMerge pull request #6616 from pfl/rdnss
Lennart Poettering [Thu, 7 Sep 2017 17:01:57 +0000 (19:01 +0200)] 
Merge pull request #6616 from pfl/rdnss

networkd: RDNSS option for systemd-networkd prefix delegation

6 years agohwdb: Add Cube i7 Stylus sensor rotation matrix (#6722)
dmig [Fri, 1 Sep 2017 08:51:41 +0000 (15:51 +0700)] 
hwdb: Add Cube i7 Stylus sensor rotation matrix (#6722)

6 years agoMerge pull request #6436 from juga0/features/rfc7844
Lennart Poettering [Thu, 7 Sep 2017 08:08:56 +0000 (10:08 +0200)] 
Merge pull request #6436 from juga0/features/rfc7844

Features/rfc7844

6 years agoman: fix systemd-analyze plot commands (#6761)
John Lin [Thu, 7 Sep 2017 07:59:03 +0000 (15:59 +0800)] 
man: fix systemd-analyze plot commands (#6761)

6 years agoassemble multidevice btrfs volumes without external tools (#6607)
g0tar [Thu, 7 Sep 2017 07:58:12 +0000 (09:58 +0200)] 
assemble multidevice btrfs volumes without external tools (#6607)

assemble multidevice btrfs volumes without external tools

This self-contained approach introduce very little overhead, unless
someone has a large number of devices composing many btrfs volumes,
in which case btrfs device scan would be faster. Still, having robust
implementation is a nice to have alternative for btrfs-progs.

6 years agoman: Document prefix delegation in systemd.network 6616/head
Patrik Flykt [Wed, 6 Sep 2017 11:20:08 +0000 (14:20 +0300)] 
man: Document prefix delegation in systemd.network

Add prefix delegation documentation covering IPv6PrefixDelegation=
setting in the Network section as well as all the parameters and
the IPv6PrefixDelegation and IPv6Prefix sections implemented so
far, including DNS= and DNSLifetimeSec= settings.

6 years agotest-ndisc-ra: Update test with RDNSS option
Patrik Flykt [Mon, 14 Aug 2017 09:53:13 +0000 (12:53 +0300)] 
test-ndisc-ra: Update test with RDNSS option

6 years agonetworkd-radv: Set RDNSS information on Router Advertisement enabling
Patrik Flykt [Mon, 14 Aug 2017 09:53:12 +0000 (12:53 +0300)] 
networkd-radv: Set RDNSS information on Router Advertisement enabling

6 years agosd-radv: Add Router Advertisement DNS information
Patrik Flykt [Mon, 14 Aug 2017 09:53:11 +0000 (12:53 +0300)] 
sd-radv: Add Router Advertisement DNS information

Add Router Advertisement Recursive DNS Server information as specified
in RFC 8106.

6 years agonetworkd: Parse DNS IPv6 information for Router Advertisement
Patrik Flykt [Mon, 14 Aug 2017 09:53:10 +0000 (12:53 +0300)] 
networkd: Parse DNS IPv6 information for Router Advertisement

Parse DNS IPv6 addresses and DNS server lifetime from .network files
so that they can be included in Router Advertisement RDNSS options.

RDNSS address and lifetime information is added to the
[IPv6PrefixDelegation] section according to the following syntax:

DNS=2001:db8::a:b 2001:db8::c:d
DNSLifetimeSec=1042

6 years agonetworkd: test DHCP client when Anonymize is true. 6436/head
juga0 [Fri, 4 Aug 2017 01:27:51 +0000 (03:27 +0200)] 
networkd: test DHCP client when Anonymize is true.

6 years agonetworkd: RFC7844, disable INIT-REBOOT state when
juga0 [Thu, 3 Aug 2017 17:42:06 +0000 (19:42 +0200)] 
networkd: RFC7844, disable INIT-REBOOT state when

Anonymize is true.

6 years agonetworkd: RFC7844, do not set any other option
juga0 [Fri, 4 Aug 2017 01:08:41 +0000 (03:08 +0200)] 
networkd: RFC7844, do not set any other option

when Anonymize is enabled.

Use the Client variable to know whether it is enabled.

6 years agonetworkd: do not send more PRL options when Anonymize is true.
juga0 [Thu, 3 Aug 2017 17:19:51 +0000 (19:19 +0200)] 
networkd: do not send more PRL options when Anonymize is true.

* check that Client has reserved memory for PRL
* do not send duplicated ROUTES option when Anonymize is true

6 years agonetworkd: set PRL default options depending on Anonymize.
juga0 [Thu, 3 Aug 2017 01:32:46 +0000 (03:32 +0200)] 
networkd: set PRL default options depending on Anonymize.

Add also Client variable to know when Anonymize is true.

6 years agonetworkd: add PRL options to send when Anonymize is true
juga0 [Thu, 3 Aug 2017 01:23:39 +0000 (03:23 +0200)] 
networkd: add PRL options to send when Anonymize is true

6 years agonetworkd: RFC7844, add network variable and function
juga0 [Wed, 2 Aug 2017 23:10:51 +0000 (01:10 +0200)] 
networkd: RFC7844, add network variable and function

to initialize Network variables when Anonymize is true.

* do not send hostname
* client identifier set to MAC
* do not send vendor class identifier
* do not send other PRL options

6 years agonetworkd: RFC7844, add configuration variable
juga0 [Sat, 29 Jul 2017 23:10:40 +0000 (01:10 +0200)] 
networkd: RFC7844, add configuration variable

to enable Anonymity Profiles and document it.

6 years agohwdb: Add mice (#6641)
Charles Huber [Wed, 6 Sep 2017 15:00:57 +0000 (10:00 -0500)] 
hwdb: Add mice (#6641)

* Dell MS111-T
* Dell MS116t
* Microsoft Comfort Mouse 4500

6 years agonetworkd: Allow configure a specific link even if it has no carrier. (#6740)
Susant Sahani [Wed, 6 Sep 2017 14:57:04 +0000 (14:57 +0000)] 
networkd: Allow configure a specific link even if it has no carrier. (#6740)

This work allows to configure a specific link even if it has no carrier.

Closes #6645.

6 years agoUpdate version including Chuwi Hi13 (#6744)
pEJipE [Wed, 6 Sep 2017 08:18:20 +0000 (10:18 +0200)] 
Update version including Chuwi Hi13 (#6744)

6 years agonetworkd: send dhcp timezone option when UseTimezone is true (#6725)
juga0 [Wed, 6 Sep 2017 08:10:50 +0000 (08:10 +0000)] 
networkd: send dhcp timezone option when UseTimezone is true (#6725)

6 years agotest-dns-domain: allow old and new libidn2 behaviour (#6749)
Zbigniew Jędrzejewski-Szmek [Wed, 6 Sep 2017 07:39:14 +0000 (09:39 +0200)] 
test-dns-domain: allow old and new libidn2 behaviour (#6749)

The behaviour changed to allow underscores. For now, lets just
accept both return values.

Fixes #6573.

6 years agotests: check the return value of personality when errno is not set (#6752)
Evgeny Vereshchagin [Wed, 6 Sep 2017 04:08:04 +0000 (07:08 +0300)] 
tests: check the return value of personality when errno is not set (#6752)

The `personality` wrapper might not set errno, so in that case the return value
should be checked instead.

For details, see
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=e0043e17dfc52fe1702746543127cb4a87232bcd.

Closes #6737.

6 years agoMerge pull request #6748 from msekletar/console-container-getty-pre-after
Lennart Poettering [Tue, 5 Sep 2017 17:45:39 +0000 (19:45 +0200)] 
Merge pull request #6748 from msekletar/console-container-getty-pre-after

units: order container and console getty units after getty-pre.target

6 years agoMerge pull request #6747 from keszybz/cryptsetup-netdev
Lennart Poettering [Tue, 5 Sep 2017 17:45:18 +0000 (19:45 +0200)] 
Merge pull request #6747 from keszybz/cryptsetup-netdev

netdev option for crypttab

6 years agosystemctl: make sure we properly turn off color at the end of each line of "list...
Lennart Poettering [Tue, 5 Sep 2017 14:31:26 +0000 (16:31 +0200)] 
systemctl: make sure we properly turn off color at the end of each line of "list-unit-files" (#6688)

Let's simplify the code a bit, and make sure we always turn off color
and underlining again on each line, if we used it.

Fixes: #6684
6 years agounits: order container and console getty units after getty-pre.target 6748/head
Michal Sekletar [Tue, 5 Sep 2017 12:53:25 +0000 (14:53 +0200)] 
units: order container and console getty units after getty-pre.target

6 years agonetworkd: send dhcp option NTP when UseNTP is true (#6726)
juga0 [Tue, 5 Sep 2017 10:26:32 +0000 (10:26 +0000)] 
networkd: send dhcp option NTP when UseNTP is true (#6726)

6 years agoMention mount.usr* in kernel-command-line man page (#6743)
Tobias Hunger [Tue, 5 Sep 2017 10:25:56 +0000 (12:25 +0200)] 
Mention mount.usr* in kernel-command-line man page (#6743)

6 years agocryptsetup-generator: use remote-cryptsetup.target when _netdev is present 6747/head
Zbigniew Jędrzejewski-Szmek [Tue, 5 Sep 2017 09:30:33 +0000 (11:30 +0200)] 
cryptsetup-generator: use remote-cryptsetup.target when _netdev is present

This allows such devices to depend on the network. Their startup will
be delayed similarly to network mount units.

Fixes #4642.

6 years agounits: add remote-cryptsetup.target and remote-cryptsetup-pre.target
Zbigniew Jędrzejewski-Szmek [Tue, 5 Sep 2017 08:15:13 +0000 (10:15 +0200)] 
units: add remote-cryptsetup.target and remote-cryptsetup-pre.target

The pair is similar to remote-fs.target and remote-fs-pre.target. Any
cryptsetup devices which require network shall be ordered after
remote-cryptsetup-pre.target and before remote-cryptsetup.target.

6 years agoman: add an explicit description of _netdev to systemd.mount(5)
Zbigniew Jędrzejewski-Szmek [Tue, 5 Sep 2017 09:20:14 +0000 (11:20 +0200)] 
man: add an explicit description of _netdev to systemd.mount(5)

It was mentioned in passing, but having it in the list of options is also
nice.

6 years agoman: order fields alphabetically in crypttab(5)
Zbigniew Jędrzejewski-Szmek [Tue, 5 Sep 2017 08:25:45 +0000 (10:25 +0200)] 
man: order fields alphabetically in crypttab(5)

They already were mostly ordered alphabetically, but some disorder
snuck in.

Also, fix formatting. Some options were described using "--" prefixes, which
looks like the text was just copied from crypttab(8).

6 years agounits: order cryptsetup-pre.target before cryptsetup.target
Zbigniew Jędrzejewski-Szmek [Tue, 5 Sep 2017 07:14:51 +0000 (09:14 +0200)] 
units: order cryptsetup-pre.target before cryptsetup.target

Normally this happens automatically, but if it happened that both targets were
pulled in, even though there were no cryptsetup units, they could be started
in reverse order, which would be somewhat confusing. Add an explicit ordering
to avoid this potential issue.

6 years agoAdd Razer Blade Stealth 2016 to hwdb (#6730)
Thomas Miller [Tue, 5 Sep 2017 05:18:20 +0000 (22:18 -0700)] 
Add Razer Blade Stealth 2016 to hwdb (#6730)

6 years agoMerge pull request #6741 from keszybz/template-loading-fix
Lennart Poettering [Mon, 4 Sep 2017 16:57:06 +0000 (18:57 +0200)] 
Merge pull request #6741 from keszybz/template-loading-fix

Fix for mask/unmask operations on templates and multiple units

6 years agoMerge pull request #5815 from benzea/master
Lennart Poettering [Mon, 4 Sep 2017 16:52:14 +0000 (18:52 +0200)] 
Merge pull request #5815 from benzea/master

rfkill: Delay writes until exit (#5768)

6 years agobuild-sys: make nonnull warning non-fatal (#6742)
Zbigniew Jędrzejewski-Szmek [Mon, 4 Sep 2017 16:49:12 +0000 (19:49 +0300)] 
build-sys: make nonnull warning non-fatal (#6742)

Seems to be some kind of confusion in gcc. Insteading of playing whack-a-mole and
adding work-arounds in code, let's adjust the compilation options instead.

Fixes #6119, replaces #6657.

6 years agoMerge pull request #6580 from poettering/nspawn-dm-deviceallow
Zbigniew Jędrzejewski-Szmek [Mon, 4 Sep 2017 14:12:17 +0000 (17:12 +0300)] 
Merge pull request #6580 from poettering/nspawn-dm-deviceallow

add DM devices to DeviceAllow for systemd-nspawn@.service

6 years agoAdd handling for bind/unbind actions (#6720)
Lennart Poettering [Mon, 4 Sep 2017 13:59:17 +0000 (15:59 +0200)] 
Add handling for bind/unbind actions (#6720)

Newer kernels will emit uevents with "bind" and "unbind" actions. These
uevents will be issued when driver is bound to or unbound from a device.
"Bind" events are helpful when device requires a firmware to operate
properly, and driver is unable to create a child device before firmware
is properly loaded.

For some reason systemd validates actions and drops the ones it does not
know, instead of passing them on through as old udev did, so we need to
explicitly teach it about them.

6 years agoMerge pull request #6721 from yuwata/mount-vfs
Lennart Poettering [Mon, 4 Sep 2017 13:37:15 +0000 (15:37 +0200)] 
Merge pull request #6721 from yuwata/mount-vfs

systemd-mount: allow to specify an arbitrary string for arg_mount_what when vfs is used

6 years ago6647 - use path_startswith("/dev") in cryptsetup (#6732)
ettavolt [Mon, 4 Sep 2017 13:36:52 +0000 (16:36 +0300)] 
6647 - use path_startswith("/dev") in cryptsetup (#6732)

For both key and partition paths.

6 years agoMerge pull request #6735 from yuwata/multiple-capability-lines
Lennart Poettering [Mon, 4 Sep 2017 13:36:30 +0000 (15:36 +0200)] 
Merge pull request #6735 from yuwata/multiple-capability-lines

core: update man and test to support multiple CapabilityBoundingSet= lines

6 years agocore: serialize n-restarts and flush-n-restarts correctly (#6736)
Evgeny Vereshchagin [Mon, 4 Sep 2017 13:36:01 +0000 (16:36 +0300)] 
core: serialize n-restarts and flush-n-restarts correctly (#6736)

This makes n-restarts and flush-n-restarts survive `systemctl daemon-[reload|rexec]`.

6 years agoshared: add statx(2) to @file-system syscall filter list (#6738)
Lennart Poettering [Mon, 4 Sep 2017 13:35:35 +0000 (15:35 +0200)] 
shared: add statx(2) to @file-system syscall filter list (#6738)

6 years agotmpfiles: silently ignore any path that passes through autofs (#6506)
NeilBrown [Mon, 4 Sep 2017 13:35:07 +0000 (23:35 +1000)] 
tmpfiles: silently ignore any path that passes through autofs (#6506)

If a path passes though an autofs filesystem, then accessing
the path might trigger and automount.  As systemd-tmpfiles is run before
the network is up, and as automounts are often used for networked
filesystems, this can cause a deadlock.

So chase_symlinks is enhance to accept a new flag which tells it
to check for autofs, and return -EREMOTE if autofs is found.

tmpfiles is changed to check just before acting on a path so that it
can avoid autofs even if a symlink was created earlier by tmpfiles
that would send this path through an autofs.

This fixes a deadlock that happens when /home is listed in /etc/fstab as
x-systemd.automount for an NFS directory.

6 years agoman: fix typos (#6739)
Jakub Wilk [Mon, 4 Sep 2017 13:25:59 +0000 (15:25 +0200)] 
man: fix typos (#6739)

6 years agotest: update test-unit-file 6735/head
Yu Watanabe [Mon, 4 Sep 2017 07:25:22 +0000 (16:25 +0900)] 
test: update test-unit-file

Follow-up for c792ec2e3512a672881fc847ff432e26b641c9c9.

6 years agoman: add examples for CapabilityBoundingSet=
Yu Watanabe [Mon, 4 Sep 2017 07:20:47 +0000 (16:20 +0900)] 
man: add examples for CapabilityBoundingSet=

Follow-up for c792ec2e3512a672881fc847ff432e26b641c9c9.

6 years agocore: merge the second CapabilityBoundingSet= lines by AND when it is prefixed with...
iplayinsun [Mon, 4 Sep 2017 03:12:27 +0000 (12:12 +0900)] 
core: merge the second CapabilityBoundingSet= lines by AND when it is prefixed with tilde (#6724)

If a unit file contains multiple CapabilityBoundingSet= or
AmbientCapabilities= lines, e.g.,
===
CapabilityBoundingSet=CAP_A CAP_B
CapabilityBoundingSet=~CAP_B CAP_C
===
before this commit, it results all capabilities except CAP_C are set to
CapabilityBoundingSet=, as each lines are always merged by OR.
This commit makes lines prefixed with ~ are merged by AND. So, for the
above example only CAP_A is set.
This makes easier to drop capabilities with drop-in config files.

6 years agosystemd-mount: allow to specify an arbitrary string for arg_mount_what when vfs is... 6721/head
Yu Watanabe [Mon, 4 Sep 2017 01:55:51 +0000 (10:55 +0900)] 
systemd-mount: allow to specify an arbitrary string for arg_mount_what when vfs is used

Fixes #6591.

6 years agoNEWS: fix typo in v235 (#6731)
Jörg Thalheim [Sun, 3 Sep 2017 18:12:12 +0000 (19:12 +0100)] 
NEWS: fix typo in v235 (#6731)

6 years agosystemctl: fix masking of template units 6741/head
Zbigniew Jędrzejewski-Szmek [Sun, 3 Sep 2017 14:45:54 +0000 (17:45 +0300)] 
systemctl: fix masking of template units

systemctl would try to load the properties of the unit, which is impossible
for template names, and the whole operation would fail. It seems that this
regression was introduced in 00c83b430020914499bebf22be6b258f518ae291.

Export the part of unit_find_paths() responsible for locating instance unit
fragments and reuse it from unit_exists() to fix the handling of template
units.

Fixes #6412.

6 years agosystemctl: check existence of all units, not just the first one
Zbigniew Jędrzejewski-Szmek [Sat, 2 Sep 2017 14:37:08 +0000 (17:37 +0300)] 
systemctl: check existence of all units, not just the first one

6 years agorfkill: Delay writes until exit (#5768) 5815/head
Benjamin Berg [Thu, 31 Aug 2017 15:36:37 +0000 (17:36 +0200)] 
rfkill: Delay writes until exit (#5768)

On thinkpads there are two rfkill devices for bluetooth. The first is an
ACPI switch which powers down the USB dongle and the second one is the
USB dongle itself. So when userspace decides to enable rfkill on all
devices systemd would randomly save the soft block state of the USB
dongle. This later causes issue when re-enabling the devie as
systemd-rfkill would put the USB dongle into soft block state right
after the ACPI rfkill switch is unblocked by userspace.

The simple way to avoid this is to not store rfkill changes for devices
that disappear shortly after. That way only the "main" ACPI switch will
get stored and systemd-rfkill will not end up blocking the device right
after it is being added back again.

6 years agosystemd-mount: fix that wrong argument is used for arg_mount_what
Yu Watanabe [Fri, 1 Sep 2017 08:03:01 +0000 (17:03 +0900)] 
systemd-mount: fix that wrong argument is used for arg_mount_what