Commit Graph
86795 Commits
Author SHA1 Message Date
Lennart Poettering ac8266c7c2 tpm2-setup: make NV index space exhaustion issues more discoverable
Let's log about this explicitly, and include a message catalog entry for
it.
2026-02-26 11:34:59 +01:00
Lennart Poettering a01912ef29 tpm2-util: fix log level of one log call 2026-02-26 11:34:59 +01:00
Zbigniew Jędrzejewski-Szmek 13167bfc2f core/socket: fix reversed symlink direction in error message
After the update to 260-rc1 in Fedora Rawhide, we get a lot of messages like
this:
  systemd[1]: systemd-resolved-monitor.socket:
  Failed to create symlink /run/systemd/resolve/io.systemd.Resolve.Monitor →
  /run/varlink/registry/io.systemd.Resolve.Monitor, ignoring: Permission denied

The actual issue will need to be fixed too, but let's fix the message first.
While at it, let's rename the variables to be meaningful.
2026-02-26 11:34:22 +01:00
Zbigniew Jędrzejewski-Szmek 8a2b2828cc test-qr-code: allow specifying the text to encode 2026-02-26 09:20:59 +01:00
Yu Watanabe 2900f04c82 network: do not create state file for removed interface
Fixes #40817.
2026-02-26 08:50:50 +01:00
Luca Boccassi e27f740ba8 mkosi: explicitly add mount package to build image
Some dependency changed in testing and it's not pulled in anymore:

‣  Running build script /home/runner/work/systemd/systemd/mkosi/mkosi.images/build/mkosi.conf.d/debian-ubuntu/mkosi.build.chroot…
/work/build-script: line 35: mount: command not found
‣ /work/build-script failed with non-zero exit code 127
‣ (Maybe a program was not found or the script interpreter (e.g. bash) is not installed?)
FAILED: [code=127] mkosi
2026-02-25 23:43:56 +00:00
Luca Boccassi 8fe3678af6 semaphore: switch to debian stable
oldstable is close to moving to LTS so switch to stable
2026-02-25 23:31:54 +00:00
Zbigniew Jędrzejewski-Szmek e9abcd9b26 rpm/systemd-update-helper: use 'enqueue-marked-jobs'
Without this, a warning is emitted on upgrades.
Follow-up for c008f88ded.
2026-02-25 23:03:14 +00:00
Luca Boccassi afaca649ad man: fix typo
Follow-up for 23115eeaf1
2026-02-26 05:26:36 +09:00
Luca Boccassi 756f39c239 test: delete one more test artifact on shutdown
Hopefully fixes:

[  154.500726] TEST-13-NSPAWN.sh[4351]: + tar -C /var/tmp/mangletest/ -cvzf /var/tmp/mangletest.tar.gz mangletest-0.1
[  154.504485] TEST-13-NSPAWN.sh[5402]: mangletest-0.1/
[  154.506908] TEST-13-NSPAWN.sh[5402]: mangletest-0.1/usr/
[  154.508713] TEST-13-NSPAWN.sh[5402]: mangletest-0.1/usr/lib/
[  154.509208] TEST-13-NSPAWN.sh[5402]: mangletest-0.1/usr/lib/os-release
[  154.509877] TEST-13-NSPAWN.sh[4351]: + run0 --pipe -u testuser importctl -m --user import-tar /var/tmp/mangletest.tar.gz
[  154.693870] TEST-13-NSPAWN.sh[5405]: Enqueued transfer job 9. Press C-c to continue download in background.
[  154.696371] TEST-13-NSPAWN.sh[5405]: Image 'mangletest' already exists.

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

