]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
3 years agoNEWS: add date v246-rc1
Zbigniew Jędrzejewski-Szmek [Thu, 9 Jul 2020 06:33:39 +0000 (08:33 +0200)] 
NEWS: add date

3 years agouserdb: fix dlopen call
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 20:23:24 +0000 (22:23 +0200)] 
userdb: fix dlopen call

The call would always fail with:
systemd-userwork[780]: Failed to dlopen(libnss_systemd.so.2), ignoring: /usr/lib64libnss_systemd.so.2: cannot open shared object file: No such file or directory

3 years agoMerge pull request #16411 from ddstreet/bridge_without_carrier_fails
Yu Watanabe [Thu, 9 Jul 2020 05:01:45 +0000 (14:01 +0900)] 
Merge pull request #16411 from ddstreet/bridge_without_carrier_fails

Bridge without carrier fails

3 years agoNEWS: add blurb about os-release and $container_host_*
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 22:02:55 +0000 (00:02 +0200)] 
NEWS: add blurb about os-release and $container_host_*

3 years agoMerge pull request #15891 from bluca/host_os_release
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 21:52:13 +0000 (23:52 +0200)] 
Merge pull request #15891 from bluca/host_os_release

Container Interface: expose the host's os-release metadata to nspawn and portable guests

3 years agotest-netowrk: in test_bridge_configure_without_carrier, avoid strange test failures 16411/head
Dan Streetman [Wed, 8 Jul 2020 21:05:03 +0000 (17:05 -0400)] 
test-netowrk: in test_bridge_configure_without_carrier, avoid strange test failures

For some reason the wait-online is failing intermittently; it's unclear
exactly why, but this hopefully avoids the failure for unrelated PR.

This is a workaround (not fix) for #16105

3 years agoMerge pull request #16405 from sipraga/master
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 20:31:42 +0000 (22:31 +0200)] 
Merge pull request #16405 from sipraga/master

3 years agoMerge pull request #15955 from anitazha/nullorempty
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 20:18:17 +0000 (22:18 +0200)] 
Merge pull request #15955 from anitazha/nullorempty

core: check null_or_empty_path for masked units instead of /dev/null

3 years agotest-network: don't print networkctl output for passing subtests
Dan Streetman [Wed, 8 Jul 2020 20:13:14 +0000 (16:13 -0400)] 
test-network: don't print networkctl output for passing subtests

This just clutters up the logs.

3 years agoMerge pull request #16404 from keszybz/release-246-prep
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 20:10:44 +0000 (22:10 +0200)] 
Merge pull request #16404 from keszybz/release-246-prep

Prepare v246-rc1

3 years agotest: bump the TEST-47 sleeps once again
Frantisek Sumsal [Wed, 8 Jul 2020 12:42:43 +0000 (14:42 +0200)] 
test: bump the TEST-47 sleeps once again

Several recent failed runs show that the test is still racy in two ways:

1) Sometimes it takes a while before the PID file is created, leading
   to:

```
[   10.950540] testsuite-47.sh[308]: ++ cat /leakedtestpid
[   10.959712] testsuite-47.sh[308]: cat: /leakedtestpid: No such file or directory
[   10.959824] testsuite-47.sh[298]: + leaked_pid=
```

2) Again, sometimes we check the leaked PID before the unit is actually
   stopped, leading to a false negative:

```
[   18.099599] testsuite-47.sh[346]: ++ cat /leakedtestpid
[   18.116462] testsuite-47.sh[333]: + leaked_pid=342
[   18.117101] testsuite-47.sh[333]: + systemctl stop testsuite-47-repro
...
[   20.033907] testsuite-47.sh[333]: + ps -p 342
[   20.080050] testsuite-47.sh[351]:     PID TTY          TIME CMD
[   20.080050] testsuite-47.sh[351]:     342 ?        00:00:00 sleep
[   20.082040] testsuite-47.sh[333]: + exit 42
```

3 years agonetwork: add support for MACVLAN source mode 16405/head
Alvin Šipraga [Wed, 8 Jul 2020 13:52:23 +0000 (15:52 +0200)] 
network: add support for MACVLAN source mode

