]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
3 years agoMerge pull request #16073 from keszybz/shell-completion
Lennart Poettering [Tue, 9 Jun 2020 07:33:41 +0000 (09:33 +0200)] 
Merge pull request #16073 from keszybz/shell-completion

Bash completion for homectl and help improvement for kernel-install

3 years agoMerge pull request #15953 from keszybz/gdb-script
Lennart Poettering [Tue, 9 Jun 2020 07:31:49 +0000 (09:31 +0200)] 
Merge pull request #15953 from keszybz/gdb-script

Update gdb script to match current sources and other hashmap improvements

3 years agoMerge pull request #16047 from poettering/udev-ro-block
Lennart Poettering [Tue, 9 Jun 2020 07:09:32 +0000 (09:09 +0200)] 
Merge pull request #16047 from poettering/udev-ro-block

udev: optionally mark all block devices popping up read-only by default

3 years agoupdate TODO
Lennart Poettering [Tue, 9 Jun 2020 06:54:41 +0000 (08:54 +0200)] 
update TODO

3 years agoMerge pull request #16085 from ssahani/network-client-id
Yu Watanabe [Tue, 9 Jun 2020 06:30:23 +0000 (15:30 +0900)] 
Merge pull request #16085 from ssahani/network-client-id

networkctl: add support to display DHCPv4 client ID

3 years agoAdd 'bitlk' option to mount Bitlocker drives with cryptsetup.
Maxim Fomin [Sat, 30 May 2020 10:21:44 +0000 (11:21 +0100)] 
Add 'bitlk' option to mount Bitlocker drives with cryptsetup.

3 years agohwdb: add HP Spectre x360's mic mute switch
Niccolò Maggioni [Mon, 8 Jun 2020 10:45:02 +0000 (12:45 +0200)] 
hwdb: add HP Spectre x360's mic mute switch

Tested on HP Spectre x360 Convertible 13-aw0xxx

3 years agoMerge pull request #16092 from yuwata/network-accept-local-16090
Lennart Poettering [Mon, 8 Jun 2020 16:15:03 +0000 (18:15 +0200)] 
Merge pull request #16092 from yuwata/network-accept-local-16090

network: introduce IPv4AcceptLocal= setting

3 years agoman: single-char parameters take no '=' 16047/head
Lennart Poettering [Fri, 5 Jun 2020 13:42:45 +0000 (15:42 +0200)] 
man: single-char parameters take no '='

The suggested syntax is simply not valid and results in an error.

3 years agounits: tweak udev unit descriptions
Lennart Poettering [Tue, 2 Jun 2020 13:36:17 +0000 (15:36 +0200)] 
units: tweak udev unit descriptions

3 years agoudev: optionally mark all block devices read-only as they pop up
Lennart Poettering [Tue, 2 Jun 2020 13:15:24 +0000 (15:15 +0200)] 
udev: optionally mark all block devices read-only as they pop up

3 years agonetworkctl: Display DHCP4 client ID 16085/head
Susant Sahani [Mon, 8 Jun 2020 04:40:23 +0000 (06:40 +0200)] 
networkctl: Display DHCP4 client ID

3 years agosd-network: Introduce API to access DHCP4 client ID
Susant Sahani [Mon, 8 Jun 2020 04:39:50 +0000 (06:39 +0200)] 
sd-network: Introduce API to access DHCP4 client ID

3 years agonetwork: DHCP4 client ID save in state file
Susant Sahani [Mon, 8 Jun 2020 04:39:06 +0000 (06:39 +0200)] 
network: DHCP4 client ID save in state file

3 years agotest-network: add test for IPv4AcceptLocal= 16092/head
Yu Watanabe [Mon, 8 Jun 2020 04:51:50 +0000 (13:51 +0900)] 
test-network: add test for IPv4AcceptLocal=

3 years agonetwork: introduce IPv4AcceptLocal= setting
Yu Watanabe [Mon, 8 Jun 2020 04:48:14 +0000 (13:48 +0900)] 
network: introduce IPv4AcceptLocal= setting

