]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
8 weeks agohomectl: drop --and-resize and --and-change-password
Zbigniew Jędrzejewski-Szmek [Wed, 17 Dec 2025 14:11:07 +0000 (15:11 +0100)] 
homectl: drop --and-resize and --and-change-password

The two options are were not documented or ever used in the codebase.
Additionally, the parser expected an argumentless option, while the option
table declared a required argument. So I think this was added for debugging
and never excercised properly. Since there was no public documentation for
those, it's as if they never existed, so it should be fine to drop them.

8 weeks agoresolvectl: split out helper to parse stdin
Zbigniew Jędrzejewski-Szmek [Tue, 9 Dec 2025 10:30:17 +0000 (11:30 +0100)] 
resolvectl: split out helper to parse stdin

No functional change, just splitting up of a lengthy function.

8 weeks agonspawn: split out helper to parse --private-users
Zbigniew Jędrzejewski-Szmek [Wed, 3 Dec 2025 22:18:13 +0000 (23:18 +0100)] 
nspawn: split out helper to parse --private-users

This is just to make parse_argv() slightly more managable.

8 weeks agocore/service: support credentials refreshing on reload (#40093)
Daan De Meyer [Fri, 13 Feb 2026 09:21:44 +0000 (10:21 +0100)] 
core/service: support credentials refreshing on reload (#40093)

Closes https://github.com/systemd/systemd/issues/21099
Closes https://github.com/systemd/systemd/issues/35227

8 weeks agometrics: fixing casing
Yaping Li [Wed, 11 Feb 2026 23:08:44 +0000 (15:08 -0800)] 
metrics: fixing casing

8 weeks agoTwo portabled fixes (#40664)
Yu Watanabe [Fri, 13 Feb 2026 07:53:29 +0000 (16:53 +0900)] 
Two portabled fixes (#40664)

8 weeks agorepart: set r/o GPT flag on verity sig partition too
Luca Boccassi [Fri, 13 Feb 2026 00:21:06 +0000 (00:21 +0000)] 
repart: set r/o GPT flag on verity sig partition too

The default image policy for the verity sig partition expects
the r/o flag to be set, but repart so far did not add it by
default if unset, like it does for the verity partition

8 weeks agokmod-setup: also load other vsock transport modules 40557/head
Yu Watanabe [Wed, 4 Feb 2026 07:11:38 +0000 (16:11 +0900)] 
kmod-setup: also load other vsock transport modules

Fixes #40161.

8 weeks agokmod-setup: fix loading virtio related drivers
Yu Watanabe [Tue, 3 Feb 2026 07:59:49 +0000 (16:59 +0900)] 
kmod-setup: fix loading virtio related drivers

It seems the device with modalias e.g. virtio:d00000013v, only appears
after the relevant module is loaded. So, we cannot use the string to
determine if we should load the module.

Fixes #40503.

8 weeks agobootctl: do not use the EFI path as XBOOTLDR path 40413/head
Yu Watanabe [Wed, 21 Jan 2026 12:39:46 +0000 (21:39 +0900)] 
bootctl: do not use the EFI path as XBOOTLDR path

When running in a container, EFI and XBOOTLDR partition check is
relaxed, hence /boot may be recognized as both EFI and XBOOTLDR
partition.

Before:
```
$ run0 systemd-nspawn -xD / --private-network --bind=/sys/firmware/efi/efivars --bind=/boot -E SYSTEMD_LOG_LEVEL=debug -- build/bootctl --variables=yes --no-pager -x
Failed to check file system type of "/efi": No such file or directory
Using EFI System Partition at /boot.
Using XBOOTLDR partition at /boot as $BOOT.
/boot
```

After:
```
$ run0 systemd-nspawn -xD / --private-network --bind=/sys/firmware/efi/efivars --bind=/boot -E SYSTEMD_LOG_LEVEL=debug -- build/bootctl --variables=yes -x
Failed to check file system type of "/efi": No such file or directory
Using EFI System Partition at /boot.
Didn't find an XBOOTLDR partition, using the ESP as $BOOT.
/boot
```

8 weeks agobootctl: do not show an empty () for ESP partition
Yu Watanabe [Wed, 21 Jan 2026 12:24:24 +0000 (21:24 +0900)] 
bootctl: do not show an empty () for ESP partition

Before:
```
$ run0 systemd-nspawn -xD / --private-network --bind=/sys/firmware/efi/efivars --bind=/boot -- build/bootctl --variables=yes --no-pager
(snip)
Boot Loader Entry Locations:
          ESP: /boot ()
       config: /boot//loader/loader.conf
     XBOOTLDR: /boot ($BOOT)
        token: fedora
(snip)
```

After:
```
run0 systemd-nspawn -xD / --private-network --bind=/sys/firmware/efi/efivars --bind=/boot -- build/bootctl --variables=yes --no-pager
(snip)
Boot Loader Entry Locations:
          ESP: /boot
       config: /boot//loader/loader.conf
     XBOOTLDR: /boot ($BOOT)
        token: fedora
(snip)
```

This also moves spurious position of new line in each output.

8 weeks agobootctl: make list command take --variables= option
Yu Watanabe [Wed, 21 Jan 2026 12:48:49 +0000 (21:48 +0900)] 
bootctl: make list command take --variables= option

8 weeks agobootctl: make status command take --variables= option
Yu Watanabe [Wed, 21 Jan 2026 10:41:54 +0000 (19:41 +0900)] 
bootctl: make status command take --variables= option

8 weeks agobootctl: make reboot-to-firmware command take --variables= option
Yu Watanabe [Wed, 21 Jan 2026 10:40:54 +0000 (19:40 +0900)] 
bootctl: make reboot-to-firmware command take --variables= option

8 weeks agobootctl: override is_efi_boot() check if --variables= option is specified
Yu Watanabe [Wed, 21 Jan 2026 10:39:28 +0000 (19:39 +0900)] 
bootctl: override is_efi_boot() check if --variables= option is specified

Fixes #40392.

8 weeks agobootctl: move arg_touch_variables checkers to bootctl-util.c
Yu Watanabe [Wed, 21 Jan 2026 10:36:10 +0000 (19:36 +0900)] 
bootctl: move arg_touch_variables checkers to bootctl-util.c

No functional change, just refactoring.

8 weeks agobootctl: refuse --variables=yes when EFI support is disabled
Yu Watanabe [Wed, 21 Jan 2026 11:52:52 +0000 (20:52 +0900)] 
bootctl: refuse --variables=yes when EFI support is disabled

8 weeks agoefivars: allow to override is_efi_boot()
Yu Watanabe [Wed, 21 Jan 2026 10:27:01 +0000 (19:27 +0900)] 
efivars: allow to override is_efi_boot()

8 weeks agopo: Added translation using Weblate (Kazakh)
Baurzhan Muftakhidinov [Thu, 12 Feb 2026 17:18:33 +0000 (17:18 +0000)] 
po: Added translation using Weblate (Kazakh)

Co-authored-by: Baurzhan Muftakhidinov <baurthefirst@gmail.com>
8 weeks agoTEST-72-SYSUPDATE: Use some very long partition names
Daan De Meyer [Thu, 12 Feb 2026 19:34:27 +0000 (20:34 +0100)] 
TEST-72-SYSUPDATE: Use some very long partition names

To catch issues like https://github.com/systemd/systemd/issues/40658.
The commit that fixes that issue can make the name even longer to ensure
we don't regress again in this regard.

8 weeks agosysupdate: Compute temporary paths before vacuuming
Daan De Meyer [Thu, 12 Feb 2026 15:17:36 +0000 (16:17 +0100)] 
sysupdate: Compute temporary paths before vacuuming

We don't want to vacuum anything if we're just going to fail just
afterwards because a GPT partition label exceeds the maximum size
so let's compute the temporary paths for all transfers before we do
any vacuuming or acquiring.

8 weeks agoRevert "hwdb: fix arrow keys on HP Elite Dragonfly G3"
Han Sol Jin [Mon, 9 Feb 2026 10:23:03 +0000 (02:23 -0800)] 
Revert "hwdb: fix arrow keys on HP Elite Dragonfly G3"

Prior to this commit, the behaviour looked like this:

| Keypress | Result       |
| -------- | ------------ |
| Up       | KEY_PAGEUP   |
| Down     | KEY_PAGEDOWN |
| Left     | KEY_LEFT     |
| Right    | KEY_RIGHT    |
| Fn+Up    | KEY_UP       |
| Fn+Down  | KEY_DOWN     |
| Fn+Left  | KEY_HOME     |
| Fn+Right | KEY_END      |

This commit would fix it so that PGUP/PGDN would also require the Fn
key so that the arrow keys behave identically depending on whether Fn
was pressed.

Presumably after a BIOS update, HP seems to have fixed the order. This
now means this commit is now behaving exactly as the table above.

Revert the commit to restore the intended behaviour:

| Keypress | Result       |
| -------- | ------------ |
| Up       | KEY_UP       |
| Down     | KEY_DOWN     |
| Left     | KEY_LEFT     |
| Right    | KEY_RIGHT    |
| Fn+Up    | KEY_PAGEUP   |
| Fn+Down  | KEY_PAGEDOWN |
| Fn+Left  | KEY_HOME     |
| Fn+Right | KEY_END      |

This reverts commit 4fd7c712dcba3c4ed7183ba327d0b88d9b0be9bb.

Signed-off-by: Han Sol Jin <hansol@hansol.ca>
8 weeks agoportable: do not apply extension image policy if not attaching image 40664/head
Luca Boccassi [Thu, 12 Feb 2026 21:59:29 +0000 (21:59 +0000)] 
portable: do not apply extension image policy if not attaching image

Image policy is only for images, so skip for other types

Follow-up for d05961549277f15399a45cdf42d4d5f3e5ed8097

8 weeks agoportable: fix --force flag combination with directory extension
Luca Boccassi [Thu, 12 Feb 2026 21:57:26 +0000 (21:57 +0000)] 
portable: fix --force flag combination with directory extension

The check for image type uses the wrong variable, so it's applied
when it shouldn't.

Follow-up for 06768b90a32ac0d36252ebc5f426ad471bf29fce

8 weeks agoudev: rules: fix camera comparison
David Santamaría Rogado [Thu, 12 Feb 2026 16:29:12 +0000 (17:29 +0100)] 
udev: rules: fix camera comparison

actually that is intended to be a comparison

8 weeks agoquirks: sensor: squash toshiba tablets
David Santamaría Rogado [Thu, 12 Feb 2026 16:24:46 +0000 (17:24 +0100)] 
quirks: sensor: squash toshiba tablets

actually all of them have the same accel mount matrix.

8 weeks agoSwitch back to 'http' in SVG files (#40661)
Tabis Kabis [Thu, 12 Feb 2026 17:49:19 +0000 (18:49 +0100)] 
Switch back to 'http' in SVG files (#40661)

Firefox & Chrome don't render images because of 'https' being used in the SVG.
Switch back to 'http'.

Follow-up for 0922f62126297e59c03bc9e1b1f4bd6c362604ba

8 weeks agoCODING_STYLE: add a brief log msg style guide
Lennart Poettering [Tue, 10 Feb 2026 14:12:49 +0000 (15:12 +0100)] 
CODING_STYLE: add a brief log msg style guide

8 weeks agoAdd sensor entry for Toshiba Encore WT10A-108
Betacentury [Thu, 12 Feb 2026 09:20:14 +0000 (10:20 +0100)] 
Add sensor entry for Toshiba Encore WT10A-108

Added sensor configuration for Toshiba Encore WT10A-108 tablet.

8 weeks agodissect: Various fixes and improvements (#40212)
Daan De Meyer [Thu, 12 Feb 2026 10:26:18 +0000 (11:26 +0100)] 
dissect: Various fixes and improvements (#40212)

8 weeks agodissect: Use must_be_root() 40212/head
Daan De Meyer [Thu, 12 Feb 2026 08:44:29 +0000 (09:44 +0100)] 
dissect: Use must_be_root()

8 weeks agoshift-uid: Add debug logging
Daan De Meyer [Thu, 5 Feb 2026 20:42:48 +0000 (21:42 +0100)] 
shift-uid: Add debug logging

8 weeks agodissect: Allow --shift for users with CAP_CHOWN
Daan De Meyer [Thu, 5 Feb 2026 20:42:27 +0000 (21:42 +0100)] 
dissect: Allow --shift for users with CAP_CHOWN

8 weeks agodissect: Introduce --copy-ownership= to configure chown behavior
DaanDeMeyer [Sat, 27 Dec 2025 19:37:02 +0000 (20:37 +0100)] 
dissect: Introduce --copy-ownership= to configure chown behavior

Currently, if we're copying a file, we won't copy the owner UID/GID
from the source. If we're copying a directory, we will copy the owner
UID/GID from the source. Let's give users a bit more control over this
behavior by introducing --copy-ownership= which will default to the
current behavior but allows users to explicitly enable/disable copying
of ownership.

8 weeks agodissect: Make --mount/--unmount/--with work unprivileged
DaanDeMeyer [Fri, 26 Dec 2025 21:18:29 +0000 (22:18 +0100)] 
dissect: Make --mount/--unmount/--with work unprivileged

Let's check for CAP_SYS_ADMIN instead of root for these, and make
unmounting more graceful if we can't access the backing loop device
because of permission issues. This allows mounting and unmounting images
from an unprvileged mount namespace. The actual files in the image will
end up owned by nobody:nobody because we'll be in an unprivileged user
namespace, but assuming the directory permissions are not too strict, this
still allows interacting with the image in useful ways.

8 weeks agodissect: Fix wrong errno passed to log message
DaanDeMeyer [Fri, 26 Dec 2025 21:36:39 +0000 (22:36 +0100)] 
dissect: Fix wrong errno passed to log message

8 weeks agodissect: Fix segmentation fault if loop device is not provided
DaanDeMeyer [Fri, 26 Dec 2025 21:36:21 +0000 (22:36 +0100)] 
dissect: Fix segmentation fault if loop device is not provided

8 weeks agodissect: Fix logging in (with)
DaanDeMeyer [Fri, 26 Dec 2025 21:36:08 +0000 (22:36 +0100)] 
dissect: Fix logging in (with)

8 weeks agodissect: Don't use private userns for --copy-to/--copy-from
DaanDeMeyer [Fri, 26 Dec 2025 20:51:00 +0000 (21:51 +0100)] 
dissect: Don't use private userns for --copy-to/--copy-from

These actions interact with the host. The former needs privileges to
write into the image, the latter needs privileges to write on the host.
Neither will have the privileges required if the image is attached under
a private userns, hence, don't use one.

8 weeks agoreport: simplify error propagation 40642/head
Zbigniew Jędrzejewski-Szmek [Mon, 9 Feb 2026 11:15:56 +0000 (12:15 +0100)] 
report: simplify error propagation

Returning EXIT_* from an inner function is unusual and better
avoided. Let's just return a negative value and let the caller
do the conversion.

8 weeks agosd-varlink: Allow using sd_varlink_reply() in streaming methods (#40546)
Daan De Meyer [Wed, 11 Feb 2026 13:58:12 +0000 (14:58 +0100)] 
sd-varlink: Allow using sd_varlink_reply() in streaming methods (#40546)

8 weeks agobootctl: Drop SD_VARLINK_NULLABLE from ListBootEntries IDL 40546/head
Daan De Meyer [Sun, 8 Feb 2026 21:16:52 +0000 (22:16 +0100)] 
bootctl: Drop SD_VARLINK_NULLABLE from ListBootEntries IDL

9e10f3a7e800ad67be8d8b14ae158a27438814f0 changed the implementation
to report an error instead of an empty object but the IDL was not
adjusted. Let's fix that.

8 weeks agotree-wide: Migrate to varlink_set_sentinel()
Daan De Meyer [Tue, 3 Feb 2026 11:51:46 +0000 (12:51 +0100)] 
tree-wide: Migrate to varlink_set_sentinel()

8 weeks agoresolve: Make sure we free varlink subscription sets
Daan De Meyer [Tue, 3 Feb 2026 08:42:15 +0000 (09:42 +0100)] 
resolve: Make sure we free varlink subscription sets

8 weeks agosd-varlink: Introduce varlink_set_sentinel()
Daan De Meyer [Mon, 2 Feb 2026 13:23:40 +0000 (14:23 +0100)] 
sd-varlink: Introduce varlink_set_sentinel()

Streaming methods which are not used as a continuous subscription but
instead only send a series of objects all end up with the same workaround
to be able to figure out when to send sd_varlink_reply() or sd_varlink_notify().
Let's generalize this in sd-varlink itself.

Let's introduce the concept of a sentinel, which is a reply that will be sent
by sd-varlink if no other reply was queued by a method callback. The sentinel
is configured with varlink_set_sentinel(). If a sentinel is configured,
sd_varlink_reply() can be used more than once in streaming methods to queue
multiple values to stream to the client. The last queued reply is not sent
until the callback finishes. When the callback finishes, the last reply is
sent without "continues: more". If no reply was queued, the sentinel is sent.

This always using only sd_varlink_reply() in such streaming methods and
leaves sd_varlink_notify() available solely for continuous subscription
streaming methods, where we never use sd_varlink_reply() and instead disconnect
when the server exits.

8 weeks agosd-varlink: Move code around
Daan De Meyer [Mon, 2 Feb 2026 11:59:06 +0000 (12:59 +0100)] 
sd-varlink: Move code around

Preparation for next commits

8 weeks agovarlink-unit: Coding style cleanups
Daan De Meyer [Wed, 11 Feb 2026 08:39:04 +0000 (09:39 +0100)] 
varlink-unit: Coding style cleanups

8 weeks agonspawn: simplify parsing of --hostname/--machine
Zbigniew Jędrzejewski-Szmek [Wed, 3 Dec 2025 21:58:46 +0000 (22:58 +0100)] 
nspawn: simplify parsing of --hostname/--machine

8 weeks agoreport: fix hang when we start skipping metrics
Zbigniew Jędrzejewski-Szmek [Wed, 11 Feb 2026 11:44:13 +0000 (12:44 +0100)] 
report: fix hang when we start skipping metrics

Fixup for 0ec663a41fc49a3e4ec592c4e0037f4bc7e8f6fc.

8 weeks agoMetrics: Refactor to drop usage of strv
Yaping Li [Mon, 9 Feb 2026 14:47:27 +0000 (06:47 -0800)] 
Metrics: Refactor to drop usage of strv

This addresses Daan's feedback on #39202

8 weeks agojournal-upload: drop custom option error handling
Zbigniew Jędrzejewski-Szmek [Mon, 8 Dec 2025 09:52:11 +0000 (10:52 +0100)] 
journal-upload: drop custom option error handling

The line to set opterr=0 was added in the initial commit in
3d090cc6f34e5970765dd1e7ee5e648a056d180d. But afaict, this never worked as
intended, because ':' must be the first char in optstring given to
getopt_long() for it to return ':' for a missing option value. Since
this wasn't set, getopt_long() would return '?', and the missing value
would be handled as an unknown option:
  $ build/systemd-journal-upload --key
  Unknown option --key.
  $ build/systemd-journal-upload --asdf
  Unknown option --asdf.

Let's just do the standard thing:
  $ build/systemd-journal-upload --key
  build/systemd-journal-upload: option '--key' requires an argument
  $ build/systemd-journal-upload --asdf
  build/systemd-journal-upload: unrecognized option '--asdf'

8 weeks agocryptenroll: simplification
Zbigniew Jędrzejewski-Szmek [Fri, 5 Dec 2025 18:14:43 +0000 (19:14 +0100)] 
cryptenroll: simplification

8 weeks agocryptenroll: split out parser for --wipe-slot=
Zbigniew Jędrzejewski-Szmek [Fri, 5 Dec 2025 18:14:00 +0000 (19:14 +0100)] 
cryptenroll: split out parser for --wipe-slot=

8 weeks agopath: simplify run()
Zbigniew Jędrzejewski-Szmek [Thu, 4 Dec 2025 13:00:28 +0000 (14:00 +0100)] 
path: simplify run()

No functional change, just less indents.

8 weeks agomount-tool: fix confusion in --help
Zbigniew Jędrzejewski-Szmek [Tue, 9 Dec 2025 12:46:48 +0000 (13:46 +0100)] 
mount-tool: fix confusion in --help

See grandparent commit for explanation.

8 weeks agoimportctl: fix confusion in --help
Zbigniew Jędrzejewski-Szmek [Sat, 6 Dec 2025 12:36:43 +0000 (13:36 +0100)] 
importctl: fix confusion in --help

See parent commit for explanation.

8 weeks agocgtop: fix confusion in --help
Zbigniew Jędrzejewski-Szmek [Wed, 3 Dec 2025 14:23:12 +0000 (15:23 +0100)] 
cgtop: fix confusion in --help

When we say '-n --iterations=N' in --help, this means that the program
can be invoked with '-n N' or '--iterations=N' or '--iterations N'.
(The short option is specified without the argument.)

Here we tried to use '-p --order=path' to mean that the program can be
invoked with '-p' or '--order=path', but that is incompatible with the
established convention.

Also, indicate that the arg to --cpu is optional.

8 weeks agoNEWS: add entry about non-system accounts 40612/head
Zbigniew Jędrzejewski-Szmek [Mon, 9 Feb 2026 21:18:30 +0000 (22:18 +0100)] 
NEWS: add entry about non-system accounts

8 weeks agonetworkd: downgrade error for non-system users/groups to a warning
Zbigniew Jędrzejewski-Szmek [Mon, 9 Feb 2026 11:02:03 +0000 (12:02 +0100)] 
networkd: downgrade error for non-system users/groups to a warning

This reverts (in spirit) "network/tuntap: deny from owning Tun/Tap interfaces",
commit 940441b44c7040d62ae58b66bf124e9a0dae578d.

Justification similar as in the previous commit. The check is only
partially connected to the intended purpose and breaks backwards compat
without a sufficient reason.

Alternative fix for #37279.

8 weeks agoudev-rules: downgrade error about non-system user/group in OWNER=/GROUP=
Zbigniew Jędrzejewski-Szmek [Mon, 9 Feb 2026 11:02:02 +0000 (12:02 +0100)] 
udev-rules: downgrade error about non-system user/group in OWNER=/GROUP=

This reverts (in sprit) commit f5cdf9515aceca2e91f9a33b74267e0cf5a5b7e8,
"udev-rules: ignore non-system user/group in OWNER=/GROUP=".

The original change was done to clean up a situation where we added a
new group, but the group could already have been used for some other
purposes, and now the some unexpected entity would own the device.
Unfortunately, this check doesn't really address the issue, since the
existing account might as well be a system account, which might be
equally bad. In addition, this change is a big compatiblity break,
causing existing rules to stop working. Since quite a lot of systems
have local configuration to assign devices to users for various
purposes, this is very noticable to users. In a way, the original change
to add a new group was the compat break, and follow-up patch to cahnge
the rule parsing evolved a small compat break into a much bigger one.
There is merit to the change though, since device nodes shouldn't be
owned by users and groups and different mechanisms should be used
instead. To avoid breaking users systems, and since the original goal
cannot be achieved by this patch, let's downgrade this to a warning
to guide users towards different solutions.

8 weeks agoask-password-api: several modernizations for ask_password_agent() 40631/head
Mike Yuan [Wed, 4 Feb 2026 01:41:07 +0000 (02:41 +0100)] 
ask-password-api: several modernizations for ask_password_agent()

* Replace goto cleanup with block_signals_reset + CLEANUP_TMPFILE_AT
* Use RENAME_NOREPLACE to make sure we don't overwrite any ongoing request
* Reword log messages a bit

8 weeks agovarious: port manual goto cleanup to CLEANUP_TMPFILE_AT
Mike Yuan [Wed, 4 Feb 2026 01:31:51 +0000 (02:31 +0100)] 
various: port manual goto cleanup to CLEANUP_TMPFILE_AT

8 weeks agotmpfile-util: do not skip CLEANUP_TMPFILE_AT for AT_FDCWD
Mike Yuan [Wed, 4 Feb 2026 01:15:49 +0000 (02:15 +0100)] 
tmpfile-util: do not skip CLEANUP_TMPFILE_AT for AT_FDCWD

Preparation for later commits.

8 weeks agoterminal-util: handle the case where no system console is active (#40630)
Mike Yuan [Tue, 10 Feb 2026 22:59:07 +0000 (23:59 +0100)] 
terminal-util: handle the case where no system console is active (#40630)

/dev/console might have no backing driver, in which case
/sys/class/tty/console/active is empty. Unlike get_kernel_consoles()
resolve_dev_console() currently proceeds with empty devnode, resulting
in setup_input() -> acquire_terminal() emitting -EISDIR as we're trying
to open /dev/. Let's catch this and report -ENXIO.

8 weeks agoTEST-54-CREDS: add test cases for credential refreshing 40093/head
Mike Yuan [Tue, 10 Feb 2026 07:13:39 +0000 (08:13 +0100)] 
TEST-54-CREDS: add test cases for credential refreshing

8 weeks agoterminal-util: also protect from empty /sys/class/tty/tty0/active 40630/head
Mike Yuan [Tue, 10 Feb 2026 21:21:25 +0000 (22:21 +0100)] 
terminal-util: also protect from empty /sys/class/tty/tty0/active

8 weeks agoterminal-util: handle the case where no system console is active
Mike Yuan [Fri, 6 Feb 2026 01:07:05 +0000 (02:07 +0100)] 
terminal-util: handle the case where no system console is active

/dev/console might have no backing driver, in which case
/sys/class/tty/console/active is empty. Unlike get_kernel_consoles()
resolve_dev_console() currently proceeds with empty devnode,
resulting in setup_input() -> acquire_terminal() emitting -EISDIR
as we're trying to open /dev/. Let's catch this and report -ENXIO.

8 weeks agotest-load-fragment: add unit test for RefreshOnReload= parser
Mike Yuan [Tue, 10 Feb 2026 06:34:57 +0000 (07:34 +0100)] 
test-load-fragment: add unit test for RefreshOnReload= parser

8 weeks agoman: document RefreshOnReload=
Mike Yuan [Mon, 15 Dec 2025 22:58:07 +0000 (23:58 +0100)] 
man: document RefreshOnReload=

8 weeks agocore/service: if RefreshOnReload= is explicitly enabled, allow reload even without...
Mike Yuan [Sun, 14 Dec 2025 16:55:04 +0000 (17:55 +0100)] 
core/service: if RefreshOnReload= is explicitly enabled, allow reload even without exec/notify-reload

This was originally brought up by @poettering. If the process
loads stuff on demand and flushes them out after each use,
or actively monitors file changes, they can be reloaded
by merely refreshing the resources.

8 weeks agocore/service: pass credentials to ExecReload*= if refreshed
Mike Yuan [Sun, 14 Dec 2025 13:47:20 +0000 (14:47 +0100)] 
core/service: pass credentials to ExecReload*= if refreshed

Closes #35227

8 weeks agocore/service: support credential refreshing on reload
Mike Yuan [Sun, 14 Dec 2025 13:46:57 +0000 (14:46 +0100)] 
core/service: support credential refreshing on reload

Closes #21099

8 weeks agomacro: add 22nd case for IN_SET
Mike Yuan [Mon, 15 Dec 2025 23:02:01 +0000 (00:02 +0100)] 
macro: add 22nd case for IN_SET

Dejavu moment ;)

8 weeks agocore/service: introduce RefreshOnReload= setting
Mike Yuan [Sun, 14 Dec 2025 17:20:36 +0000 (18:20 +0100)] 
core/service: introduce RefreshOnReload= setting

This allows controlling resources to be refreshed before performing
reload, with one extra benefit that in the future we can permit
"seemless reload"s, i.e. no active signaling is done to the main process
after refreshing get updated. This could come in handy for programs
that loads stuff on demand or watches changes via inotify.

8 weeks agocore/exec-credential: introduce unit_refresh_credentials()
Mike Yuan [Sun, 14 Dec 2025 13:31:30 +0000 (14:31 +0100)] 
core/exec-credential: introduce unit_refresh_credentials()

8 weeks agoprocess-util: teach namespace_fork() to optionally use namespace_enter_delegated()
Mike Yuan [Mon, 15 Dec 2025 18:46:59 +0000 (19:46 +0100)] 
process-util: teach namespace_fork() to optionally use namespace_enter_delegated()

8 weeks agonamespace-util: introduce namespace_enter_delegated()
Mike Yuan [Wed, 17 Dec 2025 11:32:14 +0000 (12:32 +0100)] 
namespace-util: introduce namespace_enter_delegated()

Typically when entering a namespace the userns is handled last,
because we assume our process is more privileged than the userns.
However, that assumption no longer holds for user managers, which
have no privilege over initial userns and all other namespaces
are actually owned by the userns unshared first (in executor).
Hence, let's add another flavor namespace_enter_delegated() to
accommodate that use case.

8 weeks agocore/exec-credential: only pass needed bits of ExecParameters down in exec_setup_cred...
Mike Yuan [Sun, 14 Dec 2025 07:56:35 +0000 (08:56 +0100)] 
core/exec-credential: only pass needed bits of ExecParameters down in exec_setup_credentials()

No functional change, preparation for credential reloading support,
where we'd operate on Unit rather than ExecParameters.

8 weeks agocore/exec-credential: avoid duplicate call to hashmap_contains()
Mike Yuan [Sun, 18 Jan 2026 17:32:46 +0000 (18:32 +0100)] 
core/exec-credential: avoid duplicate call to hashmap_contains()

8 weeks agocore/exec-credential: stop removing empty credentials dir
Mike Yuan [Sat, 13 Dec 2025 16:37:26 +0000 (17:37 +0100)] 
core/exec-credential: stop removing empty credentials dir

Starting from cfbf7538d87023840c5574fa5b0452e5b0f42149 we'd always
install the credentials dir regardless of whether it's empty,
with the correct permissions. Hence the problem stated in the comment
should no longer be a concern. Moreover, this ensures later in
setup_namespace() the mountpoint would be in-place. This is important
for credential reloading as it saves the trouble of remounting
the upper tmpfs as rw again and create the mountpoint.

8 weeks agocore/exec-credential: treat credentials dir as populated if it's mounted
Mike Yuan [Sat, 13 Dec 2025 17:11:07 +0000 (18:11 +0100)] 
core/exec-credential: treat credentials dir as populated if it's mounted

We should only fall back to the dir_is_empty() check if
it's a plain dir, where we can't reasonably differentiate
populated yet empty vs not set up. Otherwise let's stick
to the existing mount if we're told to reuse it.

Yes, this is a minor compat break, but with the to-be-introduced
credential reloading support it should fulfill the goal of
keeping the passed set of credentials stable better, while
still allowing things to be refreshed when requested.

8 weeks agosd-daemon: escape special characters in notification logging text
Mike Yuan [Tue, 10 Feb 2026 14:58:06 +0000 (15:58 +0100)] 
sd-daemon: escape special characters in notification logging text

Follow-up for 21eb636aaad28707bd371bdfd721dea66277e1f5

Our sd_notify() protocol uses newline as separator, which
is not suitable for direct logging.

8 weeks agoshared-forward: sort definitions
Mike Yuan [Tue, 10 Feb 2026 20:53:02 +0000 (21:53 +0100)] 
shared-forward: sort definitions

8 weeks agobootctl: decouple "list", "unlink", "cleanup"
Lennart Poettering [Mon, 9 Feb 2026 13:20:27 +0000 (14:20 +0100)] 
bootctl: decouple "list", "unlink", "cleanup"

These operations to quite different things, they just share 2 common
funcs. Let's split them out into separate files.

This also splits up verb_list() into separate calls for the three
operations. This actually fixes issues, as for status/list we want
"unpriv" ESP discovery logic, but for the other two we really should
have privileged discovery logic.

This is preparation for adding "bootctl link" later, but this makes
sense either way, I am sure.

8 weeks agosysupdated: Factor out a common check about job types
Philip Withnall [Mon, 19 Jan 2026 17:15:33 +0000 (17:15 +0000)] 
sysupdated: Factor out a common check about job types

This introduces no functional changes.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
8 weeks agoTwo mkosi fixes (#40625)
Luca Boccassi [Tue, 10 Feb 2026 17:07:11 +0000 (17:07 +0000)] 
Two mkosi fixes (#40625)

8 weeks agomkosi: Grow the root partition on boot 40625/head
Daan De Meyer [Tue, 10 Feb 2026 15:32:05 +0000 (16:32 +0100)] 
mkosi: Grow the root partition on boot

Let's make sure the root partition takes up all the allocated space
on boot.

8 weeks agomkosi: Move generic disk partition before root partition
Daan De Meyer [Tue, 10 Feb 2026 15:31:22 +0000 (16:31 +0100)] 
mkosi: Move generic disk partition before root partition

Otherwise we can't grow the root partition.

8 weeks agoFix order of class/type in resolve man page
Christopher Head [Tue, 10 Feb 2026 01:22:12 +0000 (17:22 -0800)] 
Fix order of class/type in resolve man page

For each RR `ResolveRecord` returns, it returns the class before the
type, not after.

8 weeks agosysupdate: Split update into acquire and install verbs (#40236)
Luca Boccassi [Tue, 10 Feb 2026 13:11:52 +0000 (13:11 +0000)] 
sysupdate: Split update into acquire and install verbs (#40236)

Using roughly the approach described in
https://gitlab.gnome.org/GNOME/gnome-software/-/merge_requests/2004#note_2145880.
Basically, copying in-progress downloads to a file/partition with a
predictable prefix, and then moving to a predictable ‘pending’ prefix
when ready to install.

Helps: https://github.com/systemd/systemd/issues/34814

2 months agobootctl: install tweaks (#40622)
Luca Boccassi [Tue, 10 Feb 2026 13:04:48 +0000 (13:04 +0000)] 
bootctl: install tweaks (#40622)

2 months agorepart: Discard only once
Kai Lüke [Thu, 5 Feb 2026 17:51:07 +0000 (18:51 +0100)] 
repart: Discard only once

The indirect discard in mkfs.btrfs on the loop device mapped to the
region on disk can hang and fail the first-boot creation of the rootfs.
Since there already is a discard done we anyway don't need to do it
twice. This might help for most cases to avoid the failure in
mkfs.btrfs.
Keep track if the direct discard worked and then skip the mkfs.btrfs
discard if it did. This still leaves the case where mkfs.btrfs can hang
when the direct discard couldn't succeed and mkfs.btrfs tries again but
since the conditions are rather the same it might be that this case is
not easy to trigger. If the problem still shows up and the kernel won't
be fixed soon we can still disable the mkfs discard for at least btrfs.

2 months agoupdate TODO
Lennart Poettering [Tue, 10 Feb 2026 11:39:13 +0000 (12:39 +0100)] 
update TODO

2 months agobootctl: rearrange if branches in vl_method_install() 40622/head
Lennart Poettering [Tue, 10 Feb 2026 10:47:33 +0000 (11:47 +0100)] 
bootctl: rearrange if branches in vl_method_install()

2 months agobootctl: toughen fd validation in Install() handler
Lennart Poettering [Tue, 10 Feb 2026 10:46:58 +0000 (11:46 +0100)] 
bootctl: toughen fd validation in Install() handler

Let's also check the fd flags. Just in case.

2 months agobootctl: fix varlink IDL for rootDirectory field
Lennart Poettering [Tue, 10 Feb 2026 10:48:25 +0000 (11:48 +0100)] 
bootctl: fix varlink IDL for rootDirectory field

2 months agodiscover-image: restore compatibility with C9S and overlayfs directories (#40616)
Zbigniew Jędrzejewski-Szmek [Tue, 10 Feb 2026 06:56:48 +0000 (07:56 +0100)] 
discover-image: restore compatibility with C9S and overlayfs directories (#40616)

5817c73391b5f3599c50df2c0873b26ea426f848 broke compatibility with CentOS
9 and overlayfs directories, the following fails with -EOPTNOTSUPP:

mount -t overlay overlay -o lowerdir=/tmp/app1:/tmp/rootdir /tmp/overlay
portablectl attach --copy=symlink --now --runtime /tmp/overlay app1

name_to_handle_at() fails both with and without AT_HANDLE_MNT_ID_UNIQUE.

Restore the fallback to path_get_mnt_id_at() that was removed. Fixes
TEST-29-PORTABLE.directory

Follow-up for 5817c73391b5f3599c50df2c0873b26ea426f848

2 months agocatalog: fix grammar
Zbigniew Jędrzejewski-Szmek [Mon, 9 Feb 2026 14:30:03 +0000 (15:30 +0100)] 
catalog: fix grammar

2 months agomkosi: isc-dhcp-server was dropped from debian testing/unstable 40616/head
Luca Boccassi [Mon, 9 Feb 2026 20:03:38 +0000 (20:03 +0000)] 
mkosi: isc-dhcp-server was dropped from debian testing/unstable

2 months agodiscover-image: restore compatibility with C9S and overlayfs directories
Luca Boccassi [Mon, 9 Feb 2026 19:19:27 +0000 (19:19 +0000)] 
discover-image: restore compatibility with C9S and overlayfs directories

5817c73391b5f3599c50df2c0873b26ea426f848 broke compatibility with
CentOS 9 and overlayfs directories, the following fails with -EOPTNOTSUPP:

mount -t overlay overlay -o lowerdir=/tmp/app1:/tmp/rootdir /tmp/overlay
portablectl attach --copy=symlink --now --runtime /tmp/overlay app1

name_to_handle_at() fails both with and without AT_HANDLE_MNT_ID_UNIQUE.

Restore the fallback to path_get_mnt_id_at() that was removed.
Fixes TEST-29-PORTABLE.directory

Follow-up for 5817c73391b5f3599c50df2c0873b26ea426f848