Add support for creating a MACVLAN interface in "source" mode by
specifying Mode=source in the [MACVLAN] section of a .netdev file.

A list of allowed MAC addresses for the corresponding MACVLAN can also
be specified with the SourceMACAddress= option of the [MACVLAN] section.

An example .netdev file:

    [NetDev]
    Name=macvlan0
    Kind=macvlan
    MACAddress=02:DE:AD:BE:EF:00

    [MACVLAN]
    Mode=source
    SourceMACAddress=02:AB:AB:AB:AB:01 02:CD:CD:CD:CD:01
    SourceMACAddress=02:EF:EF:EF:EF:01

The same keys can also be specified in [MACVTAP] for MACVTAP kinds of
interfaces, with the same semantics.

3 years agomeson: bump version numbers for v246 16404/head
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 15:35:54 +0000 (17:35 +0200)] 
meson: bump version numbers for v246

3 years agoNEWS: update contributors list for v246-rc
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 15:33:36 +0000 (17:33 +0200)] 
NEWS: update contributors list for v246-rc

3 years agogit-contrib: simplify implementation a bit
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jul 2020 15:31:43 +0000 (17:31 +0200)] 
git-contrib: simplify implementation a bit

3 years agoMerge pull request #16385 from JackFangXN/master
Lennart Poettering [Wed, 8 Jul 2020 10:12:29 +0000 (12:12 +0200)] 
Merge pull request #16385 from JackFangXN/master

table add table_log_xx_error()

3 years agosd-device: use log_device_debug_errno()
Yu Watanabe [Wed, 8 Jul 2020 01:35:45 +0000 (10:35 +0900)] 
sd-device: use log_device_debug_errno()

3 years agotable use table_log_print_error() instead of table_log_show_error 16385/head
fangxiuning [Wed, 8 Jul 2020 07:16:52 +0000 (15:16 +0800)] 
table use table_log_print_error() instead of table_log_show_error

3 years agotable add table_log_sort_error()
fangxiuning [Tue, 7 Jul 2020 02:29:14 +0000 (10:29 +0800)] 
table add table_log_sort_error()

3 years agotable add table_log_show_error()
fangxiuning [Tue, 7 Jul 2020 02:13:13 +0000 (10:13 +0800)] 
table add table_log_show_error()

3 years agoMerge pull request #16379 from yuwata/network-dhcp6-delegated-prefix-address-handler
Yu Watanabe [Wed, 8 Jul 2020 01:22:08 +0000 (10:22 +0900)] 
Merge pull request #16379 from yuwata/network-dhcp6-delegated-prefix-address-handler

network: fix assertion in assigning dhcp6 delegated prefix

3 years agodocs: update information where to file bugs against RHEL/CentOS versions of systemd
Lukas Nykryn [Tue, 7 Jul 2020 18:42:04 +0000 (20:42 +0200)] 
docs: update information where to file bugs against RHEL/CentOS versions of systemd

3 years agoMerge pull request #16143 from fbuihuu/fstab-generator-fix
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2020 18:06:18 +0000 (20:06 +0200)] 
Merge pull request #16143 from fbuihuu/fstab-generator-fix

fstab-generator: make sure explicit deps configured via mount options apply to .mount, not .automount unit

3 years agoadd error message when bind mount src missing
Alan Perry [Fri, 26 Jun 2020 05:37:39 +0000 (05:37 +0000)] 
add error message when bind mount src missing

3 years agonetwork: make address_handler() static 16379/head
Yu Watanabe [Mon, 6 Jul 2020 23:39:14 +0000 (08:39 +0900)] 
network: make address_handler() static

3 years agonetwork: introduce own address handler for dhcp6 delegated prefix
Yu Watanabe [Mon, 6 Jul 2020 23:38:37 +0000 (08:38 +0900)] 
network: introduce own address handler for dhcp6 delegated prefix

Fixes #16365.