Closes #16090.

3 years agohomed help --uid short option
layderv [Sat, 6 Jun 2020 16:01:56 +0000 (12:01 -0400)] 
homed help --uid short option

3 years agotest: avoid failing due to unexpected precision
Frantisek Sumsal [Sat, 6 Jun 2020 10:50:48 +0000 (12:50 +0200)] 
test: avoid failing due to unexpected precision

After today's Arch Linux image update, there seems to be a slight change
in delay reporting which breaks some asserts in
systemd-networkd-tests.py:

Expected:
        limit 100 delay 50.0ms  10.0ms loss 20%
Current:
        limit 100 delay 50ms  10ms loss 20%

3 years agoMerge pull request #16033 from poettering/parse-int-fixlets
Daan De Meyer [Sat, 6 Jun 2020 08:45:35 +0000 (10:45 +0200)] 
Merge pull request #16033 from poettering/parse-int-fixlets

various fixes and tweaks for integer parsing

3 years agoresolve: enable RES_TRUSTAD towards the 127.0.0.53 stub resolver
YmrDtnJu [Fri, 5 Jun 2020 13:36:58 +0000 (15:36 +0200)] 
resolve: enable RES_TRUSTAD towards the 127.0.0.53 stub resolver

glibc 2.31 strips the AD flag, unless either the application specifies
RES_TRUSTAD or the options in resolv.conf contain trust-ad.

See https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=NEWS;hb=HEAD

3 years agolldp: fix assertion checking argument for sd_lldp_set_neighbors_max()
Thomas Haller [Fri, 5 Jun 2020 17:48:13 +0000 (19:48 +0200)] 
lldp: fix assertion checking argument for sd_lldp_set_neighbors_max()

Fixes: 34437b4f9c9c ('sd-lldp: rework sd-lldp API')
3 years agoman: fix typo Takse -> Takes
Susant Sahani [Sat, 6 Jun 2020 07:05:34 +0000 (09:05 +0200)] 
man: fix typo Takse -> Takes

3 years agoshell-completion: add homectl for bash 16073/head
Zbigniew Jędrzejewski-Szmek [Fri, 5 Jun 2020 14:30:22 +0000 (16:30 +0200)] 
shell-completion: add homectl for bash

The difference between verbs that take one user and multiple users is not
handled. I don't know how to do this.

3 years agokernel-install: extend --help
Zbigniew Jędrzejewski-Szmek [Thu, 4 Jun 2020 11:17:22 +0000 (13:17 +0200)] 
kernel-install: extend --help

3 years agoMerge pull request #15378 from msekletar/udev-kill-signal
Zbigniew Jędrzejewski-Szmek [Fri, 5 Jun 2020 14:33:14 +0000 (16:33 +0200)] 
Merge pull request #15378 from msekletar/udev-kill-signal

udev:  make signal that we use to kill workers on timeout configurable

3 years agotest: add test for parse_uid_range() 16033/head
Lennart Poettering [Fri, 5 Jun 2020 13:56:11 +0000 (15:56 +0200)] 
test: add test for parse_uid_range()

3 years agotests: beef up integer parsing tests
Lennart Poettering [Mon, 1 Jun 2020 15:48:41 +0000 (17:48 +0200)] 
tests: beef up integer parsing tests

3 years agoparse-util: also parse integers prefixed with 0b and 0o
Lennart Poettering [Mon, 1 Jun 2020 15:31:51 +0000 (17:31 +0200)] 
parse-util: also parse integers prefixed with 0b and 0o

Let's adopt Python 3 style 0b and 0x syntaxes, because it makes a ton of
sense, in particular in bitmask settings.

3 years agoparse-util: rewrite parse_uid_range() on top of parse_uid()
Lennart Poettering [Mon, 1 Jun 2020 15:17:40 +0000 (17:17 +0200)] 
parse-util: rewrite parse_uid_range() on top of parse_uid()

