systemd/.git
12 months agotest: mask tmpfiles.d file shipped by selinux policy package in containers
Luca Boccassi [Sat, 23 Nov 2024 13:28:03 +0000 (13:28 +0000)]
test: mask tmpfiles.d file shipped by selinux policy package in containers

This tmpfiles.d wants to write to sysfs, which is read-only in containers,
so systemd-tmpfiles --create fails in TEST-22-TMPFILES when ran in nspawn
if the selinux policy package is instealled. Mask it, as it's not our
config file, we don't need it in the test.

(cherry picked from commit 6fd3496cfd0d28808b5489ee87f826c2130f5f0b)

12 months agonspawn: Include arm_fadvise64_64 in syscall allow_list
Michał Górny [Sun, 17 Nov 2024 15:34:35 +0000 (16:34 +0100)]
nspawn: Include arm_fadvise64_64 in syscall allow_list

Add the `arm_fadvise64_64` syscall to the allow_list, in addition
to the existing `fadvise64` and `fadvise64_64` syscalls, as this is
the syscall actually defined for `arm` architecture.  Adding it fixes
the syscall being rejected in arm32 containers.

Fixes #35194

(cherry picked from commit 7fd70a532681c0ea4cd6ff04d1a7950dae3efc8c)

12 months agohwdb: update to main@{2024-11-28}
Zbigniew Jędrzejewski-Szmek [Thu, 28 Nov 2024 14:33:27 +0000 (15:33 +0100)]
hwdb: update to main@{2024-11-28}

git restore -s origin/main hwdb.d/ test/hwdb.d test/hwdb-test.sh

12 months agonspawn: make sure --private-users-ownership=no and =off work the same way
Lennart Poettering [Wed, 27 Nov 2024 09:20:21 +0000 (10:20 +0100)]
nspawn: make sure --private-users-ownership=no and =off work the same way

We usually want to use "extended booleans" for cases like this, i.e.
that "off", "no" and "0" can be used interchangably for turning
something off.

(cherry picked from commit 62f3e2f84aa3413081fc1c1e1c3074fc9aeedbc9)

12 months agotests: fix access mode of root inode of throw-away container images
Lennart Poettering [Wed, 27 Nov 2024 09:17:36 +0000 (10:17 +0100)]
tests: fix access mode of root inode of throw-away container images

Otherwise the root inode will typically have what mkdtemp sets up, which
is something like 0700, which is weird and somewhat broken when trying
to look into containers from unpriv users.

(cherry picked from commit c18a1024643809c8f28799900af4e6202623f934)

12 months agonspawn: don't try to unregister a machine we never registered
Lennart Poettering [Wed, 27 Nov 2024 09:26:04 +0000 (10:26 +0100)]
nspawn: don't try to unregister a machine we never registered

When registering we condition this on "arg_register". Let's do the same
when unregistering, otherwise we might end up trying to unregister a
machine we never registered.

(cherry picked from commit 0790f4e45f2f8c094bf929aa1fcaf4c7e9dbb001)

12 months agoman: several more assorted fixes
Yu Watanabe [Tue, 26 Nov 2024 13:29:36 +0000 (22:29 +0900)]
man: several more assorted fixes

Continuation of 4ebbb5bfe88ac3d793c395472648660c33251546.
Closes #35307.

(cherry picked from commit f29a07f3fce339a18883e6a8949c9181bf0e4e58)

12 months agosd-varlink: fix bug when enqueuing messages with fds asynchronously
Lennart Poettering [Wed, 20 Nov 2024 12:13:41 +0000 (13:13 +0100)]
sd-varlink: fix bug when enqueuing messages with fds asynchronously

When determining the poll events to wait for we need to take the queue
of pending messages that carry fds into account. Otherwise we might end
up not waking up if such an fd-carrying message is enqueued
asynchronously (i.e. not from a dispatch callback).

(cherry picked from commit 7b4b3a8f7b76f266438fafb225b7980db68a276e)