3 years agoMerge pull request #16301 from poettering/firstboot-image
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2020 17:44:12 +0000 (19:44 +0200)] 
Merge pull request #16301 from poettering/firstboot-image

Add --image= switch to firstboot, similar to --root= but with support for operating on disk image

3 years agoMerge pull request #16388 from keszybz/xdg-desktop-fuzz-case
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2020 17:41:31 +0000 (19:41 +0200)] 
Merge pull request #16388 from keszybz/xdg-desktop-fuzz-case

xdg-desktop fuzz case

3 years agoMerge pull request #16390 from keszybz/coverity-and-typos
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2020 17:40:10 +0000 (19:40 +0200)] 
Merge pull request #16390 from keszybz/coverity-and-typos

One coverity-inspired fix and spelling

3 years agoxdg-autostart: ignore all empty entries in multi-string entries 16388/head
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2020 09:31:17 +0000 (11:31 +0200)] 
xdg-autostart: ignore all empty entries in multi-string entries

The desktop file specification allows entries like ";;;;;;", full of empty strings.
But looking at the actual list of supported keys [1], empty entries are meaningless
(unless we would allow e.g. the desktop name to be the empty string. But that doesn't
seem very useful either). So let's just simplify our life and skip any empty substrings
entirely.

This would also resolve the fuzzer case:
$ valgrind build/fuzz-xdg-desktop test/fuzz/fuzz-xdg-desktop/oss-fuzz-22812
test/fuzz/fuzz-xdg-desktop/oss-fuzz-22812... ok
==2899241== HEAP SUMMARY:
==2899241==     in use at exit: 0 bytes in 0 blocks
==2899241==   total heap usage: 484,385 allocs, 484,385 frees, 12,411,330 bytes allocated

==2899650== HEAP SUMMARY:
==2899650==     in use at exit: 0 bytes in 0 blocks
==2899650==   total heap usage: 1,325 allocs, 1,325 frees, 1,463,602 bytes allocated

3 years agoman: match parentheses
Topi Miettinen [Mon, 6 Jul 2020 17:46:01 +0000 (20:46 +0300)] 
man: match parentheses

Files found with:
for f in *; do \
    l=`tr -d '[^(]' < $f | wc -c`; \
    r=`tr -d '[^)]' < $f | wc -c`; \
    if [ $l -ne $r ]; then \
       echo $f $l $r; \
    fi; \
done

3 years agoxdg-autostart: avoid quadratic behaviour in strv parsing
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2020 09:24:36 +0000 (11:24 +0200)] 
xdg-autostart: avoid quadratic behaviour in strv parsing

The fuzzer test case has a giant line with ";;;;;;;;;;;..." which is turned into
a strv of empty strings. Unfortunately, when pushing each string, strv_push() needs
to walk the whole array, which leads to quadratic behaviour. So let's use
greedy_allocation here and also keep location in the string to avoid iterating.

build/fuzz-xdg-desktop test/fuzz/fuzz-xdg-desktop/oss-fuzz-22812  51.10s user 0.01s system 99% cpu 51.295 total

build/fuzz-xdg-desktop test/fuzz/fuzz-xdg-desktop/oss-fuzz-22812  0.07s user 0.01s system 96% cpu 0.083 total

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

Other minor changes:
- say "was already defined" instead of "defined multiple times" to make it
  clear that we're ignoring this second definition, and not all definitions
  of the key
- unescaping needs to be done also for the last entry

3 years agojournald: minor wording tweak in message 16390/head
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2020 10:14:41 +0000 (12:14 +0200)] 
journald: minor wording tweak in message

For a user "from the kernel" might be rather unclear.

3 years agotree-wide: more repeated words
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2020 10:08:22 +0000 (12:08 +0200)] 
tree-wide: more repeated words

3 years agonetworkd: use capitalized "IP" and "TOS" in messages
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2020 09:51:29 +0000 (11:51 +0200)] 
networkd: use capitalized "IP" and "TOS" in messages

3 years agojournal/compress: drop "future" code in zstd compression
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2020 09:56:32 +0000 (11:56 +0200)] 
journal/compress: drop "future" code in zstd compression