parse_uid() does so many safety checks we want, hence rewrite
parse_uid_range() on top of parse_uid() instead of parse_range().

3 years agouser-util: be stricter in parse_uid()
Lennart Poettering [Mon, 1 Jun 2020 15:16:46 +0000 (17:16 +0200)] 
user-util: be stricter in parse_uid()

Let's refuse "+" and "-" prefixed UIDs. Let's refuse whitespace-prefixed
UIDS, Let's refuse zero-prefixed UIDs. Let's be safe than sorry.

3 years agoparse-util: rewrite parse_mode() on top of safe_atou_full()
Lennart Poettering [Mon, 1 Jun 2020 15:16:04 +0000 (17:16 +0200)] 
parse-util: rewrite parse_mode() on top of safe_atou_full()

Parsing is hard, hence let's use our own careful wrappers wherever
possible.

3 years agoparse-util: make return parameter optional in safe_atou16_full()
Lennart Poettering [Mon, 1 Jun 2020 15:10:27 +0000 (17:10 +0200)] 
parse-util: make return parameter optional in safe_atou16_full()

All other safe_atoXYZ_full() functions have the parameter optional,
let's make it optoinal here, too.

3 years agoparse-util: allow '-0' as alternative to '0' and '+0'
Lennart Poettering [Mon, 1 Jun 2020 15:08:38 +0000 (17:08 +0200)] 
parse-util: allow '-0' as alternative to '0' and '+0'

Let's allow "-0" as alternative to "+0" and "0" when parsing integers,
unless the new SAFE_ATO_REFUSE_PLUS_MINUS flag is specified.

In cases where allowing the +/- syntax shall not be allowed
SAFE_ATO_REFUSE_PLUS_MINUS is the right flag to use, but this also means
that -0 as only negative integer that fits into an unsigned value should
be acceptable if the flag is not specified.

3 years agoparse-util: allow tweaking how to parse integers
Lennart Poettering [Mon, 1 Jun 2020 15:06:19 +0000 (17:06 +0200)] 
parse-util: allow tweaking how to parse integers

This allows disabling a few alternative ways to decode integers
formatted as strings, for safety reasons.

See: #15991

3 years agotest: add integration test for udev event timeout 15378/head
Michal Sekletár [Thu, 30 Apr 2020 21:22:08 +0000 (23:22 +0200)] 
test: add integration test for udev event timeout

Note that run_test() calls coredumpctl in a loop because in certain
environments (1 vCPU unaccelerated QEMU VM) it might take quite a
while to process the coredump.

3 years agoudev: make signal that we use to kill workers on timeout configurable
Michal Sekletár [Thu, 9 Apr 2020 09:14:25 +0000 (11:14 +0200)] 
udev: make signal that we use to kill workers on timeout configurable

3 years agoMerge pull request #15466 from elmarco/dhcp-leases
Zbigniew Jędrzejewski-Szmek [Fri, 5 Jun 2020 06:47:35 +0000 (08:47 +0200)] 
Merge pull request #15466 from elmarco/dhcp-leases

networkctl: print DHCP leases

3 years agoturn off fuzzit
Evgeny Vereshchagin [Thu, 4 Jun 2020 14:02:23 +0000 (16:02 +0200)] 
turn off fuzzit

It seems it went down yesterday and it's not clear how long it will
take to bring it back.

3 years agonetworkctl: print DHCP leases 15466/head
Marc-André Lureau [Fri, 22 May 2020 10:01:35 +0000 (12:01 +0200)] 
networkctl: print DHCP leases

3 years agonetworkctl: factor out link_get_property()
Marc-André Lureau [Fri, 22 May 2020 09:59:31 +0000 (11:59 +0200)] 
networkctl: factor out link_get_property()

The next patch is going to reuse it.