Follow-up for 4248b02c44
2026-02-25 20:12:18 +00:00
Luca Boccassi 46efee7d2b meson: bump version to v260~rc1 2026-02-25 15:54:00 +00:00
Luca Boccassi 8a048548a7 meson: bump library sonames for v260~rc1 2026-02-25 15:53:38 +00:00
Luca Boccassi 28165f82a4 NEWS: add date and place 2026-02-25 15:52:57 +00:00
Luca Boccassi c8c50243d9 NEWS: add contributors list 2026-02-25 15:52:48 +00:00
Luca Boccassi 3b0430d0bf NEWS: list hwids change 2026-02-25 15:51:27 +00:00
Luca Boccassi eaac6fb1e0 boot: import Snapdragon device hwid json files, install them and use them from ukify (#40541)
The json files were originally generated for Ubuntu stubble and are kown
to work since they ship in all Ubuntu arm64 ISOs by default.

Some of the devices might not be supported in mainline Linux yet and use
preliminary compatible strings.
2026-02-25 15:46:30 +00:00
Zbigniew Jędrzejewski-Szmek 35c404de9b Upgrade /tmp when PrivateTmp=yes/DefaultDeps=no to disconnected (#39790) 2026-02-25 16:14:13 +01:00
Zbigniew Jędrzejewski-Szmek 04897fbbee bootctl: override is_efi_boot() check by --variables= option (#40413)
Fixes #40392.
2026-02-25 15:42:53 +01:00
Luca Boccassi 117ec9db7e ukify: default --hwids to /usr/lib/systemd/boot/hwids/<EFI_ARCH>/
If the option is not manually specified, and the hwids directory exists
for the target EFI architecture, default to it. Allow passing '' to skip.

Fixes https://github.com/systemd/systemd/issues/40542
2026-02-25 13:51:31 +00:00
Luca Boccassi 6d5018487c man: fix line breaking in ukify manpage
Follow-up for 098e44d03c
2026-02-25 13:51:31 +00:00
Luca Boccassi 68aef1be15 Install hwids in /usr/lib/systemd/boot/hwids/<EFI_ARCH>/
These are meant to ship with ukify, in the same package,
so install them when ukify is enabled. Given they are
hardware-specific, use a per-arch subdirectory to make it
easier to enable them by default in ukify.
2026-02-25 13:51:31 +00:00
Tobias Heider d6332fa367 boot: import Snapdragon device hwid json files
Add hwids json files for Snapdragon devices that use of this
feature since they don't ship with devie trees embedded in firmware.
The json files were originally generated for Ubuntu stubble and
are kown to work since they ship in all Ubuntu arm64 ISOs by default.

Some of the devices might not be supported in mainline Linux yet
and use preliminary compatible strings.
2026-02-25 13:51:31 +00:00
Luca Boccassi 6d20cac84c test: move test hwids to separate subdirectory
Will allow installing the actual hwids as a single subdir
2026-02-25 13:51:31 +00:00
Luca Boccassi dc3d1c9bce mkosi: update fedora commit reference to 23a1c1fed99e152d9c498204175a7643371a822c
* 23a1c1fed9 Install /usr/lib/systemd/boot/hwids/ in ukify package
* 985170fdc6 Version 259.1
* 2e10d7da1e Revert getty changes a bit harder
* 96c683c3de Revert all remaing changes to getty@.service
* 24a305a398 Revert to previous handling of getty@.service
* 6a500eb814 Create getty@tty1.service again and move autovt@.service alias to /usr/lib
* 88bd4ab206 Properly enable systemd-tmpfiles-clear.service in scriptlets
* d9f3f02206 Raise the number of placeholder sections in kernel and addon stubs
* e301db0151 Stop enabling getty@tty1.service
* a1c33507a2 Fix unit names in systemd-udev scriptlet
* b7b3e024d6 Enable getty@.service through presets
* ec5e1b1ed7 Move tpm2 and getty support to -udev subpackage
* 9c9976a7f8 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* f353d244fd Add 2 patches for automatic aarch64 DTB selection change
* 399885597c Revert "Disable sysinit-path for upstream builds"
2026-02-25 13:51:31 +00:00
Luca Boccassi fe78f3cae6 NEWS: two news things (#40826) 2026-02-25 13:26:02 +00:00
Zbigniew Jędrzejewski-Szmek a5dce3eae1 NEWS: mention userns mapping change
Closes #40495.
C.f. 24c73c7920,
     705cc82938.
2026-02-25 14:07:02 +01:00
Zbigniew Jędrzejewski-Szmek 67610d04b4 NEWS: typos and rewordings 2026-02-25 13:53:33 +01:00
Daan De Meyer 101f03bedb Additions to nsresourced and vmspawn required for making use of the foreign UID range in mkosi (#40415) 2026-02-25 13:49:19 +01:00
Hosted Weblate 22e00ebe8d po: Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/
Translation: systemd/main
2026-02-25 12:21:16 +00:00
Luca Boccassi 28a0db925f mkosi: add groupadd/groupmod to ASAN wrappers list
TEST-74-AUX-UTILS.sh[3789]: + groupadd haldo
TEST-74-AUX-UTILS.sh[3875]: ==3875==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.

Follow-up for 1012c6ce76
2026-02-25 13:16:22 +01:00
Luca Boccassi 97b784fe87 Chores for RC1 (#40814) 2026-02-25 11:59:07 +00:00
Mike Yuan 2b67122cdf core/namespace: clean up append_private_tmp() a bit
With the previous changes the modes for /tmp/ and /var/tmp/
may come in arbitrary directions, i.e. we may downgrade one
and upgrade another. Hence let's refactor the setup logic
a bit so they're truly independent.
2026-02-25 12:38:12 +01:00
Zbigniew Jędrzejewski-Szmek 0a17bb5c34 core: simplify requirements in unit_get_private_var_tmp() to just After=
As in the previous commit, checking for both requirements and ordering seems
unnecessary. In practical cases, the mount will be pulled in by the rest
of the transaction, so ordering is the part that matters. (The setup is
racy without the ordering.)  If we drop the second check, the admin can
just use After=tmp.mount to achieve the desired behaviour, without needing
to explicitly pull in the unit. This is easier to configure and more robust.

This changes the implementation introduced in
6156bec7a4.

Also actually describe the implemented behaviour in the man page.
2026-02-25 12:38:11 +01:00
Zbigniew Jędrzejewski-Szmek fa33eef344 core: upgrade /tmp when PrivateTmp=yes/DefaultDeps=no to disconnected
In https://github.com/systemd/systemd/issues/28515, multiple people report that
services that have PrivateTmp=yes and DefaultDependencies=no fail to create the
temporary directories under /tmp, when /tmp is e.g. a bind mount or some other
kind of mount that takes more time.

Before PrivateTmp=disconnected was added, we didn't have a nice solution:
DefaultDependencies=no is used to start services very early, so we wouldn't
want to add a dependency on /tmp automatically. With PrivateTmp=disconnected we
have a fairly nice solution. Let's "upgrade" to this mode automatically.
Strictly speaking, it is a small compat break, but in practice it's unlikely to
matter for early-boot services whether their /tmp is private or disconnected.

The dependency on /tmp that is checked is After. I think this is enough,
since any tmp.mount would be pulled in by local-fs.target and the rest of
the transaction anyway, so we don't need to check more than After.

The asserts are relaxed, because now the two settings can now diverge
in either way.

Resolves https://github.com/systemd/systemd/issues/28515.

[yhndnzj: fix unit_add_exec_dependencies() to handle the new
          combination; add a comment in exec_needs_sys_admin()]
2026-02-25 12:38:11 +01:00
Mike Yuan 9984a35d65 core/execute: stop looking at ExecSharedRuntime to determine PrivateTmp= state
The only reason why ExecSharedRuntime.(var_)tmp_dir might
be suppressed is when (/var)/tmp/ is listed in InaccessiblePaths=,
in which case mount namespace is needed anyways. Moreover,
the current logic imposes a chicken-and-egg problem:
at various places in pid1 we'd need to check whether
the unit runs in a mountns, but the ExecSharedRuntime
may not be allocated for it just yet.
2026-02-25 12:38:11 +01:00
Mike Yuan 0d10a125f6 core/execute: make exec_shared_runtime_make() handle distinct PrivateTmp= modes properly 2026-02-25 12:38:11 +01:00
Mike Yuan e438e5923d core/namespace: two fixes for namespace_cleanup_tmpdir()
* Make sure we're not passing NULL to rmdir()
* Remove the inner "tmp" subdir as well, so that callers
  can handle this transparently (e.g. exec_shared_runtime_make()
  is not aware of the nested rmdir() requirements)

While at it, remove unneeded PROTECT_ERRNO.
2026-02-25 12:38:11 +01:00
Mike Yuan a45fb074fe core/namespace: rename() might return ENOTEMPTY if target dir exists 2026-02-25 12:36:45 +01:00
Mike Yuan 2e71d0a2bd core/unit: refuse UserNamespacePath= + PrivateUsers=
Such setup makes zero sense, as if we unshare userns ourselves
we'd immediately lose CAP_SYS_ADMIN over the userns specified.
2026-02-25 12:36:44 +01:00
Mike Yuan 457bd2345c core/execute: do not suppress ExecSharedRuntime if userns path is specified
Follow-up for 79dd24cf14
2026-02-25 12:36:44 +01:00
Zbigniew Jędrzejewski-Szmek 92a0761d55 core/exec-invoke: add missing char in comment 2026-02-25 12:36:44 +01:00
Adrian Vovk 4815f46407 Minor follow-ups to inhibitor bug fixes
Addresses Zbigniew's comments left on the previous MR after merging:
https://github.com/systemd/systemd/pull/40400#pullrequestreview-3849602215
2026-02-25 12:25:08 +01:00
Nick Rosbrook 7a1888954c seccomp-util: add lsm_get_self_attr and lsm_list_modules to @default
These syscalls are part of a newer kernel API to replace interaction
with /proc/self/attr, with the goal of allowing LSM stacking. These are
being used now by e.g. libapparmor, so should be more easily available
to services using seccomp filtering.
2026-02-25 11:35:54 +01:00
Daan De Meyer 3363693935 nspawn: Add support for delegated UID ranges
We expose this via --private-users-delegate= which takes the number of
ranges to delegate. On top of delegating the ranges, we also mount in
the nsresourced socket and the mountfsd socket so that nested containers
can use nsresourced to allocate from the delegated ranges and mountfsd to
mount images.

Finally, we also create /run/systemd/dissect-root with systemd-tmpfiles to
make sure it is always available as unpriv users won't be able to create it
themselves.
2026-02-25 11:31:06 +01:00
Daan De Meyer fd05c6c759 vmspawn: Add support for foreign UID range owned directories 2026-02-25 11:31:04 +01:00
Luca Boccassi cb40f2f83f Update po files
ninja -C build systemd-update-po
2026-02-25 10:00:58 +00:00
Luca Boccassi 30e57dc8fe Update systemd.pot
ninja -C build systemd-pot
2026-02-25 10:00:58 +00:00
Luca Boccassi c9130bb3da Update man/rules/meson.build
ninja -C build update-man-rules
2026-02-25 10:00:58 +00:00
Luca Boccassi 1349a863b3 man: drop conditional for systemd-mstack manpage
Follow-up for eb581ff6d9
2026-02-25 10:00:58 +00:00
Luca Boccassi a736ceaa02 Update hwdb autosuspend
ninja -C build update-hwdb-autosuspend
2026-02-25 09:57:26 +00:00