We generally don't include stuff that is not used. This can be
easily ressurected if ever needed.

Fixes CID#1430210.

3 years agoall: fix minor typos
Yuri Chornoivan [Sat, 4 Jul 2020 08:37:01 +0000 (11:37 +0300)] 
all: fix minor typos

[thaller@redhat.com: original patch by Yuri, extracted from [1]]

[1] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/565

3 years agoupdate NEWS
Lennart Poettering [Tue, 7 Jul 2020 09:48:45 +0000 (11:48 +0200)] 
update NEWS

3 years agoupdate TODO
Lennart Poettering [Tue, 7 Jul 2020 09:33:18 +0000 (11:33 +0200)] 
update TODO

3 years agoTODO 16301/head
Lennart Poettering [Sat, 27 Jun 2020 09:15:19 +0000 (11:15 +0200)] 
TODO

3 years agofirstboot: add option to turn off welcome text display
Lennart Poettering [Sun, 28 Jun 2020 09:59:00 +0000 (11:59 +0200)] 
firstboot: add option to turn off welcome text display

3 years agoman: document the new --image= switch of systemd-firstboot
Lennart Poettering [Sat, 27 Jun 2020 09:09:41 +0000 (11:09 +0200)] 
man: document the new --image= switch of systemd-firstboot

3 years agofirstboot: add --image= switch
Lennart Poettering [Mon, 30 Mar 2020 13:39:43 +0000 (15:39 +0200)] 
firstboot: add --image= switch

This is like --root=, but takes an image file path or device node path
and dissects the image directly, mounting it internally.

3 years agomount-util: use UMOUNT_NOFOLLOW in recursive umounter
Lennart Poettering [Sat, 27 Jun 2020 09:13:01 +0000 (11:13 +0200)] 
mount-util: use UMOUNT_NOFOLLOW in recursive umounter

When we only want to unmount mount points below some path then it is
against our interest to follow symlinks. Hence don't.

3 years agomount-util: add destructor helper that umounts + rmdirs a path
Lennart Poettering [Sat, 27 Jun 2020 08:38:07 +0000 (10:38 +0200)] 
mount-util: add destructor helper that umounts + rmdirs a path

3 years agonamespace-util: introduce helper for combining unshare() + MS_SLAVE remount
Lennart Poettering [Sun, 2 Feb 2020 17:56:12 +0000 (18:56 +0100)] 
namespace-util: introduce helper for combining unshare() + MS_SLAVE remount

We have multiple places we do these two non-trivial operations together,
let's introduce a unified helper for doing both at once.

3 years agofuzz: add test case that should already be resolved
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2020 08:26:28 +0000 (10:26 +0200)] 
fuzz: add test case that should already be resolved

3 years agocore: refresh unit cache when building a transaction if UNIT_NOT_FOUND
Luca Boccassi [Fri, 3 Jul 2020 17:45:19 +0000 (18:45 +0100)] 
core: refresh unit cache when building a transaction if UNIT_NOT_FOUND

When a command asks to load a unit directly and it is in state
UNIT_NOT_FOUND, and the cache is outdated, we refresh it and
attempto to load again.
Use the same logic when building up a transaction and a dependency in
UNIT_NOT_FOUND state is encountered.
Update the unit test to exercise this code path.

3 years agosleep: one spelling unification
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2020 08:02:02 +0000 (10:02 +0200)] 
sleep: one spelling unification

We use "writable" everywhere else.

3 years agoMerge pull request #16380 from yuwata/network-dhcp6-update-prefix-route
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2020 07:05:08 +0000 (09:05 +0200)] 
Merge pull request #16380 from yuwata/network-dhcp6-update-prefix-route

Network: update acquired dhcp6 prefix routes

3 years agoMerge pull request #16381 from yuwata/dhcp4-renewing
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2020 06:59:35 +0000 (08:59 +0200)] 
Merge pull request #16381 from yuwata/dhcp4-renewing

dhcp4: fixes around renewing address