3 years agosd-dhcp-client: add sd_dhcp_client_id_to_string()
Marc-André Lureau [Fri, 22 May 2020 09:30:49 +0000 (11:30 +0200)] 
sd-dhcp-client: add sd_dhcp_client_id_to_string()

Add a human-friendly pretty-printer for client ID.

3 years agomacro.h: add sizeof_field() helper
Marc-André Lureau [Sun, 17 May 2020 13:25:14 +0000 (15:25 +0200)] 
macro.h: add sizeof_field() helper

Similar to kernel FIELD_SIZE()

3 years agosd-dhcp-client: make struct sd_dhcp_client_id reusable
Marc-André Lureau [Fri, 22 May 2020 09:27:49 +0000 (11:27 +0200)] 
sd-dhcp-client: make struct sd_dhcp_client_id reusable

3 years agonetworkd: expose DHCPServer interface on links
Marc-André Lureau [Fri, 22 May 2020 09:56:59 +0000 (11:56 +0200)] 
networkd: expose DHCPServer interface on links

3 years agonetworkd: start a DBus interface for the DHCP server
Marc-André Lureau [Fri, 22 May 2020 09:49:16 +0000 (11:49 +0200)] 
networkd: start a DBus interface for the DHCP server

Add a "org.freedesktop.network1.DHCPServer" DBus interface that will be
added on a link path where a DHCP server is provided.

Currently, it only exposes a "Leases" property, although there are plans
to expand it further. The property is updated thanks to the
dhcp_server_callback().

3 years agosd-dhcp-server: notify callback on lease changed
Marc-André Lureau [Fri, 22 May 2020 09:37:14 +0000 (11:37 +0200)] 
sd-dhcp-server: notify callback on lease changed

3 years agosd-dhcp-server: add sd_dhcp_server_set_callback()
Marc-André Lureau [Fri, 22 May 2020 09:33:36 +0000 (11:33 +0200)] 
sd-dhcp-server: add sd_dhcp_server_set_callback()

3 years agonetwork: make link become configured state when at least one dynamic protocol provide...
Yu Watanabe [Wed, 3 Jun 2020 08:07:16 +0000 (17:07 +0900)] 
network: make link become configured state when at least one dynamic protocol provide an address

Before this, to speed up the system boot with IPv4 only network,
we need to specify `IPv6AcceptRA=no`, as it is enabled by default.

Closes #15469.

3 years agochange fs/file-max to LONG_MAX instead of ULONG_MAX
Einsler Lee [Thu, 4 Jun 2020 07:28:51 +0000 (15:28 +0800)] 
change fs/file-max to LONG_MAX instead of ULONG_MAX

Since this has been changed in: https://github.com/systemd/systemd/commit/6e2f78948403a4cce45b9e34311c9577c624f066, the change should be synchronized.

3 years agoMerge pull request #16057 from keszybz/resolvectl-sorted-no-nta
Yu Watanabe [Thu, 4 Jun 2020 02:30:14 +0000 (11:30 +0900)] 
Merge pull request #16057 from keszybz/resolvectl-sorted-no-nta

Drop NTA lists from resolvectl status and sort output by link number

3 years agoMerge pull request #15171 from ssahani/tc-qfq
Yu Watanabe [Thu, 4 Jun 2020 02:17:42 +0000 (11:17 +0900)] 
Merge pull request #15171 from ssahani/tc-qfq

network: TC- Introduce Quick Fair Queueing (QFQ)

3 years agoMerge pull request #16056 from keszybz/minor-doc-updates
Lennart Poettering [Wed, 3 Jun 2020 17:00:04 +0000 (19:00 +0200)] 
Merge pull request #16056 from keszybz/minor-doc-updates

Minor doc updates

3 years agoseccomp: filter openat2() entirely in seccomp_restrict_sxid()
Lennart Poettering [Tue, 2 Jun 2020 08:40:25 +0000 (10:40 +0200)] 
seccomp: filter openat2() entirely in seccomp_restrict_sxid()