12 months agoman/systemd-system.conf: Correct "struct" to "strict" (#35364)
Winterhuman [Tue, 26 Nov 2024 13:41:49 +0000 (13:41 +0000)]
man/systemd-system.conf: Correct "struct" to "strict" (#35364)

(cherry picked from commit 5bed97dd575dd1996638a46cc309c74f43d24e0e)

12 months agoman: use MIT-0 license for example codes in daemon(7)
Yu Watanabe [Tue, 26 Nov 2024 09:21:29 +0000 (18:21 +0900)]
man: use MIT-0 license for example codes in daemon(7)

This page contains many short example codes. I do not think we should
add SPDX-License-Identifier for all codes.

Closes #35356.

(cherry picked from commit 6046cc3660810efcc6fe50b1c850ea642218245b)

12 months agoman: update documentation about basic .netdev file handling
Yu Watanabe [Sat, 23 Nov 2024 15:46:47 +0000 (00:46 +0900)]
man: update documentation about basic .netdev file handling

Follow-up for #34909 and later PRs.

(cherry picked from commit d07fbf22ed1cde2459bf42f94c5debb9e0278c1a)

12 months agoman: asorted fixes
Yu Watanabe [Sat, 23 Nov 2024 13:07:56 +0000 (22:07 +0900)]
man: asorted fixes

Closes #35307.

(Changes to files with conflicts were dropped.)
(cherry picked from commit 4ebbb5bfe88ac3d793c395472648660c33251546)

12 months agoTEST-17: add reproducer for issue #35329
Yu Watanabe [Sun, 24 Nov 2024 04:57:37 +0000 (13:57 +0900)]
TEST-17: add reproducer for issue #35329

Without the previous commit, the test case will fail.

(cherry picked from commit 675feaf521316670f85f4de1b7241a9958e79c03)

12 months agocore/device: ignore ID_PROCESSING udev property on enumerate
Yu Watanabe [Sun, 24 Nov 2024 04:19:27 +0000 (13:19 +0900)]
core/device: ignore ID_PROCESSING udev property on enumerate

This partially reverts the commit 405be62f05d76f1845f347737b5972158c79dd3e
"tree-wide: refuse enumerated device with ID_PROCESSING=1".

Otherwise, when systemd-udev-trigger.service is (re)started just before
daemon-reexec, which can be easily happen on systemd package update, then
udev database files for many devices may have ID_PROCESSING=1 property,
thus devices may not be enumerated on daemon-reexec. That causes many
units especially mount units being deactivated after daemon-reexec.

Fixes #35329.

(cherry picked from commit c4fc22c4defc5983e53f4ce048e15ea7d31e6a75)

12 months agocurl-util: do not configure new io event source when the event loop is already dead
Yu Watanabe [Sat, 23 Nov 2024 16:05:47 +0000 (01:05 +0900)]
curl-util: do not configure new io event source when the event loop is already dead

Similar to c5ecf0949460dd0bf3211db128a385ce6375252e, but for io event source.

Fixes #35322.

(cherry picked from commit 5b2926d9414f4333153ebe0bf169e1dd76129119)

12 months agonspawn: improve log message on bad incoming sd_notify() message
Lennart Poettering [Fri, 22 Nov 2024 23:04:43 +0000 (00:04 +0100)]
nspawn: improve log message on bad incoming sd_notify() message

It's the PID that is wrong, not the UID/GID, be precise.

(cherry picked from commit 95116bdfd5d45cc1a7c6588e6b8bdcb0d0e007a6)

12 months agoshutdown: close DM block device before issuing DM_DEV_REMOVE ioctl
Yu Watanabe [Fri, 22 Nov 2024 20:47:40 +0000 (05:47 +0900)]
shutdown: close DM block device before issuing DM_DEV_REMOVE ioctl

Otherwise, the ioctl() may fail with EBUSY.

Follow-up for b4b66b26620bfaf5818c95d5cffafd85207694e7.
Hopefully fixes #35243.

(cherry picked from commit b76730f3fe0e824db001b38c8ea848302be786ee)

12 months agoUndeprecate commandline params forcequotacheck, fastboot, and forcefsck
Zbigniew Jędrzejewski-Szmek [Thu, 21 Nov 2024 19:36:51 +0000 (20:36 +0100)]
Undeprecate commandline params forcequotacheck, fastboot, and forcefsck

Those are historical names, but there is nothing wrong with them. The files on
/ (/fastboot, /forcefsck, and /forcequotacheck) are problematic because they
require a modification of the root file system. But the commandline params work
fine. They have the obvious advantage compared to our "modern" option that they
are much easier to type without looking up the spelling in the docs. Undeprecate
them to avoid unnecessary churn.

(cherry picked from commit 5598454a3f8fc13257e0313d999e6ac9684082e1)

12 months agouserdbctl: fix counting
Lennart Poettering [Fri, 22 Nov 2024 09:11:32 +0000 (10:11 +0100)]
userdbctl: fix counting

Fixes: #35294
(cherry picked from commit 7f8a4f12dfea6f644f92788bd9b03983898e9d32)

12 months agouserbdctl: show 'mapped' user range only inside of userns
Lennart Poettering [Fri, 22 Nov 2024 08:34:56 +0000 (09:34 +0100)]
userbdctl: show 'mapped' user range only inside of userns

Outside of userns the concept makes no sense, there cannot be users
mapped from further outside.

(cherry picked from commit e412fc5e042b8f642bcba42f5c175124583e05ae)

12 months agocryptenroll: it's called PKCS#11, not PKCS11
Lennart Poettering [Fri, 22 Nov 2024 09:11:04 +0000 (10:11 +0100)]
cryptenroll: it's called PKCS#11, not PKCS11

In the --help text we really should use the official spelling, just like
in the man page.

(cherry picked from commit cc6baba7200bd8171b6beff446b4009dad5c4230)

12 months agocore/service: service_add_fd_store() consumes passed fd
Yu Watanabe [Thu, 21 Nov 2024 20:15:49 +0000 (05:15 +0900)]
core/service: service_add_fd_store() consumes passed fd

Without this change, the fd is closed twice on failure.

Fixes a bug introduced by dff9808a628c31b7ecb1f1aba8fdc3be06ce8372.

Fixes #35288.

(cherry picked from commit d99198819caeff6f40a0a520364e59b8a0cbaa4f)

12 months agokillall: gracefully handle processes inserted into containers via nsenter -a
Lennart Poettering [Wed, 20 Nov 2024 11:02:46 +0000 (12:02 +0100)]
killall: gracefully handle processes inserted into containers via nsenter -a

"nsenter -a" doesn't migrate the specified process into the target
cgroup (it really should). Thus the cgroup will remain in a cgroup
that is (due to cgroup ns) outside our visibility. The kernel will
report the cgroup path of such cgroups as starting with "/../". Detect
that and print a reasonably error message instead of trying to resolve
that.

(cherry picked from commit f6793bbcf0e3f0a6daa77add96183b88d5ec2117)

12 months agocore/exec-invoke: suppress placeholder home only in build_environment()
Mike Yuan [Mon, 18 Nov 2024 18:41:07 +0000 (19:41 +0100)]
core/exec-invoke: suppress placeholder home only in build_environment()

Currently, get_fixed_user() employs USER_CREDS_SUPPRESS_PLACEHOLDER,
meaning home path is set to NULL if it's empty or root. However,
the path is also used for applying WorkingDirectory=~, and we'd
spuriously use the invoking user's home as fallback even if
User= is changed in that case.

Let's instead delegate such suppression to build_environment(),
so that home is proper initialized for usage at other steps.
shell doesn't actually suffer from such problem, but it's changed
too for consistency.

Alternative to #34789

(cherry picked from commit b718b86e1b8477f58461f3c456c944abb1428c0f)

12 months agocore/exec-invoke: minor cleanup for apply_working_directory() error handling
Mike Yuan [Mon, 18 Nov 2024 23:22:59 +0000 (00:22 +0100)]
core/exec-invoke: minor cleanup for apply_working_directory() error handling

Assign exit_status at the same site where error log is emitted,
for readability.

(cherry picked from commit d911778877c18827c64e21cc98e86c31dff9a627)

12 months agobasic/user-util: split out placeholder suppression from USER_CREDS_CLEAN into its...
Mike Yuan [Mon, 18 Nov 2024 18:30:02 +0000 (19:30 +0100)]
basic/user-util: split out placeholder suppression from USER_CREDS_CLEAN into its own flag

No functional change, preparation for later commits.

(cherry picked from commit eea9d3eb106a91d4479d859603463bdfe3d262eb)

12 months agobasic/user-util: introduce shell_is_placeholder() helper
Mike Yuan [Mon, 18 Nov 2024 18:24:57 +0000 (19:24 +0100)]
basic/user-util: introduce shell_is_placeholder() helper

(cherry picked from commit 579ce77ead476e3d5b9a774ab00ec3ec53933ab2)

12 months agounits: add initrd directory to list of conditions for systemd-confext
Luca Boccassi [Tue, 19 Nov 2024 23:34:00 +0000 (23:34 +0000)]
units: add initrd directory to list of conditions for systemd-confext

systemd-sysext has the same check, but it was forgotten for confexts.
Needed to activate confexts from the ESP in the initrd.

(cherry picked from commit fe077a1a582a43a6378ff29452a373cc7d393764)

12 months agoman/kernel-command-line: fix typo
Antonio Alvarez Feijoo [Tue, 19 Nov 2024 12:36:38 +0000 (13:36 +0100)]
man/kernel-command-line: fix typo

(cherry picked from commit a04d42821bb5350b0ffa82834e50e9b679279854)

12 months agondisc-option: use memcpy_safe() at one more place
Yu Watanabe [Mon, 18 Nov 2024 04:28:27 +0000 (13:28 +0900)]
ndisc-option: use memcpy_safe() at one more place

As 'len' may be 8.

Follow-up for a163404cc88914142ef8bbfaab0eb39d1a990c02.

(cherry picked from commit c8ddd5ff72453876b360e7580cc386945b79f5e9)

12 months agocryptenroll: show better log message if slot to wipe does not exist
Antonio Alvarez Feijoo [Tue, 19 Nov 2024 10:26:49 +0000 (11:26 +0100)]
cryptenroll: show better log message if slot to wipe does not exist

```
$ systemd-cryptenroll /dev/vda3
SLOT TYPE
   0 password
$ systemd-cryptenroll --wipe-slot 1 /dev/vda3
Failed to wipe slot 1, continuing: No such file or directory
```

(cherry picked from commit 2b251491debf9cab695f5f34da9908ca46f085fe)

12 months agossh-generator: silence "Binding to socket" messages
Mantas Mikulėnas [Tue, 12 Nov 2024 08:30:09 +0000 (10:30 +0200)]
ssh-generator: silence "Binding to socket" messages

(cherry picked from commit 2424a67c02913eac30b5d59f1e5ee39a846ca54b)

12 months agosystemctl: grey out tasks limit the same way we grey out the fd store limit in the...
Lennart Poettering [Mon, 18 Nov 2024 22:26:58 +0000 (23:26 +0100)]
systemctl: grey out tasks limit the same way we grey out the fd store limit in the output

"systemctl status systemd-logind" otherwise looks a bit weird, since the
tasks and the fdstore lines are so close to each other but formatted
quite differently when it comes to coloring.

(cherry picked from commit 54646b1ca95373dfa3ebe5d6e7e27deeed9e77b0)

12 months agonspawn: --private-users-ownership= value is called 'chown', not 'own'
Lennart Poettering [Wed, 13 Nov 2024 11:14:53 +0000 (12:14 +0100)]
nspawn: --private-users-ownership= value is called 'chown', not 'own'

(cherry picked from commit bae936b418e08063b68c95f4df53c3cd4f70e881)

12 months agopid1: make clear that $WATCHDOG_USEC is set for the shutdown binary, noone else
Lennart Poettering [Thu, 14 Nov 2024 22:16:19 +0000 (23:16 +0100)]
pid1: make clear that $WATCHDOG_USEC is set for the shutdown binary, noone else

We use the $WATCHDOG_USEC variable for two very closely uses: as part of
the sd_watchdog_enabled() protocol for implementing service watchdogs.
And as part of the protocol between the service manager and
systemd-shutdown across the PID 1 execve() transition during shutdown.

Apparently some exitrds tools got confused by the latter use. Let's
address that by setting $WATCHDOG_PID to 1, in accordance to the
sd_watchdog_enabled() protocol to make clear this is only intended for
PID 1 and nothing else.

Replaces: #35135
(cherry picked from commit 4b20ae9a0e914e61d6bac095e5fc9664510ac03e)

12 months agoAdd proper dependencies to ukify target
Daan De Meyer [Fri, 15 Nov 2024 09:34:27 +0000 (10:34 +0100)]
Add proper dependencies to ukify target

Also remove the systemd-measure dependency from the mkosi target as
mkosi doesn't invoke systemd-measure itself.

(cherry picked from commit 1a077e05fbcbfffe548ef39f45e4f2ca1399715d)

12 months agomeson: bump version to 256.8 v256.8
Luca Boccassi [Thu, 14 Nov 2024 18:11:30 +0000 (18:11 +0000)]
meson: bump version to 256.8

12 months agotest: skip TEST-84-STORAGETM if running with bugged libnvme
Luca Boccassi [Thu, 14 Nov 2024 16:19:25 +0000 (16:19 +0000)]
test: skip TEST-84-STORAGETM if running with bugged libnvme

libnvme 1.11 appears to require a kernel built with NVME TLS
kconfigs, and fails hard if it is not, as the expected
privileged keyring '.nvme' is not present. We cannot just
create it from userspace, as privileged keyrings can only
be created by the kernel itself (those starting with '.').

Skip the test if the library exactly matches this version.

https://github.com/linux-nvme/nvme-cli/issues/2573

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

(cherry picked from commit 893aa45886ef84b1827445dc438e410ad89fbbbf)

12 months agonspawn: ignore failure in creating /dev/net/tun when --private-network is unspecified
Yu Watanabe [Wed, 13 Nov 2024 04:36:11 +0000 (13:36 +0900)]
nspawn: ignore failure in creating /dev/net/tun when --private-network is unspecified

Follow-up for efedb6b0f3cff37950112fd37cb750c16d599bc7.
Closes #35116.

(cherry picked from commit 985ea98e7f90c92fcc0b8441fafb190353d2feb8)
Really rewritten from scratch.

12 months agonetwork-generator: drop wrong warning for rd.peerdns without value
Yu Watanabe [Wed, 14 Aug 2024 06:39:12 +0000 (15:39 +0900)]
network-generator: drop wrong warning for rd.peerdns without value

(cherry picked from commit 2a774f064815573efc33d43dfe3548590e42e9c2)

12 months agonetwork-generator: ignore kernel command line without value
Yu Watanabe [Wed, 14 Aug 2024 06:36:22 +0000 (15:36 +0900)]
network-generator: ignore kernel command line without value

And drop duplicated log messages.

(cherry picked from commit 551b21eb0a5ea691d7bce0aff6b1281dd1f98819)

12 months agonetwork-generator: parse vlan ID from vlan interface name
Yu Watanabe [Wed, 7 Aug 2024 06:04:46 +0000 (15:04 +0900)]
network-generator: parse vlan ID from vlan interface name

Fixes #33954.

(cherry picked from commit e31a55edf136e777aabdf19894ee886eac47c20e)

12 months agonetwork-generator: allow to create bridge or friends without slave interfaces
Yu Watanabe [Fri, 9 Aug 2024 10:01:40 +0000 (19:01 +0900)]
network-generator: allow to create bridge or friends without slave interfaces

(cherry picked from commit c40ef3f8ff3fd212b88aa84b9e17d1d49aca4ddb)

12 months agonetwork-generator: vlan= can be specified multiple times
Yu Watanabe [Wed, 7 Aug 2024 06:03:59 +0000 (15:03 +0900)]
network-generator: vlan= can be specified multiple times

(cherry picked from commit 9eee6b1b3f00d46459eebefb70be50ea6af30ddb)

12 months agoshutdown: replace unbounded fsync() with bounded sync_with_progress()
Lennart Poettering [Mon, 9 Sep 2024 15:53:03 +0000 (17:53 +0200)]
shutdown: replace unbounded fsync() with bounded sync_with_progress()

Let's put a time-out on this syncing.

Inspired-by: #34289 #34283
(cherry picked from commit b4b66b26620bfaf5818c95d5cffafd85207694e7)

12 months agoshutdown: teach sync_with_progress() to optionally sync a specific fd only
Lennart Poettering [Mon, 9 Sep 2024 15:49:33 +0000 (17:49 +0200)]
shutdown: teach sync_with_progress() to optionally sync a specific fd only

This is preparation for reusing the logic for syncing DM and other
devices with a timeout applied.

(cherry picked from commit 13b5225d6278af15e84ebd1889f04cfe81b47787)

12 months agoshutdown: clean up sync_with_progress a bit
Mike Yuan [Wed, 5 Jun 2024 15:53:27 +0000 (17:53 +0200)]
shutdown: clean up sync_with_progress a bit

Also, ignore the error on caller's side.

(cherry picked from commit 758760a3610e3c6674de8a1d51b12b991eafef7c)

12 months agoboot: allocate cleanup pages below 4GiB only on x86
andre4ik3 [Wed, 13 Nov 2024 14:53:25 +0000 (18:53 +0400)]
boot: allocate cleanup pages below 4GiB only on x86

Outside of x86, some machines (e.g. Apple silicon, AMD Opteron A1100) have
physical memory mapped above 4GiB, meaning this allocation will fail, causing
the entire boot process to fail on these machines.

This commit makes it so that the below-4GB address space allocation requirement
is only set on x86 platforms, and not on other platforms (that don't have the
specific Linux x86 boot protocol), thereby fixing boot on those that have no
memory mapped below 4GiB in their address space.

Tested on an Apple silicon M1 laptop and an AMD x86_64 desktop tower.

Fixes: #35026

Manual backport of 6e207b370e91e681efb08c497a6c8ad78e3c8d83.

12 months agoportable: do not use SYNTHETIC_ERRNO for sd_bus_error_set_errno()
Mike Yuan [Wed, 13 Nov 2024 16:45:53 +0000 (17:45 +0100)]
portable: do not use SYNTHETIC_ERRNO for sd_bus_error_set_errno()

The concept of synthetic errnos is about logging, which
is irrelevant irt bus error and we don't do any special
treatment in sd-bus for them, meaning the value propagated
would be spurious.

(cherry picked from commit 2f2058da0b88535cb3a95fc98e7b2f1ae4d35601)

12 months agohwdb: update to main@{2024-11-12}
Luca Boccassi [Tue, 12 Nov 2024 23:35:54 +0000 (23:35 +0000)]
hwdb: update to main@{2024-11-12}

git restore -s origin/main hwdb.d/ test/hwdb.d

12 months agomkosi: update opensuse commit reference
Luca Boccassi [Mon, 21 Oct 2024 13:26:05 +0000 (14:26 +0100)]
mkosi: update opensuse commit reference

It was force-pushed again

(cherry picked from commit 3034dc001394bba6d94d16a2a9c7a8cefd53035e)

12 months agomkosi: update opensuse commit reference and switch branch
Luca Boccassi [Fri, 18 Oct 2024 10:35:56 +0000 (11:35 +0100)]
mkosi: update opensuse commit reference and switch branch

'factory' was reset to 8 years ago

(cherry picked from commit 77579c66ef4b8aec1e723f9ed6c63efd10fb2688)

12 months agoTEST-17-UDEV: check if udev database file is removed on remove event
Yu Watanabe [Sun, 13 Oct 2024 16:28:23 +0000 (01:28 +0900)]
TEST-17-UDEV: check if udev database file is removed on remove event

(cherry picked from commit 49c46fbaf15b95a8264d01213539914e15fdc6fe)

12 months agoudev: do not re-create database on remove event
Yu Watanabe [Sun, 13 Oct 2024 15:55:43 +0000 (00:55 +0900)]
udev: do not re-create database on remove event

Fixes a bug introduced by f6bda694f908cc227b002570b893029aa4c9e173 (v256).

With the offending commit, on remove event, database file for a device is once
removed in event_execute_rules_on_remove(), but later re-created here.
This fixes the issue, and makes the database file not re-created on remove event.

(cherry picked from commit 5b2dce150d5eadcd33d620e095c9c1e2de51dd24)

12 months agocore/namespace: honor MountEntry.read_only, .options, and so on in static entries
Yu Watanabe [Sat, 19 Oct 2024 05:38:08 +0000 (14:38 +0900)]
core/namespace: honor MountEntry.read_only, .options, and so on in static entries

Otherwise, ProtectHome=tmpfs makes /home/ and friends not read-only.
Also, mount options for /run/ specified in MountAPIVFS=yes are not
applied.

The function append_static_mounts() was introduced in
5327c910d2fc1ae91bd0b891be92b30379c7467b, but at that time, there were
neither .read_only nor .options in the struct. But, when later the
struct is extended, the function was not updated and they were not
copied from the static table.
The fields has been used in static tables since
e4da7d8c796a1fd11ecfa80fb8a48eac9e823f06, and also in
94293d65cd4125347e21b3e423d0e245226b1be2.

Fixes #34825.

(cherry picked from commit 0cc496b2d21f73d0a03414ce40eceb9e3af76e22)

12 months agonetwork/tunnel: allow Local=/Remote=any for all tunnel types
Yu Watanabe [Tue, 29 Oct 2024 17:51:18 +0000 (02:51 +0900)]
network/tunnel: allow Local=/Remote=any for all tunnel types

It seems there is no restriction for local and remote addresses.

Fixes #34930.

(cherry picked from commit 5e48fd0506ed6212c9db2276d5845ab77aa9bce4)

12 months agoman/systemd.special: fix a typo
Štěpán Němec [Mon, 11 Nov 2024 19:31:43 +0000 (20:31 +0100)]
man/systemd.special: fix a typo

(cherry picked from commit 62ec4798f28ccf02926c2ae53d2a772b088383ee)

12 months agoman: fix incorrect volume numbers in internal man page references
Štěpán Němec [Mon, 11 Nov 2024 19:10:00 +0000 (20:10 +0100)]
man: fix incorrect volume numbers in internal man page references

Some ambiguity (e.g., same-named man pages in multiple volumes)
makes it impossible to fully automate this, but the following
Python snippet (run inside the man/ directory of the systemd repo)
helped to generate the sed command lines (which were subsequently
manually reviewed, run and the false positives reverted):

from pathlib import Path

import lxml
from lxml import etree as ET

man2vol: dict[str, str] = {}
man2citerefs: dict[str, list] = {}

for file in Path(".").glob("*.xml"):
    tree = ET.parse(file, lxml.etree.XMLParser(recover=True))
    meta = tree.find("refmeta")
    if meta is not None:
        title = meta.findtext("refentrytitle")
        if title is not None:
            vol = meta.findtext("manvolnum")
            if vol is not None:
                man2vol[title] = vol
            citerefs = list(tree.iter("citerefentry"))
            if citerefs:
                man2citerefs[title] = citerefs

for man, refs in man2citerefs.items():
    for ref in refs:
        title = ref.findtext("refentrytitle")
        if title is not None:
            has = ref.findtext("manvolnum")
            try:
                should_have = man2vol[title]
            except KeyError:  # Non-systemd man page reference?  Ignore.
                continue
            if has != should_have:
                print(
                    f"sed -i '\\|<citerefentry><refentrytitle>{title}"
                    f"</refentrytitle><manvolnum>{has}</manvolnum>"
                    f"</citerefentry>|s|<manvolnum>{has}</manvolnum>|"
                    f"<manvolnum>{should_have}</manvolnum>|' {man}.xml"
                )

(cherry picked from commit 597c6cc1195a986e8f89921aa89505b0eacf8181)

12 months agologin: fix session_kill(..., KILL_LEADER,...) (#35105)
12paper [Sun, 10 Nov 2024 02:13:39 +0000 (03:13 +0100)]
login: fix session_kill(..., KILL_LEADER,...) (#35105)

`loginctl kill-session --kill-whom=leader <N>` (or the D-Bus equivalent)
doesn't work because logind ends up calling `KillUnit(..., "main", ...)`
on a scope unit and these don't have a `MainPID` property. Here, I just
make it send a signal to the `Leader` directly.

(cherry picked from commit 8254755091847105c33e473c62cdc7621ed275bc)

12 months agoudev: skipping empty udev rules file while collecting the stats
Lidong Zhong [Thu, 7 Nov 2024 06:41:11 +0000 (14:41 +0800)]
udev: skipping empty udev rules file while collecting the stats

To keep align with the logic used in udev_rules_parse_file(), we also
should skip the empty udev rules file while collecting the stats during
manager reload. Otherwise all udev rules files will be parsed again whenever
reloading udev manager with an empty udev rules file. It's time consuming
and the following uevents will fail with timeout.

(cherry picked from commit 2ae79a31b7c7947e2c16e18eb85ac5607ebc40b6)

12 months agoman: drop whitespace from final <programlisting> lines
Zbigniew Jędrzejewski-Szmek [Thu, 7 Nov 2024 15:47:48 +0000 (16:47 +0100)]
man: drop whitespace from final <programlisting> lines

In the troff output, this doesn't seem to make any difference. But in the
html output, the whitespace is sometimes preserved, creating an additional
gap before the following content. Drop it everywhere to avoid this.

(cherry picked from commit fe45f8dc9bf1e9be8de4e14838bc2d7befcf946b)

12 months agodocs: add reminder to run update-man-rules before tagging a release
Luca Boccassi [Wed, 6 Nov 2024 19:21:14 +0000 (19:21 +0000)]
docs: add reminder to run update-man-rules before tagging a release

(cherry picked from commit 088793239ebc9c3a26c562be82dd5f4467162b26)

12 months agodocs: remove 'v' prefix from meson.version
Luca Boccassi [Wed, 6 Nov 2024 19:20:00 +0000 (19:20 +0000)]
docs: remove 'v' prefix from meson.version

It is actually v-less

(cherry picked from commit 94a46c20dacd8859a6fa3f807b0d134f800a1e90)

12 months agopid1: stop refusing to boot with cgroup v1
Zbigniew Jędrzejewski-Szmek [Sat, 2 Nov 2024 16:07:22 +0000 (17:07 +0100)]
pid1: stop refusing to boot with cgroup v1

Since v256 we completely fail to boot if v1 is configured. Fedora 41 was just
released with v256.7 and this is probably the first major exposure of users to
this code. It turns out not work very well. Fedora switched to v2 as default in
F31 (2019) and at that time some people added configuration to use v1 either
because of Docker or for other reasons. But it's been long enough ago that
people don't remember this and are now very unhappy when the system refuses to
boot after an upgrade.

Refusing to boot is also unnecessarilly punishing to users. For machines that
are used remotely, this could mean somebody needs to physically access the
machine. For other users, the machine might be the only way to access the net
and help, and people might not know how to set kernel parameters without some
docs. And because this is in systemd, after an upgrade all boot choices are
affected, and it's not possible to e.g. select an older kernel for boot. And
crashing the machine doesn't really serve our goal either: we were giving a
hint how to continue using v1 and nothing else.

If the new override is configured, warn and immediately boot to v1.
If v1 is configured w/o the override, warn and wait 30 s and boot to v2.
Also give a hint how to switch to v2.

https://bugzilla.redhat.com/show_bug.cgi?id=2323323
https://bugzilla.redhat.com/show_bug.cgi?id=2323345
https://bugzilla.redhat.com/show_bug.cgi?id=2322467
https://www.reddit.com/r/Fedora/comments/1gfcyw9/refusing_to_run_under_cgroup_01_sy_specified_on/

The advice is to set systemd.unified_cgroup_hierarchy=1 (instead of removing
systemd.unified_cgroup_hierarchy=0). I think this is easier to convey. Users
who are understand what is going on can just remove the option instead.

The caching is dropped in cg_is_legacy_wanted(). It turns out that the
order in which those functions are called during early setup is very fragile.
If cg_is_legacy_wanted() is called before we have set up the v2 hierarchy,
we incorrectly cache a true answer. The function is called just a handful
of times at most, so we don't really need to cache the response.

(cherry picked from commit d0ab0e5fa5434cac67e51dbeb1d873c6ac6f20cd)

12 months agoman/udev: fix typo
Yu Watanabe [Wed, 6 Nov 2024 10:05:12 +0000 (19:05 +0900)]
man/udev: fix typo

Follow-up for df8f9b88bd41320653fe1c51ea515a2d03a349df.

(cherry picked from commit 9dcf5c226e582cb664b6f14d5efbeed2350ba3bc)

12 months agoman: convert multiple left-over "See Also" sections to <simplelist>
Lennart Poettering [Tue, 5 Nov 2024 13:47:32 +0000 (14:47 +0100)]
man: convert multiple left-over "See Also" sections to <simplelist>

These were forgotten during the initial conversion, probably because
most of them consisted only of a single entry.

Fix that.

(cherry picked from commit df8f9b88bd41320653fe1c51ea515a2d03a349df)

12 months agoman: link up D-Bus API docs from daemon man pages
Lennart Poettering [Tue, 5 Nov 2024 13:20:01 +0000 (14:20 +0100)]
man: link up D-Bus API docs from daemon man pages

Let's systematically make sure that we link up the D-Bus interfaces from
the daemon man pages once in prose and once in short form at the bottom
("See Also"), for all daemons.

Also, add reverse links at the bottom of the D-Bus API docs.

Fixes: #34996
(cherry picked from commit 607d2974870e9769f44ee179dcaf26cbec64cb20)

12 months agoman: point people from sd-bus man page to busctl
Lennart Poettering [Tue, 5 Nov 2024 13:08:16 +0000 (14:08 +0100)]
man: point people from sd-bus man page to busctl

(cherry picked from commit 2f69ad26ca21d4da7f875bdea77594a115e2deee)

12 months agoman: tone down claims on processes having exited already in ExecStop=
Lennart Poettering [Tue, 5 Nov 2024 12:51:00 +0000 (13:51 +0100)]
man: tone down claims on processes having exited already in ExecStop=

Processes can easily survive the first kill operation we execute, hence
we shouldn't make strong claims about them having exited already. Let's
just say "likely" hence.

Fixes: #15032
(cherry picked from commit ac804bc2f8d814d2afcdccd88f7469ac320da1c8)

12 months agoman: document that .path units don't care for hidden files
Lennart Poettering [Tue, 5 Nov 2024 12:36:19 +0000 (13:36 +0100)]
man: document that .path units don't care for hidden files

Fixes: #32751
(cherry picked from commit 5adc4337996f561df43c617e37ef4b157073b2e6)

12 months agoman: document that PrivateTmp= is unaffected by ProtectSystem=strict
Lennart Poettering [Tue, 5 Nov 2024 12:33:53 +0000 (13:33 +0100)]
man: document that PrivateTmp= is unaffected by ProtectSystem=strict

Fixes: #33130
(cherry picked from commit b71173709651102081c9d8c6d6e3d2a6ef5cf17e)

12 months agoman: don't claim SELinuxContext= only worked in the system service manager
Lennart Poettering [Tue, 5 Nov 2024 12:15:36 +0000 (13:15 +0100)]
man: don't claim SELinuxContext= only worked in the system service manager

Fixes: #34840
(cherry picked from commit ecbe9ae5a0952d968c57e59dda4a42b72e5b5e6d)

12 months agoman: document the timeout applied to /usr/lib/systemd/system-shutdown/ drop-in binaries
Lennart Poettering [Tue, 5 Nov 2024 12:12:20 +0000 (13:12 +0100)]
man: document the timeout applied to /usr/lib/systemd/system-shutdown/ drop-in binaries

Fixes: #34949
(cherry picked from commit af080967bad2524d2fa2fef6ba5e9fcf18d3017e)

12 months agotest: delete /swapfile after swapoff
Luca Boccassi [Tue, 5 Nov 2024 18:15:36 +0000 (18:15 +0000)]
test: delete /swapfile after swapoff

[   23.608342] TEST-55-OOMD.sh[689]: + btrfs filesystem mkswapfile -s 64M /swapfile
[   23.651930] TEST-55-OOMD.sh[704]: ERROR: cannot create new swapfile: File exists

(cherry picked from commit 78b032d727e8f9e925c10c6617a1e409307ffc24)

12 months agorun: handle gracefully if we can't find binary client-side due to perms
Lennart Poettering [Tue, 5 Nov 2024 10:54:14 +0000 (11:54 +0100)]
run: handle gracefully if we can't find binary client-side due to perms

Fixes: #35022
(cherry picked from commit 9810899ef2f28fbb42cf659e6892b1a5074cfc83)

12 months agoresolved: log error messages for openssl/gnutls context creation
Zbigniew Jędrzejewski-Szmek [Sun, 3 Nov 2024 11:58:12 +0000 (12:58 +0100)]
resolved: log error messages for openssl/gnutls context creation

In https://bugzilla.redhat.com/show_bug.cgi?id=2322937 we're getting
an error message:
Okt 29 22:21:03 fedora systemd-resolved[29311]: Could not create manager: Cannot allocate memory
I expect that this actually comes from dnstls_manager_init(), the
openssl version. But without real logs it's hard to know for sure.

Use EIO instead of ENOMEM, because the problem is unlikely to be actually
related to memory.

(cherry picked from commit ee95e86ae163e436384f1b782a77a7e18deba890)

12 months agoci: add coverage for builds without sd-boot
Luca Boccassi [Mon, 4 Nov 2024 19:43:02 +0000 (19:43 +0000)]
ci: add coverage for builds without sd-boot

This should catch compilation issues such as:
https://github.com/systemd/systemd/pull/35014

(cherry picked from commit 8a3ac7afa6be8447061dc6cbd98830bb332fed28)

12 months agotest: set nullglob to avoid failure when building without sd-boot
Luca Boccassi [Mon, 4 Nov 2024 20:26:34 +0000 (20:26 +0000)]
test: set nullglob to avoid failure when building without sd-boot

2024-11-04T20:13:17.3258095Z + for loader in build/src/boot/efi/*{.efi,.efi.stub}
2024-11-04T20:13:17.3258275Z ++ sbverify --list 'build/src/boot/efi/*.efi'
2024-11-04T20:13:17.3258525Z + [[ Error reading file build/src/boot/efi/*.efi: No such file or directory
2024-11-04T20:13:17.3258952Z Can't open image build/src/boot/efi/*.efi != \N\o\ \s\i\g\n\a\t\u\r\e\ \t\a\b\l\e\ \p\r\e\s\e\n\t ]]
(cherry picked from commit 441922336baf4e302e3b88849c5a08c73b602044)

12 months agotest: fix tool name in comment
Luca Boccassi [Mon, 4 Nov 2024 20:22:01 +0000 (20:22 +0000)]
test: fix tool name in comment

(cherry picked from commit c53df275d512a219806a181de3bd57f02dc38dab)

12 months agopcrlock: Pad pe hash to a multiple of 8 bytes
Daan De Meyer [Sun, 3 Nov 2024 20:45:29 +0000 (21:45 +0100)]
pcrlock: Pad pe hash to a multiple of 8 bytes

All other tools (sbsigntools, osslsigncode, sbctl, goblin) do this
as well so let's follow suite.

(cherry picked from commit e37701a8cd2db1e67d28bcf337467d8efc6de41e)

12 months agotest-dhcp-client: utilize log_info instead of printf
Colin Foster [Fri, 1 Nov 2024 20:39:11 +0000 (15:39 -0500)]
test-dhcp-client: utilize log_info instead of printf

log_info appears to be the preferred method to convey information from
tests. Convert all the printfs to log_info to follow this standard.

(cherry picked from commit 38557d9ffbc6351b8980faf90d54619790436d43)

12 months agoudev-builtin-path_id: SAS wide ports must have num_phys > 1
Martin Wilck [Wed, 30 Oct 2024 15:57:39 +0000 (16:57 +0100)]
udev-builtin-path_id: SAS wide ports must have num_phys > 1

Some kernel SAS drivers (e.g. smartpqi) expose ports with num_phys = 0. udev
shouldn't treat these ports as wide ports.  SAS wide ports always have
num_phys > 1. See comments for sas_port_add_phy() in the kernel sources.

Sample data from a smartpqi system to illustrate the issue below.
Here the phy device is attached to port 0:0, which has no end devices attached
and the SAS end device (where sda is attached) is associated with SAS
port 0:1, which has no associated phy device. Thus num_phys for port-0:1 is 0.
This is arguably wrong, but it's how smartpqi has always set up its devices in
sysfs.

/sys/class/sas_phy/phy-0:0 -> ../../devices/pci0000:46/0000:46:02.0/0000:47:00.0/host0/scsi_host/host0/phy-0:0/sas_phy/phy-0:0
/sys/devices/pci0000:46/0000:46:02.0/0000:47:00.0/host0/scsi_host/host0/port-0:0/phy-0:0 -> ../phy-0:0
/sys/devices/pci0000:46/0000:46:02.0/0000:47:00.0/host0/scsi_host/host0/phy-0:0/port -> ../port-0:0

/sys/class/sas_device/end_device-0:1 -> ../../devices/pci0000:46/0000:46:02.0/0000:47:00.0/host0/scsi_host/host0/port-0:1/end_device-0:1/sas_device/end_device-0:1
/sys/class/block/sda -> ../../devices/pci0000:46/0000:46:02.0/0000:47:00.0/host0/scsi_host/host0/port-0:1/end_device-0:1/target0:0:0/0:0:0:0/block/sda

Signed-off-by: Martin Wilck <mwilck@suse.com>
(cherry picked from commit 7f6674624eedc95db2a9877edc6ff424f4453531)

12 months agoTEST-64-UDEV-STORAGE: Don't hardcode device name in long-sysfs-path test
Daan De Meyer [Fri, 1 Nov 2024 20:27:52 +0000 (21:27 +0100)]
TEST-64-UDEV-STORAGE: Don't hardcode device name in long-sysfs-path test

There's no guarantee our device will be named /dev/vda, so give it
a serial so we can query for its devname inside the test.

(cherry picked from commit 2ec809dd3baf39b83b8f581e7ea837b9732f9964)

12 months agoTEST-17-UDEV: Don't hardcode root device name
Daan De Meyer [Fri, 1 Nov 2024 20:27:08 +0000 (21:27 +0100)]
TEST-17-UDEV: Don't hardcode root device name

There's no guarantee the root device will be /dev/sda, so let's use
bootctl to get the actual path instead of harcoding it.

(cherry picked from commit 29a8e71d9c0858aef502f091a0ef58d5569b1c70)

12 months agopam: quiet a spurious debug message
Ronan Pigott [Sat, 2 Nov 2024 02:44:18 +0000 (19:44 -0700)]
pam: quiet a spurious debug message

This singular debug message gets printed even if debug is not enabled.
Quiet this message when debug is not enabled for consistency.

(cherry picked from commit f4092cb9745cc2fc1f889eeaffa5cb5133969d85)

12 months agoposix_spawn_wrapper: do not set POSIX_SPAWN_SETSIGDEF flag
Mike Gilbert [Thu, 24 Oct 2024 16:24:35 +0000 (12:24 -0400)]
posix_spawn_wrapper: do not set POSIX_SPAWN_SETSIGDEF flag

Setting this flag is a noop without a corresponding call to
posix_spawnattr_setsigdefault.

If we call posix_spawnattr_setsigdefault with a full signal set,
it causes glibc's posix_spawn implementation to call sigaction 63 times,
once for each signal. That seems wasteful.

This feature is really only useful for signals which have their
disposition set to SIG_IGN. Otherwise the dispostion gets set to
SIG_DFL automatically, either by clone(CLONE_CLEAR_SIGHAND) or the
subsequent execve.

As far as I can tell, systemd does not have any signals set to SIG_IGN
under normal operating conditions.

(cherry picked from commit ff94426f8a2d6cd4ea2e370835db152917a1684e)

12 months agocore: make mount(8) and swapon(8) inherit SMACK label from systemd
Łukasz Stelmach [Tue, 29 Oct 2024 14:53:45 +0000 (15:53 +0100)]
core: make mount(8) and swapon(8) inherit SMACK label from systemd

By default mount(8), umount(8), swapon(8) and swapoff(8) should run with
with the SMACK label inherited from systemd rather than the default one
meant for services.

Fixes: aa5ae9711ef3cd0c69b7fcfbd65bca05fb704a8a
Follow-up-for: 20bbf5ee4c6c80599a91e7a4b7474e931a27db4a
(cherry picked from commit 8144537a81c7a815af3d4c63cd8545ee17b2715d)

12 months agotest-network: add test for DHCPv4 address removal on stop
Yu Watanabe [Wed, 23 Oct 2024 20:25:41 +0000 (05:25 +0900)]
test-network: add test for DHCPv4 address removal on stop

For issue #34837.

(cherry picked from commit 58a011ba4865d083bffdebe33126637bc5bba511)

12 months agonetwork: process queued remove requests before networkd is stopped
Yu Watanabe [Wed, 23 Oct 2024 19:40:45 +0000 (04:40 +0900)]
network: process queued remove requests before networkd is stopped

This makes networkd process all queued remove requests when a
terminating or restarting signal is received. Otherwise, e.g. DHCPv4
address will not be removed on stop, especially when
KeepConfiguration=no.

Fixes a bug introduced by 85a6f300c14d75d161cbfdb3eaf5af9594400ecd and
its subsequent commits.

Fixes #34837.

Co-authored-by: Will Fancher <elvishjerricco@gmail.com>
(cherry picked from commit db68e990467ffea2b6655e4726856ca7eb32b38d)

12 months agotest-sbat: separate the two sbat sections
Zbigniew Jędrzejewski-Szmek [Wed, 30 Oct 2024 14:19:24 +0000 (15:19 +0100)]
test-sbat: separate the two sbat sections

(cherry picked from commit 07000101eb9529c2d6b5f5402c9fe643c5f98420)

12 months agocryptenroll,homectl,journalctl: adjust messages before qrcodes
Zbigniew Jędrzejewski-Szmek [Mon, 28 Oct 2024 12:59:05 +0000 (13:59 +0100)]
cryptenroll,homectl,journalctl: adjust messages before qrcodes

Users will generally know what a qrcode is, so let's not treat them as dumb and
explain that it can be scanned. OTOH, we should say what the qrcode contains
and it is useful to give a hint why the users would want to scan it. Reword
messages accordingly.

(Also, don't say "to your phone", when somebody might be using a stolen phone,
or something else then a phone.)

(cherry picked from commit 10faa40ba781cf499258a3b37de02dd643822dc6)

12 months agobsod: make message for qrcode more useful
Zbigniew Jędrzejewski-Szmek [Mon, 28 Oct 2024 12:51:25 +0000 (13:51 +0100)]
bsod: make message for qrcode more useful

People know what a qrcode is. We don't need to tell them to scan it.
Instead, we should say what the code contains.

While at it, rename "stream" to "f" in line with the usual style.

(cherry picked from commit abf1cae0a75ca07f09afbb4eaa9f11fc429b1d02)

12 months agodocs: Align some comments in HACKING.md
Daan De Meyer [Wed, 30 Oct 2024 10:16:13 +0000 (11:16 +0100)]
docs: Align some comments in HACKING.md

(cherry picked from commit a33f453702e40f4b52226c6be1a01200aee69470)

12 months agoanalyze: Add times in seconds for Activating and Activated in tooltip
hugo303 [Fri, 25 Oct 2024 10:15:02 +0000 (12:15 +0200)]
analyze: Add times in seconds for Activating and Activated in tooltip

Print the times in seconds in the tooltip to remove the need to count
and trying to follow the lines in the svg diagram in order to see at
what times these events happen.

(cherry picked from commit f172dfddde3379319ee3a02666a7ecf11a5711f4)

12 months agoTEST-80-NOTIFYACCESS: don't specify --pid= if MAINPID= is provided explicitly
Mike Yuan [Tue, 29 Oct 2024 17:35:50 +0000 (18:35 +0100)]
TEST-80-NOTIFYACCESS: don't specify --pid= if MAINPID= is provided explicitly

Otherwise, with recent additions, the MAINPIDFDID= generated by
systemd-notify would mismatch with overridden MAINPID=.

(cherry picked from commit c3ecb747f1e35f609f15fc94ad4d5e5ca0bda4a2)

12 months agoqrcode-util: avoid memleak in error path
Zbigniew Jędrzejewski-Szmek [Mon, 28 Oct 2024 12:45:40 +0000 (13:45 +0100)]
qrcode-util: avoid memleak in error path

(cherry picked from commit 439306da8b3962f683f5359c461d1669c070f377)

12 months agotest-terminal-util: print value of colors_enabled()
Zbigniew Jędrzejewski-Szmek [Mon, 28 Oct 2024 12:39:36 +0000 (13:39 +0100)]
test-terminal-util: print value of colors_enabled()

This makes it easier to diagnose why colors are disabled.

(cherry picked from commit b137b2979868e2de5fb5c26e90bacee33597b8e7)

12 months agobsod: do not check for color support
Zbigniew Jędrzejewski-Szmek [Mon, 28 Oct 2024 12:38:58 +0000 (13:38 +0100)]
bsod: do not check for color support

When invoked on a running system, bsod would not print the qrcode.
The check for "color support" on stdout is pointless, since we're not
printing to stdout but to a terminal fd that is opened separately.

(cherry picked from commit 5a64c86936477ecea5cc1fb8dbc79faf522cf370)

12 months agoqrcode-util: add debug message to show why a qrcode wasn't printed
Zbigniew Jędrzejewski-Szmek [Mon, 28 Oct 2024 12:15:32 +0000 (13:15 +0100)]
qrcode-util: add debug message to show why a qrcode wasn't printed

(cherry picked from commit f0764b98e5c136cb948a8034949064f610acca24)

12 months agosysv-generator: break long message into lines
Zbigniew Jędrzejewski-Szmek [Fri, 18 Oct 2024 17:41:25 +0000 (19:41 +0200)]
sysv-generator: break long message into lines

The journal handles multi-line messages nicely, and they are easier
to read. Drop the recycling symbol, there is no circular process here,
we go from a to b and never back to a again.

(cherry picked from commit bb56c27fc81da2777cd7064a0b88ca011eced509)