3 years agoMerge pull request #16383 from yuwata/network-dhcp6-radv-update-prefix
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2020 06:53:31 +0000 (08:53 +0200)] 
Merge pull request #16383 from yuwata/network-dhcp6-radv-update-prefix

network: do not restart radv engine when adding prefix

3 years agohwdb: Add Google Pixel Slate (nocturne) (#16377)
satmandu [Tue, 7 Jul 2020 06:45:31 +0000 (02:45 -0400)] 
hwdb: Add Google Pixel Slate (nocturne) (#16377)

3 years agonetwork: fix memleak
Yu Watanabe [Tue, 7 Jul 2020 03:17:46 +0000 (12:17 +0900)] 
network: fix memleak

If init() is failed, the allocated memory was leaked.

3 years agonetwork: do not restart radv engine when adding prefix 16383/head
Yu Watanabe [Tue, 7 Jul 2020 02:19:49 +0000 (11:19 +0900)] 
network: do not restart radv engine when adding prefix

Replaces d469cea3bde53bc39317c8b433c825bb4790cbe5.

3 years agonetwork: fix indentation
Yu Watanabe [Tue, 7 Jul 2020 02:18:28 +0000 (11:18 +0900)] 
network: fix indentation

3 years agoRevert "network: Don't send RA with zero router lifetime when restarting radv"
Yu Watanabe [Tue, 7 Jul 2020 02:06:08 +0000 (11:06 +0900)] 
Revert "network: Don't send RA with zero router lifetime when restarting radv"

This reverts commit d469cea3bde53bc39317c8b433c825bb4790cbe5.

3 years agofix typo
Tomer Shechner [Tue, 7 Jul 2020 01:35:35 +0000 (04:35 +0300)] 
fix typo

I was thoroughly reading your nice coding style page and found out that you guys missed an 's'.

😁

3 years agonetwork: Don't send RA with zero router lifetime when restarting radv
Michael Marley [Sun, 5 Jul 2020 10:46:27 +0000 (06:46 -0400)] 
network: Don't send RA with zero router lifetime when restarting radv
While investigating https://github.com/systemd/systemd/issues/16356, I
discovered that networkd stops the radv service before adding or updating
prefixes and then starts it again.  This causes networkd to send an RA with
a router lifetime of zero, causing the routes to flap on systems receiving
the RA for a fraction of a second before radv is started again and proper
RAs are sent.  That has the potential to cause issues with latency-sensitive
traffic like gaming or VoIP.  This patch adds a boolean argument to the
sd_radv_stop() function to control this behavior.  The zero lifetime RA is
still sent whenever radv is actually being stopped, but when it is being
restarted for a prefix update (from networkd-dhcp6.c), the final RA is no
longer sent to avoid the route flapping.

3 years agodhcp4: do not try to renew address when client has no lease 16381/head
Yu Watanabe [Tue, 7 Jul 2020 01:04:42 +0000 (10:04 +0900)] 
dhcp4: do not try to renew address when client has no lease

3 years agodhcp4: do not renew address if client is not running yet
Yu Watanabe [Tue, 7 Jul 2020 00:43:10 +0000 (09:43 +0900)] 
dhcp4: do not renew address if client is not running yet

3 years agonetwork: always update acquired prefix route 16380/head
Yu Watanabe [Tue, 7 Jul 2020 00:20:39 +0000 (09:20 +0900)] 
network: always update acquired prefix route

Otherwise, routes become lifetime 0.

Fixes #16356.

3 years agonetwork: decrease indentation level
Yu Watanabe [Tue, 7 Jul 2020 00:14:21 +0000 (09:14 +0900)] 
network: decrease indentation level

3 years agonetwork: fix indentation
Yu Watanabe [Mon, 6 Jul 2020 23:47:38 +0000 (08:47 +0900)] 
network: fix indentation

3 years agoMerge pull request #16374 from keszybz/docs-and-networkd
Yu Watanabe [Mon, 6 Jul 2020 23:29:56 +0000 (08:29 +0900)] 
Merge pull request #16374 from keszybz/docs-and-networkd

Docs and networkd

3 years agohwdb: update again for v246
Zbigniew Jędrzejewski-Szmek [Mon, 6 Jul 2020 15:53:46 +0000 (17:53 +0200)] 
hwdb: update again for v246

Just a few minor changes.

3 years agoDHCPv4: client add support for DHCP server allow list
Susant Sahani [Fri, 26 Jun 2020 03:28:52 +0000 (03:28 +0000)] 
DHCPv4: client add support for DHCP server allow list

3 years agoMerge pull request #16344 from keszybz/update-utmp-erofs
Lennart Poettering [Mon, 6 Jul 2020 15:52:17 +0000 (17:52 +0200)] 
Merge pull request #16344 from keszybz/update-utmp-erofs

Make update-utmp not fail if it only fails to write wtmp records

3 years agohwdb: add another Logitech M705 mouse variant
Maciej S. Szmigiero [Sun, 5 Jul 2020 16:16:52 +0000 (18:16 +0200)] 
hwdb: add another Logitech M705 mouse variant

There seems to be a newer version of Logitech M705 mouse in the wild.
Let's add it to the hwdb.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
3 years agoMerge pull request #16373 from JackFangXN/master
Zbigniew Jędrzejewski-Szmek [Mon, 6 Jul 2020 15:14:07 +0000 (17:14 +0200)] 
Merge pull request #16373 from JackFangXN/master

userdbctl homectl use table_log_add_error()

3 years agounit-name: fix a potential memory leak
Frantisek Sumsal [Mon, 6 Jul 2020 13:22:28 +0000 (15:22 +0200)] 
unit-name: fix a potential memory leak

Also, add a test which verifies the issue is indeed gone.

Fixes: CID#1429014
Followup to: ab19db01ae1826efb3cbdf6dcb6a14412f8844d4

3 years agonetworkd: we should not loop when extract_first_word() fails 16374/head
Zbigniew Jędrzejewski-Szmek [Mon, 6 Jul 2020 14:21:34 +0000 (16:21 +0200)] 
networkd: we should not loop when extract_first_word() fails

While at it, define iterator in the loop to reduce the indentation a bit.

3 years agoman: do not say that tasks are threads and processes
Zbigniew Jędrzejewski-Szmek [Mon, 6 Jul 2020 14:31:57 +0000 (16:31 +0200)] 
man: do not say that tasks are threads and processes

This is confusing because the reader might think that processes and threads are
counted separately. Another issue pointed out in #16363.

3 years agoman: one more typo
Zbigniew Jędrzejewski-Szmek [Mon, 6 Jul 2020 14:11:27 +0000 (16:11 +0200)] 
man: one more typo

Also from #16363.

3 years agoMerge pull request #16370 from keszybz/tree-wide-spelling
Zbigniew Jędrzejewski-Szmek [Mon, 6 Jul 2020 13:57:47 +0000 (15:57 +0200)] 
Merge pull request #16370 from keszybz/tree-wide-spelling

Assorted spelling, markup, and grammar fixes

3 years agonetwork: tc: fix n_prio bounds check
Vito Caputo [Mon, 6 Jul 2020 07:36:51 +0000 (00:36 -0700)] 
network: tc: fix n_prio bounds check

Looks like a simple copy and paste error

Fixes https://github.com/systemd/systemd/issues/16367

3 years agouserdbctl homectl use table_log_add_error() 16373/head
fangxiuning [Mon, 6 Jul 2020 13:32:22 +0000 (21:32 +0800)] 
userdbctl homectl use table_log_add_error()

Signed-off-by: fangxiuning <fangxiuning123@126.com>
3 years agoFix two typos found by codespell 16370/head
Zbigniew Jędrzejewski-Szmek [Mon, 6 Jul 2020 13:09:23 +0000 (15:09 +0200)] 
Fix two typos found by codespell

3 years agotree-wide: drop quotes from around [section]
Zbigniew Jędrzejewski-Szmek [Mon, 6 Jul 2020 09:00:06 +0000 (11:00 +0200)] 
tree-wide: drop quotes from around [section]

For users, the square brackets already serve as markup and clearly delineate
the section name from surrounding text. Putting additional markup around that
only adds clutter. Also, we were very inconsistent in using the quotes. Let's
just drop them altogether.

3 years agotree-wide: fixes for assorted grammar and spelling issues
Zbigniew Jędrzejewski-Szmek [Mon, 6 Jul 2020 08:49:59 +0000 (10:49 +0200)] 
tree-wide: fixes for assorted grammar and spelling issues

Fixes #16363. Also includes some changes where I generalized the pattern.

3 years agotravis: install missing deps for the Coverity run
Frantisek Sumsal [Mon, 6 Jul 2020 08:51:02 +0000 (10:51 +0200)] 
travis: install missing deps for the Coverity run

Let's install libzstd & libfido2 to cover two recently added features.
In case of libfido2 this should also get rid of the 'dead code' issues
found by Coverity, like CID#1430168, CID#1430167, CID#1430166, or
CID#1430165.

3 years agoMerge pull request #16287 from yuwata/udevadm-info-attribute-walk
Yu Watanabe [Mon, 6 Jul 2020 05:47:51 +0000 (14:47 +0900)] 
Merge pull request #16287 from yuwata/udevadm-info-attribute-walk

udevadm: make --attribute-walk show subdir attributes

3 years agoshared/install: do not require /dev/null to be present in chroots 15955/head
Zbigniew Jędrzejewski-Szmek [Sun, 5 Jul 2020 18:03:48 +0000 (20:03 +0200)] 
shared/install: do not require /dev/null to be present in chroots

This partially undoes the parent commit. We follow the symlink and
if it appears to be a symlink to /dev/null, even if /dev/null is not
present, we treat it as such. The addition of creation of /dev/null
in the test is reverted.

3 years agocatalog: update Polish translation
Piotr Drąg [Sun, 5 Jul 2020 10:32:05 +0000 (12:32 +0200)] 
catalog: update Polish translation

3 years agoupdate-utmp: do not fail on EROFS 16344/head
Zbigniew Jędrzejewski-Szmek [Thu, 2 Jul 2020 14:35:52 +0000 (16:35 +0200)] 
update-utmp: do not fail on EROFS

Right now systemd-update-utmp.service would fail on read-only /var because
it was not able to write the wtmp record. But it still writes the utmp
record just fine, so runtime information is OK. I don't think we need to
make too much fuss about not being able to save wtmp info.

3 years agoDefine _cleanup_ helper for setutxent()+endutxent()
Zbigniew Jędrzejewski-Szmek [Thu, 2 Jul 2020 14:24:04 +0000 (16:24 +0200)] 
Define _cleanup_ helper for setutxent()+endutxent()

3 years agotest: use KILL instead of SIGKILL in TEST-52-HONORFIRSTSHUTDOWN
Frantisek Sumsal [Sat, 4 Jul 2020 18:18:02 +0000 (20:18 +0200)] 
test: use KILL instead of SIGKILL in TEST-52-HONORFIRSTSHUTDOWN

SIG-prefixed signals for `kill` are not POSIX compliant, so on Ubuntu CI
(which defaults to dash instead of bash) the TEST-52 contains following
error:

[ 9693.549638] sh[51]: + systemctl poweroff --no-block
[ 9693.553130] systemd-logind[26]: System is powering down.
[ 9693.608911] sh[54]: /bin/sh: 1: kill: Illegal option -S

This can be reproduced manually as well, either by running dash, or bash
in POSIX mode:

$ dash -c 'kill -SIGKILL 123'
dash: 1: kill: Illegal option -S

$ bash --posix -c 'kill -SIGKILL 123'
bash: line 0: kill: SIGKILL: invalid signal specification

3 years agosd-device: be more defensive in FOREACH_DEVICE_SYSATTR 16287/head
Zbigniew Jędrzejewski-Szmek [Sun, 5 Jul 2020 08:55:18 +0000 (10:55 +0200)] 
sd-device: be more defensive in FOREACH_DEVICE_SYSATTR

Follow-up for fadcc1222949ed57ca2ce143f2eb9b93ea0dab1b.

3 years agocore: set private section name for automount units
Dan Callaghan [Fri, 3 Jul 2020 09:13:08 +0000 (19:13 +1000)] 
core: set private section name for automount units

Because this was left unset, the unit_write_setting() function was
refusing to write out the automount-specific TimeoutIdleSec= and
DirectoryMode= settings when creating transient automount units.
Set it to the proper value in line with other unit types.

3 years agohwdb: Pavilion 13 x360: Tablet mode and SYSRQ key
MaxVerevkin [Sat, 4 Jul 2020 06:43:34 +0000 (09:43 +0300)] 
hwdb: Pavilion 13 x360: Tablet mode and SYSRQ key

3 years agoMerge pull request #15442 from poettering/fido2
Zbigniew Jędrzejewski-Szmek [Fri, 3 Jul 2020 15:27:15 +0000 (17:27 +0200)] 
Merge pull request #15442 from poettering/fido2

add fido2 authentication support to homed

3 years agoudevadm: sort entries in `udevadm info -a` by attribute name
Yu Watanabe [Fri, 26 Jun 2020 06:44:41 +0000 (15:44 +0900)] 
udevadm: sort entries in `udevadm info -a` by attribute name

3 years agosd-device: make FOREACH_DEVICE_SYSATTR() list attributes in subdirectories
Yu Watanabe [Fri, 26 Jun 2020 06:29:43 +0000 (15:29 +0900)] 
sd-device: make FOREACH_DEVICE_SYSATTR() list attributes in subdirectories

Then, `udevadm info -a` can show subdir attributes.

Closes #12191.

3 years agoinitialize arg_clock_usec
gzjsgdsb [Fri, 3 Jul 2020 09:51:37 +0000 (17:51 +0800)] 
initialize arg_clock_usec

3 years agoMerge pull request #16348 from yuwata/news-sriov
Zbigniew Jędrzejewski-Szmek [Fri, 3 Jul 2020 10:13:14 +0000 (12:13 +0200)] 
Merge pull request #16348 from yuwata/news-sriov

NEWS: two updates about networkd

3 years agocore: check null_or_empty for masked units instead of /dev/null
Anita Zhang [Thu, 28 May 2020 19:09:32 +0000 (12:09 -0700)] 
core: check null_or_empty for masked units instead of /dev/null

There's some inconsistency in the what is considered a masked unit:
some places (i.e. load-fragment.c) use `null_or_empty()` while others
check if the file path is symlinked to "/dev/null". Since the latter
doesn't account for things like non-absolute symlinks to "/dev/null",
this commit switches the check for "/dev/null" to use `null_or_empty_path()`

3 years agoNEWS: mention .network [SR-IOV] section 16348/head
Yu Watanabe [Fri, 3 Jul 2020 06:33:06 +0000 (15:33 +0900)] 
NEWS: mention .network [SR-IOV] section

3 years agoNEWS: WithoutRA= is not a boolean option anymore
Yu Watanabe [Fri, 3 Jul 2020 06:25:28 +0000 (15:25 +0900)] 
NEWS: WithoutRA= is not a boolean option anymore

3 years agoNEWS: tweak WithoutRA= description a bit more
Zbigniew Jędrzejewski-Szmek [Thu, 2 Jul 2020 16:12:03 +0000 (18:12 +0200)] 
NEWS: tweak WithoutRA= description a bit more

Follow-up for cbdf02952e831aa12c34f15d2466995c4ca4fc5b.

3 years agovarious daemons: emit Stopping... notification before destructing the manager object
Zbigniew Jędrzejewski-Szmek [Thu, 2 Jul 2020 12:56:34 +0000 (14:56 +0200)] 
various daemons: emit Stopping... notification before destructing the manager object

This is mostly cosmetic, but let's reorder the destructors so that
we do the final sd_notify() call before we run the destructor for
the manager object.