3 years agocore: remove support for ".include" stanza
Lennart Poettering [Tue, 2 Jun 2020 10:06:22 +0000 (12:06 +0200)] 
core: remove support for ".include" stanza

Six years ago we declared it obsolete and removed it from the docs
(c073a0c4a5ffbf6677dd6af02e7c7d59b2b901ab) and added a note about it in
NEWS. Two years ago we add warning messages about it, indicating the
feature will be removed (41b283d0f1f4abd85d0bbeeb7f71bb30f87cfab9) and
mentioned it in NEWS again.

Let's now kill it for good.

3 years agonetwork: read driver name from ethtool
Yu Watanabe [Wed, 3 Jun 2020 07:19:29 +0000 (16:19 +0900)] 
network: read driver name from ethtool

To make Driver= in [Match] section work in containers.

Note that ID_NET_DRIVER= property in udev database is set with the
result of the ethtool. So, this should not change anything for
non-container cases.

Closes #15678.

3 years agobasic/sort-util: adorn qsort_safe with a prefix underscore 16057/head
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 15:54:49 +0000 (17:54 +0200)] 
basic/sort-util: adorn qsort_safe with a prefix underscore

It should not be used directly since we have typesafe_qsort(), so
let's mark it appropriately.

3 years agopstore: use typesafe_qsort
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 15:53:14 +0000 (17:53 +0200)] 
pstore: use typesafe_qsort

Also move "allocated" above "n", since, conceptually, it is modified
earlier (and that is the definition order we normally use).

3 years agoresolvect: sort status output by link number
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 15:49:22 +0000 (17:49 +0200)] 
resolvect: sort status output by link number

This makes the output more predictable. Also, interesting interfaces
are often the low-numbered ones (actual hardware links, not virtual
devices stacked on top), and this makes them more visible.

3 years agoresolvectl,systemctl: reduce scope of variables
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 15:46:58 +0000 (17:46 +0200)] 
resolvectl,systemctl: reduce scope of variables

3 years agoIntroduce strcasecmp_ptr() and use it in a few places
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 15:31:34 +0000 (17:31 +0200)] 
Introduce strcasecmp_ptr() and use it in a few places

3 years agoresolvectl: do not show NTA lists in status
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 14:57:07 +0000 (16:57 +0200)] 
resolvectl: do not show NTA lists in status

Those lists are very long and use up a significant chunk of screen real estate.
But the contents are mostly static (usually they just reflect built-in
configuration). Let's just not show them in 'status' output. They can still
be viewed with 'nta' verb.

3 years agotest-network: add tests for QFQ 15171/head
Yu Watanabe [Wed, 3 Jun 2020 06:18:55 +0000 (15:18 +0900)] 
test-network: add tests for QFQ

3 years agonetwork: tc: introduce [QuickFairQueueingClass] section
Yu Watanabe [Wed, 3 Jun 2020 06:07:45 +0000 (15:07 +0900)] 
network: tc: introduce [QuickFairQueueingClass] section

3 years agonetwork: tc: introduce Quick Fair Queueing (QFQ)
Susant Sahani [Thu, 19 Mar 2020 21:41:57 +0000 (22:41 +0100)] 
network: tc: introduce Quick Fair Queueing (QFQ)

3 years agosd-netlink: add netlink properties of Quick Fair Queueing (QFQ)
Susant Sahani [Thu, 19 Mar 2020 21:41:10 +0000 (22:41 +0100)] 
sd-netlink: add netlink properties of Quick Fair Queueing (QFQ)

3 years agoMerge pull request #16048 from poettering/conf-parser-mtime
Yu Watanabe [Tue, 2 Jun 2020 23:25:28 +0000 (08:25 +0900)] 
Merge pull request #16048 from poettering/conf-parser-mtime

conf-parser: automatically pick up newest mtime when parsing configuration files

3 years agocore: set source_mtime after load dropins
Zbigniew Jędrzejewski-Szmek [Sun, 31 May 2020 12:35:40 +0000 (14:35 +0200)] 
core: set source_mtime after load dropins

