]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
6 years agoMerge pull request #6746 from yuwata/parse-empty-string
Lennart Poettering [Thu, 14 Sep 2017 14:49:09 +0000 (16:49 +0200)] 
Merge pull request #6746 from yuwata/parse-empty-string

allow to input empty string to config_parse_xxx()

6 years agorules: ubi mtd - add link to named partitions (#6750)
Michael Grzeschik [Thu, 14 Sep 2017 12:53:07 +0000 (14:53 +0200)] 
rules: ubi mtd - add link to named partitions (#6750)

[zjs:
- rebase onto recent master
- drop signed-off-by]

6 years agoMerge pull request #6428 from boucman/device_reload
Lennart Poettering [Thu, 14 Sep 2017 10:46:23 +0000 (12:46 +0200)] 
Merge pull request #6428 from boucman/device_reload

device : reload when udev generates a "changed" event

6 years agoTODO: Drop even more redundant and implemented items
Lennart Poettering [Thu, 14 Sep 2017 09:21:24 +0000 (11:21 +0200)] 
TODO: Drop even more redundant and implemented items

6 years agoTODO: remove some items that are implemented now or otherwise obsolete
Lennart Poettering [Thu, 14 Sep 2017 09:08:59 +0000 (11:08 +0200)] 
TODO: remove some items that are implemented now or otherwise obsolete

6 years agonss: use secure_getenv for behaviour-modifying booleans (#6817)
Zbigniew Jędrzejewski-Szmek [Thu, 14 Sep 2017 07:20:27 +0000 (09:20 +0200)] 
nss: use secure_getenv for behaviour-modifying booleans (#6817)

Follow up for fe102d6ab15731a199a7ea9f38c4f68d8959f86c.

6 years agonss-systemd,sysusers: make sure sysusers doesn't get confused by nss-systemd (#6812)
Lennart Poettering [Thu, 14 Sep 2017 04:20:39 +0000 (06:20 +0200)] 
nss-systemd,sysusers: make sure sysusers doesn't get confused by nss-systemd (#6812)

In nss-systemd we synthesize user entries for "nobody" and "root", as
fallback if we boot up with an entirely empty /etc. This is supposed to
be a fallback only though, and it's intended that both users exists
regularly in /etc/passwd + /etc/group. Before this patch
systemd-sysusers would never create the entries however as it notices
the synthetic entries. Let's add a way how systemd-sysusers can tell
nss-systemd not to synthesize the entries for itself.

Fixes: #6808
6 years agobasic: ensure O_TMPFILE is always defined (#6816)
Davide Cavalca [Thu, 14 Sep 2017 04:14:29 +0000 (00:14 -0400)] 
basic: ensure O_TMPFILE is always defined (#6816)

6 years agoMerge pull request #6807 from poettering/service-result
Zbigniew Jędrzejewski-Szmek [Wed, 13 Sep 2017 21:17:20 +0000 (23:17 +0200)] 
Merge pull request #6807 from poettering/service-result

man: complete and rework $SERVICE_RESULT documentation

6 years agoMerge pull request #6810 from poettering/test-mode-segfault
Zbigniew Jędrzejewski-Szmek [Wed, 13 Sep 2017 21:13:10 +0000 (23:13 +0200)] 
Merge pull request #6810 from poettering/test-mode-segfault

don't crash in pager code when "systemd --test" is invoked

6 years agoman: rework grammatical form of sentences in a table in systemd.exec(5) 6807/head
Zbigniew Jędrzejewski-Szmek [Wed, 13 Sep 2017 21:02:34 +0000 (23:02 +0200)] 
man: rework grammatical form of sentences in a table in systemd.exec(5)

"Currently, the following values are defined: xxx: in case <condition>" is
awkward because "xxx" is always defined unconditionally. It is _used_ in case
<condition> is true. Correct this and a bunch of other places where the
sentence structure makes it unclear what is the subject of the sentence.

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 agopager: let's create pager fds with O_CLOEXEC first 6810/head
Lennart Poettering [Wed, 13 Sep 2017 08:35:28 +0000 (10:35 +0200)] 
pager: let's create pager fds with O_CLOEXEC first

We make copies (without O_CLOEXEC) of the fds anyway before using them,
hence let's be safe and create them with O_CLOEXEC first, so that we
don't run into issues should pager_open() be called in a threaded
environment where another thread fork()s at the wrong time and ends up
with fds not marked O_CLOEXEC.

6 years agomain: skip many initialization steps when running in --test mode
Lennart Poettering [Wed, 13 Sep 2017 08:31:40 +0000 (10:31 +0200)] 
main: skip many initialization steps when running in --test mode

Most importantly, don't collect open socket activation fds when in
--test mode. This specifically created a problem because we invoke
pager_open() beforehand (which these days makes copies of the original
stdout/stderr in order to be able to restore them when the pager goes
away) and we might mistakenly the fd copies it creates as socket
activation fds.

Fixes: #6383
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 agoman: complete and rework $SERVICE_RESULT documentation
Lennart Poettering [Tue, 12 Sep 2017 16:02:18 +0000 (18:02 +0200)] 
man: complete and rework $SERVICE_RESULT documentation

This reworks the paragraph describing $SERVICE_RESULT into a table, and
adds two missing entries: "success" and "start-limit-hit".

These two entries are then also added to the table explaining the
$EXIT_CODE + $EXIT_STATUS variables.

Fixes: #6597
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 agodevice : reload when udev generates a "changed" event 6428/head
Jérémy Rosen [Sat, 2 Sep 2017 09:23:36 +0000 (11:23 +0200)] 
device : reload when udev generates a "changed" event

6 years agounit : allow any unit which propagates reloads to be reloaded
\83©rÃ\83©my Rosen [Sat, 22 Jul 2017 15:30:57 +0000 (17:30 +0200)] 
unit : allow any unit which propagates reloads to be reloaded

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 agoshared: allow to input empty string to config_parse_path() 6746/head
Yu Watanabe [Tue, 5 Sep 2017 06:12:55 +0000 (15:12 +0900)] 
shared: allow to input empty string to config_parse_path()

Fixes #6633.

6 years agosocket: Symlinks= with empty string resets the list of paths.
Yu Watanabe [Tue, 5 Sep 2017 06:08:59 +0000 (15:08 +0900)] 
socket: Symlinks= with empty string resets the list of paths.

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.