Dropins may specify SourcePath= too, but we would do the stat only
after loading the main fragment, before loading of the drop-ins.

Fixes #13634.

3 years agoconf-parser: return mtime in config_parse() and friends 16048/head
Lennart Poettering [Tue, 2 Jun 2020 12:55:12 +0000 (14:55 +0200)] 
conf-parser: return mtime in config_parse() and friends

This is a follow-up for 9f83091e3cceb646a66fa9df89de6d9a77c21d86.

Instead of reading the mtime off the configuration files after reading,
let's do so before reading, but with the fd we read the data from. This
is not only cleaner (as it allows us to save one stat()), but also has
the benefit that we'll detect changes that happen while we read the
files.

This also reworks unit file drop-ins to use the common code for
determining drop-in mtime, instead of reading system clock for that.

3 years agoconf-parse: fix pretty bad typo
Lennart Poettering [Tue, 2 Jun 2020 14:49:50 +0000 (16:49 +0200)] 
conf-parse: fix pretty bad typo

3 years agofs-util: add stat_warn_permissions() that operates on struct stat instead of fd
Lennart Poettering [Tue, 2 Jun 2020 14:44:34 +0000 (16:44 +0200)] 
fs-util: add stat_warn_permissions() that operates on struct stat instead of fd

3 years agoMerge pull request #15996 from yuwata/network-dhcp6-route-metric-15295
Lennart Poettering [Tue, 2 Jun 2020 17:29:47 +0000 (19:29 +0200)] 
Merge pull request #15996 from yuwata/network-dhcp6-route-metric-15295

network: add RouteMetric= in [DHCPv6] section

3 years agobasic/efivars: try re-reading efivars without delay first
Zbigniew Jędrzejewski-Szmek [Sun, 31 May 2020 10:16:57 +0000 (12:16 +0200)] 
basic/efivars: try re-reading efivars without delay first

Quoting https://github.com/systemd/systemd/issues/14828#issuecomment-635212615:

> [kernel uses] msleep_interruptible() and that means when the process receives
> any kind of signal masked or not this will abort with EINTR.  systemd-logind
> gets signals from the TTY layer all the time though.

> Here's what might be happening: while logind reads the EFI stuff it gets a
> series of signals from the TTY layer, which causes the read() to be aborted
> with EINTR, which means logind will wait 50ms and retry. Which will be
> aborted again, and so on, until quite some time passed. If we'd not wait for
> the 50ms otoh we wouldn't wait so long, as then on each signal we'd
> immediately retry again.

3 years agofd-util: be more careful with fclose() errnos
Lennart Poettering [Tue, 2 Jun 2020 08:39:25 +0000 (10:39 +0200)] 
fd-util: be more careful with fclose() errnos

This might fix #15859, a bug which I find very puzzling.

3 years agoupdate TODO
Lennart Poettering [Tue, 2 Jun 2020 12:56:08 +0000 (14:56 +0200)] 
update TODO

3 years agoman: add note that emergency.target inherits mount state 16056/head
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 12:26:26 +0000 (14:26 +0200)] 
man: add note that emergency.target inherits mount state

Based on an internal discussion whether emergency.target should remount disks
ro, or maybe remount them rw, or do nothing. In some cases people want to boot
ro, and always remounting rw would break that. In other cases, remounting disks
ro after they have already been mounted rw is mostly pointless and might even
not be possible. So let's just document that we don't change the state.

Also: any→other, since emergency.service *is* pulled in.

Also: just advertise "emergency" as the way to boot into the target.
We are not going to remove this option, and it's way easier to type than
"systemd.unit=emergency.target".

3 years agounits: uppercase the description
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 12:14:20 +0000 (14:14 +0200)] 
units: uppercase the description

https://github.com/systemd/systemd/pull/15982#pullrequestreview-422536495

3 years agoman,mkosi: bump Fedora version
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 07:45:24 +0000 (09:45 +0200)] 
man,mkosi: bump Fedora version

3 years agotest: temporarily block test 48 on Ubuntu's autopkgtest
Luca Boccassi [Mon, 1 Jun 2020 11:24:10 +0000 (12:24 +0100)] 
test: temporarily block test 48 on Ubuntu's autopkgtest

This test runs fine locally (both on Qemu and nspawn) but sporadically fails on
autopkgtest for some reason.
Disable it while the issue is investigated to reduce noise.

3 years agonetwork: drop an unused function 15996/head
Yu Watanabe [Tue, 2 Jun 2020 06:36:12 +0000 (15:36 +0900)] 
network: drop an unused function

3 years agonetwork: move DHCPv6 related conf parsers to networkd-dhcp6.c
Yu Watanabe [Mon, 1 Jun 2020 04:18:22 +0000 (13:18 +0900)] 
network: move DHCPv6 related conf parsers to networkd-dhcp6.c

3 years agonetwork: set both dhcp_route_metric and dhcp6_route_metric by DHCP.RouteMetric= for...
Yu Watanabe [Mon, 1 Jun 2020 04:08:43 +0000 (13:08 +0900)] 
network: set both dhcp_route_metric and dhcp6_route_metric by DHCP.RouteMetric= for backward compatibility

But [DHCPv4] or [DHCPv6] section take precedence.
This also update so for UseDNS= and UseNTP=.

3 years agonetwork: add DHCPv6.RouteMetric=
Yu Watanabe [Mon, 1 Jun 2020 04:02:16 +0000 (13:02 +0900)] 
network: add DHCPv6.RouteMetric=

Hopefully fixes #15295.

3 years agonetwork: use uint32_t instead of unsigned for route priority
Yu Watanabe [Mon, 1 Jun 2020 04:01:09 +0000 (13:01 +0900)] 
network: use uint32_t instead of unsigned for route priority

3 years agoMerge pull request #16030 from yuwata/network-read-mtime-of-dropin-configs-15521
Zbigniew Jędrzejewski-Szmek [Mon, 1 Jun 2020 13:14:13 +0000 (15:14 +0200)] 
Merge pull request #16030 from yuwata/network-read-mtime-of-dropin-configs-15521

network: also read mtime of drop-in configs

3 years agoMerge pull request #15991 from keszybz/uids-gids-only-decimal
Yu Watanabe [Mon, 1 Jun 2020 08:04:57 +0000 (17:04 +0900)] 
Merge pull request #15991 from keszybz/uids-gids-only-decimal

Only use base 10 for numeric uids/gids

3 years agonetwork: also read mtime of drop-in configs 16030/head
Yu Watanabe [Mon, 1 Jun 2020 05:53:06 +0000 (14:53 +0900)] 
network: also read mtime of drop-in configs

Fixes #15521.

3 years agonetwork: do not propagte error on stat()
Yu Watanabe [Mon, 1 Jun 2020 07:19:50 +0000 (16:19 +0900)] 
network: do not propagte error on stat()

3 years agoudev: single binary replacing udevd and udevadm
Norbert Lange [Tue, 26 May 2020 08:26:12 +0000 (10:26 +0200)] 
udev: single binary replacing udevd and udevadm

Since the separate binaries contain mostly the same code,
this almost halves the size of the installation.

before:
398K /bin/udevadm
391K /lib/systemd/systemd-udevd

after:
431K /bin/udevadm
0    /lib/systemd/systemd-udevd -> ../../bin/udevadm

Fixes: #14200
3 years agonetwork: fix double free in macsec_receive_channel_free()
Yu Watanabe [Fri, 29 May 2020 07:56:09 +0000 (16:56 +0900)] 
network: fix double free in macsec_receive_channel_free()

Fixes #15941.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22547

3 years agoMerge pull request #16029 from yuwata/network-wireguard-without-peers-15786
Zbigniew Jędrzejewski-Szmek [Mon, 1 Jun 2020 07:34:04 +0000 (09:34 +0200)] 
Merge pull request #16029 from yuwata/network-wireguard-without-peers-15786

network: configure wireguard without no peers

3 years agoMerge pull request #15990 from jwrdegoede/hwdb-accel-quirks
Zbigniew Jędrzejewski-Szmek [Mon, 1 Jun 2020 06:44:07 +0000 (08:44 +0200)] 
Merge pull request #15990 from jwrdegoede/hwdb-accel-quirks

Hwdb accel quirks

3 years agotest-network: add test for wireguard without peers 16029/head
Yu Watanabe [Mon, 1 Jun 2020 05:23:03 +0000 (14:23 +0900)] 
test-network: add test for wireguard without peers

3 years agonetwork: wireguard: set ListenPort= when no peers are configured
Yu Watanabe [Mon, 1 Jun 2020 05:22:06 +0000 (14:22 +0900)] 
network: wireguard: set ListenPort= when no peers are configured

Closes #15786.

3 years agoMerge pull request #15982 from keszybz/shell-completion-and-help
Yu Watanabe [Mon, 1 Jun 2020 04:50:50 +0000 (13:50 +0900)] 
Merge pull request #15982 from keszybz/shell-completion-and-help

Shell completion and udevd help update

3 years agoMerge pull request #15884 from ssahani/dhcpv6-vendor
Yu Watanabe [Mon, 1 Jun 2020 03:25:54 +0000 (12:25 +0900)] 
Merge pull request #15884 from ssahani/dhcpv6-vendor

DHCPv6: Introduce vendor specific

3 years agoMerge pull request #15993 from mrc0mmand/news-update
Daan De Meyer [Sun, 31 May 2020 19:56:40 +0000 (21:56 +0200)] 
Merge pull request #15993 from mrc0mmand/news-update

NEWS: fix several typos

3 years agotests: add a testcase triggering https://github.com/systemd/systemd/issues/15968
Evgeny Vereshchagin [Sun, 31 May 2020 11:21:16 +0000 (13:21 +0200)] 
tests: add a testcase triggering https://github.com/systemd/systemd/issues/15968

It's just a follow-up to https://github.com/systemd/systemd/pull/15976

3 years agoNEWS: fix several typos 15993/head
Frantisek Sumsal [Sun, 31 May 2020 19:21:44 +0000 (21:21 +0200)] 
NEWS: fix several typos

3 years agobasic/user-util: always use base 10 for user/group numbers 15991/head
Zbigniew Jędrzejewski-Szmek [Sun, 31 May 2020 16:21:09 +0000 (18:21 +0200)] 
basic/user-util: always use base 10 for user/group numbers

We would parse numbers with base prefixes as user identifiers. For example,
"0x2b3bfa0" would be interpreted as UID==45334432 and "01750" would be
interpreted as UID==1000. This parsing was used also in cases where either a
user/group name or number may be specified. This means that names like
0x2b3bfa0 would be ambiguous: they are a valid user name according to our
documented relaxed rules, but they would also be parsed as numeric uids.

This behaviour is definitely not expected by users, since tools generally only
accept decimal numbers (e.g. id, getent passwd), while other tools only accept
user names and thus will interpret such strings as user names without even
attempting to convert them to numbers (su, ssh). So let's follow suit and only
accept numbers in decimal notation. Effectively this means that we will reject
such strings as a username/uid/groupname/gid where strict mode is used, and try
to look up a user/group with such a name in relaxed mode.

Since the function changed is fairly low-level and fairly widely used, this
affects multiple tools: loginctl show-user/enable-linger/disable-linger foo',
the third argument in sysusers.d, fourth and fifth arguments in tmpfiles.d,
etc.

Fixes #15985.

3 years agologinctl: define loop iterators in the loop header
Zbigniew Jędrzejewski-Szmek [Sun, 31 May 2020 15:54:57 +0000 (17:54 +0200)] 
loginctl: define loop iterators in the loop header