]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
3 months agoNEWS: Add note about logind's Can* return values 40400/head
Adrian Vovk [Tue, 24 Feb 2026 01:02:03 +0000 (20:02 -0500)] 
NEWS: Add note about logind's Can* return values

We've changed them to return additional values, which may be a breaking
change for desktop environments. In practice, it doesn't seem to be a
major issue. However, let's make sure to document the changes in the
NEWS anyway!

3 months agologin1: Emit NCurrentInhibitors changed events
Adrian Vovk [Tue, 20 Jan 2026 00:26:30 +0000 (19:26 -0500)] 
login1: Emit NCurrentInhibitors changed events

Currently, there's no way for a desktop environment to detect when a
systemd inhibitor has been added or removed. This means that a desktop
environment that wishes to show current inhibitors to the user will be
either forced to poll systemd or just use stale data.

Now, the desktop can listen for changed events on NCurrentInhibitors and
call GetInhibitors() in response to that.

3 months agologin1: Add "inhibited" state to Can* methods
Adrian Vovk [Mon, 19 Jan 2026 23:15:53 +0000 (18:15 -0500)] 
login1: Add "inhibited" state to Can* methods

Desktops cannot currently tell the difference between a power action
being set to challenge permanently (i.e. because the sysadmin wanted to
restrict the given user) and a power action being set to challenge
because it's temporarily inhibited.

Thus, a desktop might take an action that is valid in the first case but
not the second case. For instance: GNOME hides all of its automatic
suspend settings from the UI whenever a sleep inhibitor is active.

This now returns a new state: "inhibited". It communicates to the
desktop that the action is available normally, but at the moment the
desktop isn't allowed to perform the action due to an inhibitor.

Related: https://github.com/systemd/systemd/issues/37311

3 months agomanager: add needs-stop/needs-start (#40709)
Zbigniew Jędrzejewski-Szmek [Mon, 23 Feb 2026 23:36:06 +0000 (00:36 +0100)] 
manager: add needs-stop/needs-start (#40709)

Intend to use these in the deb packaging scriptlets

Fixes: #19755
3 months agomkosi: update debian commit reference to 89a825b80ee85e58b530cd95438988a6fb3531a3
Luca Boccassi [Mon, 23 Feb 2026 20:49:26 +0000 (20:49 +0000)] 
mkosi: update debian commit reference to 89a825b80ee85e58b530cd95438988a6fb3531a3

89a825b80e Install new files for upstream build
38b1a75eaa systemd.postinst: update journal catalog after reexecing managers
9420ffa0dd Install new files for upstream build
cb5fdf4df0 Install sd-report from new path
2501efe312 homed: drop dependency satisfied since bookworm/noble
424262b674 d/control: add TODO
9aaa01c99d d/libsystemd-shared.preinst: refuse to upgrade without unified cgroupv2 hierarchy
7d0ac8a4b8 Install new files for upstream build
7e55d41841 Do not install legacy.conf in upstream builds
190387958e d/e/checkout-upstream: try to install build deps with sudo in case it fails
2a4aa9f426 Disable installing runlevel targets for upstream build
e02600f2d9 Install new files for upstream build
0f1a56cf10 Update changelog for 259.1-1 release
e463300b1a d/e/checkout-upstream: try to install build deps again after switching to CI branch
b3f72821e5 Install ask-password polkit policy file
8219d561ae Restrict the tpm2-generator manpage to arches where it is built
30a0f27283 systemd.postinst: reexec system manager before user instances
1fc9ea2790 systemd.postinst: reexec before restarting any service
d9991aeb22 d/control: use libarchive13t64 | libarchive13 for bookworm/jammy
b750346711 d/control: make systemd-container Depends: libarchive13t64

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

3 months agosd-device,udev: several fixlets and cleanups for managing tags (#40786)
Luca Boccassi [Mon, 23 Feb 2026 21:53:28 +0000 (21:53 +0000)] 
sd-device,udev: several fixlets and cleanups for managing tags (#40786)

3 months agosysupdated: Split Update() into Acquire() and Install() D-Bus methods (#40628)
Lennart Poettering [Mon, 23 Feb 2026 21:08:37 +0000 (22:08 +0100)] 
sysupdated: Split Update() into Acquire() and Install() D-Bus methods (#40628)

These mirror the `sysupdate acquire` and `sysupdate install` verbs,
which are themselves a split of `sysupdate update` into downloading and
installing stages.

I have dropped the existing `Update()` method in the final commit, as
per the suggestion on
https://gitlab.gnome.org/GNOME/gnome-software/-/merge_requests/2004#note_2145880.
If the D-Bus API for `sysupdated` is considered stable now, though, I
can drop that commit.

CC @AdrianVovk

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

3 months agoSeveral follow-ups for JournalAccess varlink interface (#40794)
Daan De Meyer [Mon, 23 Feb 2026 19:17:31 +0000 (20:17 +0100)] 
Several follow-ups for JournalAccess varlink interface (#40794)

3 months agosysupdated: Drop the Update() D-Bus method 40628/head
Philip Withnall [Mon, 19 Jan 2026 18:33:27 +0000 (18:33 +0000)] 
sysupdated: Drop the Update() D-Bus method

Now that it’s been replaced by `Acquire()` and `Install()`, there’s no
need to expose it as a separate method. Wrappers around `sysupdated` can
still expose an ‘update’ convenience verb by calling those two methods.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: https://github.com/systemd/systemd/issues/34814

3 months agotest: Expand sysupdate test to test updatectl update
Philip Withnall [Mon, 19 Jan 2026 18:12:39 +0000 (18:12 +0000)] 
test: Expand sysupdate test to test updatectl update

This further expands the sysupdate test to run the suite a fourth time,
testing that `updatectl update` behaves the same as `sysupdate update`
and `sysupdate acquire; sysupdate update --offline`.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
3 months agoupdatectl: Expose partial/pending updates in the updatectl list output
Philip Withnall [Mon, 19 Jan 2026 17:11:18 +0000 (17:11 +0000)] 
updatectl: Expose partial/pending updates in the updatectl list output

And expand the tests to catch if any more JSON fields are added to the
sysupdated output in future without being added to `updatectl`’s parser.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: https://github.com/systemd/systemd/issues/34814

3 months agoupdatectl: Use sysupdated’s Acquire() and Install() methods
Philip Withnall [Mon, 19 Jan 2026 17:19:39 +0000 (17:19 +0000)] 
updatectl: Use sysupdated’s Acquire() and Install() methods

Rather than calling `Update()`. This should allow us to eventually drop
`Update()`.

This should just be an internal change, and should not result in any
user-visible changes to the behaviour of `updatectl update`.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: https://github.com/systemd/systemd/issues/34814

3 months agosysupdated: Add Acquire() and Install() D-Bus methods
Philip Withnall [Mon, 19 Jan 2026 17:16:54 +0000 (17:16 +0000)] 
sysupdated: Add Acquire() and Install() D-Bus methods

These mirror the `sysupdate acquire` and `sysupdate update --offline`
verbs, which are themselves a split of `sysupdate update` into
downloading and installing stages.

The existing `sysupdated` `Update()` method is kept for now, for
convenience. It might be dropped in future.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: https://github.com/systemd/systemd/issues/34814

3 months agocore: Introduce ConditionPathIsSocket= (#40791)
Mike Yuan [Mon, 23 Feb 2026 16:07:28 +0000 (17:07 +0100)] 
core: Introduce ConditionPathIsSocket= (#40791)

3 months agorepart: Use new mkfs.xfs support for populating from directories
DaanDeMeyer [Sat, 27 Dec 2025 20:07:13 +0000 (21:07 +0100)] 
repart: Use new mkfs.xfs support for populating from directories

xfsprogs 6.17.0 added support for populating xfs filesystems from
directories. As this supports extended attributes unlike our current
hack with protofiles. Let's make use of the new feature in mkfs-util.c

As there's no clean way to do feature detection on the mkfs.xfs binary,
we drop support for the old hack with protofiles that we had before.

3 months agosystemctl: allow --marker with start/stop too 40709/head
Luca Boccassi [Thu, 19 Feb 2026 16:32:49 +0000 (16:32 +0000)] 
systemctl: allow --marker with start/stop too

3 months agomanager: add 'needs-stop/needs-start' markers
Luca Boccassi [Sat, 27 Dec 2025 11:02:30 +0000 (11:02 +0000)] 
manager: add 'needs-stop/needs-start' markers

Useful for packaging scripts, when units are removed.
When multiple markers are assigned without +/-, the last one wins.
When using +/-, the job merging logic is followed to the extent possible.

3 months agocore: Introduce ConditionPathIsSocket= 40791/head
Daan De Meyer [Sat, 21 Feb 2026 16:52:49 +0000 (17:52 +0100)] 
core: Introduce ConditionPathIsSocket=

3 months agotest-condition: Migrate to new assertion macros
Daan De Meyer [Mon, 23 Feb 2026 11:27:56 +0000 (12:27 +0100)] 
test-condition: Migrate to new assertion macros

3 months agomountfsd: Try to polkit auth when the verity key is not available
Daan De Meyer [Sat, 21 Feb 2026 21:10:56 +0000 (22:10 +0100)] 
mountfsd: Try to polkit auth when the verity key is not available

If we include a verity signature but the corresponding key is not in
the kernel keyring or userspace, try to get polkit auth similar to how
we do the same if the image doesn't pass the policy.

3 months agoTranslations update from Fedora Weblate (#40789)
Luca Boccassi [Mon, 23 Feb 2026 10:54:21 +0000 (10:54 +0000)] 
Translations update from Fedora Weblate (#40789)

Translations update from [Fedora
Weblate](https://translate.fedoraproject.org) for
[systemd/main](https://translate.fedoraproject.org/projects/systemd/main/).

Current translation status:

![Weblate translation
status](https://translate.fedoraproject.org/widget/systemd/main/horizontal-auto.svg)

3 months agojournalctl-vl-server: allow querying units for specific uid in system scope 40794/head
Mike Yuan [Mon, 23 Feb 2026 07:04:17 +0000 (08:04 +0100)] 
journalctl-vl-server: allow querying units for specific uid in system scope

This also moves journal_add_unit_matches() back to
journalctl-filter.[ch], as I see more appropriate.

3 months agojournalctl-vl-server: do not output in reverse order
Mike Yuan [Mon, 23 Feb 2026 08:09:02 +0000 (09:09 +0100)] 
journalctl-vl-server: do not output in reverse order

While at it, do not log from varlink method callback,
as per our usual style.

3 months agojournalctl-vl-server: 'entry' is never NULL
Mike Yuan [Mon, 23 Feb 2026 08:01:16 +0000 (09:01 +0100)] 
journalctl-vl-server: 'entry' is never NULL

3 months agojournalctl-vl-server: use SD_JSON_BUILD_PAIR_VARIANT
Mike Yuan [Mon, 23 Feb 2026 08:18:53 +0000 (09:18 +0100)] 
journalctl-vl-server: use SD_JSON_BUILD_PAIR_VARIANT

3 months agojournalctl-vl-server: return proper error if unit pattern has no match
Mike Yuan [Mon, 23 Feb 2026 07:54:12 +0000 (08:54 +0100)] 
journalctl-vl-server: return proper error if unit pattern has no match

Note that SD_VARLINK_ERROR_INVALID_PARAMETERS requires
the invalid param name to be specified, hence we would
otherwise have reported an invalid INVALID_PARAMETERS
error ;)

3 months agologs-show: clean up journal_entry_to_json() a bit
Mike Yuan [Mon, 23 Feb 2026 06:48:43 +0000 (07:48 +0100)] 
logs-show: clean up journal_entry_to_json() a bit

* Make sure ret is initialized on success return
* Drop unneeded 'object' variable
* No need to ref/unref json objects when constructing
  intermediary array

3 months agounits/user/systemd-journalctl.socket: drop MaxConnectionsPerSource=
Mike Yuan [Mon, 23 Feb 2026 08:30:17 +0000 (09:30 +0100)] 
units/user/systemd-journalctl.socket: drop MaxConnectionsPerSource=

For AF_UNIX sockets connection sources are accounted for
based on UID, hence in user scope this effectively
limits total number of connections, which is not really
desirable.

3 months agounits/systemd-journalctl@.service: run with DynamicUser=yes
Mike Yuan [Mon, 23 Feb 2026 06:21:04 +0000 (07:21 +0100)] 
units/systemd-journalctl@.service: run with DynamicUser=yes

Follow-up for a109189fabe6a4c307528459f891c2d545361622

This follows the existing practice for
systemd-journal-{upload,gatewayd}.service,
as I think allocating a full-blown user
specifically for this purpose is an overkill.
And with DynamicUser=yes we can also take
advantage of implied sandboxing.

3 months agounits/systemd-journalctl@.service: require mount for /var/log/journal/
Mike Yuan [Mon, 23 Feb 2026 05:58:44 +0000 (06:58 +0100)] 
units/systemd-journalctl@.service: require mount for /var/log/journal/

3 months agounits/systemd-pcrlock.socket: drop [Install] section
Mike Yuan [Mon, 23 Feb 2026 08:20:54 +0000 (09:20 +0100)] 
units/systemd-pcrlock.socket: drop [Install] section

The socket is statically enabled.

3 months agoTODO: drop completed entry
Mike Yuan [Mon, 23 Feb 2026 09:21:23 +0000 (10:21 +0100)] 
TODO: drop completed entry

3 months agopo: Translated using Weblate (German) 40789/head
Ettore Atalan [Sun, 22 Feb 2026 23:58:46 +0000 (23:58 +0000)] 
po: Translated using Weblate (German)

Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: Ettore Atalan <atalanttore@googlemail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/de/
Translation: systemd/main

3 months agopo: Translated using Weblate (Hebrew)
Yaron Shahrabani [Sun, 22 Feb 2026 23:58:46 +0000 (23:58 +0000)] 
po: Translated using Weblate (Hebrew)

Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/he/
Translation: systemd/main

3 months agoman/systemd.mstack: use <varname> instead of <variable>
Antonio Alvarez Feijoo [Mon, 23 Feb 2026 08:38:09 +0000 (09:38 +0100)] 
man/systemd.mstack: use <varname> instead of <variable>

Otherwise, `<variable>location</variable>` is rendered:

```
[2365/2925] Generating man/systemd.mstack.7 with a custom command
Element variable in namespace '' encountered in para, but no template matches.
```

3 months agoudev/dump: also dump current tags 40786/head
Yu Watanabe [Sun, 22 Feb 2026 19:11:30 +0000 (04:11 +0900)] 
udev/dump: also dump current tags

The "TAG" token in udev rules handles the current tags.
Let's also show the current tags.

3 months agosd-device: do not try to remove previous tag indexes
Yu Watanabe [Sun, 22 Feb 2026 20:38:03 +0000 (05:38 +0900)] 
sd-device: do not try to remove previous tag indexes

The removed code in device_tag_index() in fact does nothing,
as sd_device.all_tags is never cleared. Moreover, not only the code
is meaningless, but it is theoretically/logically wrong, as the symlinks
in /run/udev/tags/ should be 'sticky', hence we should even not try to
remove them.

3 months agosd-device: do not clear sd_device.all_tags even on TAG="hoge"
Yu Watanabe [Sun, 22 Feb 2026 19:58:43 +0000 (04:58 +0900)] 
sd-device: do not clear sd_device.all_tags even on TAG="hoge"

The current tag concept has been introduced by
e77b146f825ef1bb63c297cc713962b94422d2c6 (v247) to make symlinks in
/run/udev/tags/ are 'sticky'.

However, when TAG= (rather than TAG+=) is specified, then the tags
assigned in the previous events were also cleared.
This fixes the issue and now symlinks in /run/udev/tags/ are really
'sticky'.

Fortunately, TAG= is mostly unused. So, the issue should not affect
and the fix should not change anything on almost all systems.

3 months agosd-device: move copy_all_tags() from udev
Yu Watanabe [Sun, 22 Feb 2026 20:26:46 +0000 (05:26 +0900)] 
sd-device: move copy_all_tags() from udev

No functional change, preparation for the next commit.

3 months agosd-device: shorten code a bit
Yu Watanabe [Sun, 22 Feb 2026 19:40:54 +0000 (04:40 +0900)] 
sd-device: shorten code a bit

3 months agojournalctl: add new varlink GetEntries endpoint (#40650)
Lennart Poettering [Sun, 22 Feb 2026 14:14:09 +0000 (15:14 +0100)] 
journalctl: add new varlink GetEntries endpoint (#40650)

journalctl: add new varlink read service to get entries

We already have some varlink support for the journal to perform
some actions like `Rotate`. It would be nice to be able to query
the journal via varlink too so this commit adds a new varlinkctl
based journal service that exposes a single GetEntries() call
to retrieve journal entries. Basic filtering is supported and
we can expand the API as needed.

This is a separate `io.systemd.JournalControl` [1] service from the
existing `io.systemd.Journald` to decouple read and write (thanks
to Lennart for suggesting this).

This also extracts some shared helper so that we do not duplicate
code when generating the json or when adding the filters.

[1] The name mirrors the bootctl->io.systemd.BootControl naming.

3 months agocore: validate ref_uid before checking in AttachProcesses method
Luca Boccassi [Sat, 21 Feb 2026 11:27:37 +0000 (11:27 +0000)] 
core: validate ref_uid before checking in AttachProcesses method

ref_uid is initialized to invalid, and is only set in some
circumstances. The AttachProcesses will attempt to check it,
and assert that it is valid. Check beforehand.

Reported as YWH-PGM9780-89

Follow-up for 59857b672ca6a3a9253ef9c888172c5e68243160

3 months agoTODO: dropped todo about journalctl varlink support 40650/head
Michael Vogt [Fri, 20 Feb 2026 09:00:54 +0000 (10:00 +0100)] 
TODO: dropped todo about journalctl varlink support

3 months agojournalctl: add new varlink read service to get entries
Michael Vogt [Tue, 10 Feb 2026 15:27:58 +0000 (16:27 +0100)] 
journalctl: add new varlink read service to get entries

We already have some varlink support for the journal to perform
some actions like `Rotate`. It would be nice to be able to query
the journal via varlink too so this commit adds a new varlinkctl
based journal service that exposes a single GetEntries() call
to retrieve journal entries. Basic filtering is supported and
we can expand the API as needed.

This is a separate `io.systemd.JournalControl` [1] service from the
existing `io.systemd.Journald` to decouple read and write (thanks
to Lennart for suggesting this).

This also extracts some shared helper so that we do not duplicate
code when generating the json or when adding the filters.

[1] The name mirrors the bootctl->io.systemd.BootControl naming.

3 months agoparse-argument: make parse_tristate_argument() do something useful (#40652)
Mike Yuan [Sat, 21 Feb 2026 02:10:00 +0000 (03:10 +0100)] 
parse-argument: make parse_tristate_argument() do something useful (#40652)

Alternative to #37751

3 months agovmspawn: clean up OVMF secure boot support check a bit 40652/head
Mike Yuan [Thu, 12 Feb 2026 01:58:35 +0000 (02:58 +0100)] 
vmspawn: clean up OVMF secure boot support check a bit

find_ovmf_config() would do filtering based on arg_secure_boot
already, hence the mismatch can only occur if we're using
user-specified firmware. So be explicit about this in log.

3 months agovmspawn: use parse_tristate_argument_with_auto()
Mike Yuan [Wed, 11 Feb 2026 22:32:44 +0000 (23:32 +0100)] 
vmspawn: use parse_tristate_argument_with_auto()

3 months agoparse-argument: make parse_tristate_argument() do something useful
Mike Yuan [Wed, 11 Feb 2026 22:15:24 +0000 (23:15 +0100)] 
parse-argument: make parse_tristate_argument() do something useful

I expressed the issue I have with parse_tristate_argument()
in #37751: it doesn't add any value to direct use of parse_tristate();
on the contrary, it doesn't support means to reset the arg to "auto"/-1 state.
The mere reason it existed is that we need a int type ret param.

Since the previous attempt to address this mess failed, let's
try to make the function more useful by making it accept "auto".
I figure this is useful on its own.

As requested in
https://github.com/systemd/systemd/pull/40652#discussion_r2831833996,
the function name is suffixed with _with_auto() to establish
that "auto" is handled internally.

3 months agoAdd BNCF NewBook 11 ACCEL_MOUNT_MATRIX to 60-sensor.hwdb
Ryan Zeigler [Fri, 20 Feb 2026 17:26:38 +0000 (12:26 -0500)] 
Add BNCF NewBook 11 ACCEL_MOUNT_MATRIX  to 60-sensor.hwdb

Corrects DE autorotation

Device description: https://www.bncfai.com/product/773/

3 months agoman/report: fix typo
Yu Watanabe [Fri, 20 Feb 2026 18:00:49 +0000 (03:00 +0900)] 
man/report: fix typo

Follow-up for e83cbc9372e66abacd9a8ecf45e1095010242127.

3 months agomachine: switch CleanPool to SD_VARLINK_REQUIRES_MORE
Michael Vogt [Fri, 20 Feb 2026 10:20:02 +0000 (11:20 +0100)] 
machine: switch CleanPool to SD_VARLINK_REQUIRES_MORE

The CleanPool requires --more to be set and checks that in
`vl_method_clean_pool`. By switching to SD_VARLINK_REQUIRES_MORE
this will automatically be handled and is more clear to
the varlink users.

Based on the comment from Lennart in
https://github.com/systemd/systemd/pull/40650#discussion_r2832378002
and the work done by Mike in 09388a6b9e4 (thanks!).

3 months agorepart: Report correct current disk size and error (#39813)
Luca Boccassi [Fri, 20 Feb 2026 17:00:28 +0000 (17:00 +0000)] 
repart: Report correct current disk size and error (#39813)

3 months agomstack: parse --mkdir option
Antonio Alvarez Feijoo [Fri, 20 Feb 2026 13:06:35 +0000 (14:06 +0100)] 
mstack: parse --mkdir option

```
systemd-mstack: unrecognized option '--mkdir'
```

Follow-up for 8187cd18d61c9459f2fdb7591c9eb7c73afea24d

3 months agopo: Translated using Weblate (Greek)
Jim Spentzos [Fri, 20 Feb 2026 12:58:25 +0000 (12:58 +0000)] 
po: Translated using Weblate (Greek)

Currently translated at 36.7% (97 of 264 strings)

Co-authored-by: Jim Spentzos <jimspentzos2000@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/el/
Translation: systemd/main

3 months agorepart-varlink: Consider only managed parititions for size errors 39813/head
Julian Sparber [Thu, 12 Feb 2026 16:32:32 +0000 (17:32 +0100)] 
repart-varlink: Consider only managed parititions for size errors

Report DiskTooSmall only if partitions managed by repart don't fit the
disk. Because if the disk is already full with forigin partitions we
would always report DiskTooSmall instead of InsufficentFreeSpace.

3 months agorepart-varlink: Calculate the size of foreign partitions
Julian Sparber [Thu, 12 Feb 2026 16:28:43 +0000 (17:28 +0100)] 
repart-varlink: Calculate the size of foreign partitions

To decide whether the disk is to small or has insufficient free space we
need to know how much of the disk is filled with foreign partitions.
The calculated size is used in a future commit.

3 months agorepart: Sum partitions size to get current disk size instead of using total size
Julian Sparber [Wed, 19 Nov 2025 17:30:04 +0000 (18:30 +0100)] 
repart: Sum partitions size to get current disk size instead of using total size

When working on disks the disk may have a total size bigger then the
actual allocated size, therefore sum up the current partitions to
calculate the current disk size instead of asuming that the entire disk
is currently allocated.

3 months agoSeveral fixlets for issues found by Coverity (#40765)
Yu Watanabe [Fri, 20 Feb 2026 10:13:37 +0000 (19:13 +0900)] 
Several fixlets for issues found by Coverity (#40765)

3 months agosystemd-report: show some love (#40735)
Lennart Poettering [Fri, 20 Feb 2026 09:21:31 +0000 (10:21 +0100)] 
systemd-report: show some love (#40735)

3 months agoVarious improvements (#40759)
Yu Watanabe [Fri, 20 Feb 2026 07:31:38 +0000 (16:31 +0900)] 
Various improvements (#40759)

3 months agoupdate TODO 40735/head
Lennart Poettering [Wed, 18 Feb 2026 13:10:15 +0000 (14:10 +0100)] 
update TODO

3 months agoreport: install systemd-report binary to /usr/lib/systemd/ for now
Lennart Poettering [Wed, 18 Feb 2026 15:04:28 +0000 (16:04 +0100)] 
report: install systemd-report binary to /usr/lib/systemd/ for now

The tool should not be considered stable, and those things we usually
place in /usr/lib/systemd, and not in $PATH.

We can move that to $PATH once we are confident it's gonna stay the way
it is.

3 months agoci: add proper CI test for systemd-report
Lennart Poettering [Wed, 18 Feb 2026 14:16:14 +0000 (15:16 +0100)] 
ci: add proper CI test for systemd-report

3 months agoreport: use JSON-SEQ when outputing a series of json objects
Lennart Poettering [Wed, 18 Feb 2026 14:48:46 +0000 (15:48 +0100)] 
report: use JSON-SEQ when outputing a series of json objects

We do this in our other tools that output a large number of JSON objects
in a potentially streamable way, hence do so here too.

3 months agoreport: fix log level of connection log messages
Lennart Poettering [Wed, 18 Feb 2026 14:35:13 +0000 (15:35 +0100)] 
report: fix log level of connection log messages

Let's also rename the "metric_prefix" to "name", because it's actually
the servce name, and by giving it this generic name we can use it
reasonably in log messages.

3 months agoreport: add --no-legend
Lennart Poettering [Wed, 18 Feb 2026 14:34:44 +0000 (15:34 +0100)] 
report: add --no-legend

Like most of our other tools, add a --no-legend switch.

3 months agoreport: implement filtering for metrics
Lennart Poettering [Wed, 18 Feb 2026 13:53:08 +0000 (14:53 +0100)] 
report: implement filtering for metrics

3 months agoreport: tighten rules on metrics names
Lennart Poettering [Wed, 18 Feb 2026 13:43:07 +0000 (14:43 +0100)] 
report: tighten rules on metrics names

Let's stay close to Varlink's naming rules and insist that metrics
prefixes must be valid varlink interface names, and suffixes are valid
varlink field names.

The former rule is clear: because a metric <x>.<y> can only be provided
by a varlink service <x>, it is obvious we should validate them the
same way. Validating the suffix via varlink field rules is not that
obvious, but I think it makes sense to stay close to Varlink naming
rules if we already started out at one place.

3 months agoreport: we don't use inline in .c files, the compiler can figure this out better...
Lennart Poettering [Wed, 18 Feb 2026 13:13:47 +0000 (14:13 +0100)] 
report: we don't use inline in .c files, the compiler can figure this out better on its own

3 months agoreport: add -j shortcut
Lennart Poettering [Wed, 18 Feb 2026 13:07:45 +0000 (14:07 +0100)] 
report: add -j shortcut

json output is going to be used very frequently, hence provide a
shortcut for it, like many our tools do it.

3 months agoreport: also dump metrics in tabular output
Lennart Poettering [Wed, 18 Feb 2026 13:08:42 +0000 (14:08 +0100)] 
report: also dump metrics in tabular output

JSON output is great, but let's show the metrics by default in a more
human readable fashion.

3 months agoreport: add 'list-sources' verb for enumerating metrics sources
Lennart Poettering [Wed, 18 Feb 2026 10:37:58 +0000 (11:37 +0100)] 
report: add 'list-sources' verb for enumerating metrics sources

3 months agoreport: split out service enumeration logic
Lennart Poettering [Wed, 18 Feb 2026 10:47:31 +0000 (11:47 +0100)] 
report: split out service enumeration logic

We want to reuse it later to list all services, hence make it generic.

(Also, allow symlinked services too)

3 months agoreport: switch to "verbs" command line interface, and add 'describe-metrics'
Lennart Poettering [Wed, 18 Feb 2026 10:19:35 +0000 (11:19 +0100)] 
report: switch to "verbs" command line interface, and add 'describe-metrics'

Let's prepare for a future where the "systemd-report" tool can do more
than enumerate metrics: let's introduce our usual "verbs" style
interface.

Let's also add a second command right-away: "describe-metrics" shows the
description of the metrics.

3 months agomstack: coding style cleanups 40765/head
Yu Watanabe [Fri, 20 Feb 2026 07:22:00 +0000 (16:22 +0900)] 
mstack: coding style cleanups

3 months agomstack: fix resource leak on failure path
Yu Watanabe [Fri, 20 Feb 2026 07:18:07 +0000 (16:18 +0900)] 
mstack: fix resource leak on failure path

This makes the mstack_load() requires 'ret', as clearing the loaded
mstack without use is meaningless. All callers already pass non-NULL for
the argument.

Follow-up for 8343032a86b62f62780de85a696ab8f9d2632244.
Fixes CID#1645105.

3 months agoreport: adjust indentation to our usual style
Lennart Poettering [Wed, 18 Feb 2026 10:38:11 +0000 (11:38 +0100)] 
report: adjust indentation to our usual style

3 months agoreport: add comment explaining that metric_startswith_prefix() does a true prefix...
Lennart Poettering [Thu, 19 Feb 2026 07:47:51 +0000 (08:47 +0100)] 
report: add comment explaining that metric_startswith_prefix() does a true prefix match

3 months agometrics: show metrics 'keys' before 'values'
Lennart Poettering [Wed, 18 Feb 2026 10:38:40 +0000 (11:38 +0100)] 
metrics: show metrics 'keys' before 'values'

In a way, metrics are a key-value concept, where the key is a triplet of
metrics family name, object name, and "fields". Let's put them together
in the varlink call, and put the value last, separately from that.

Also, update docs a bit, i.e be explicit about the metrics *family* name
everyhwere.

3 months agoformat-table: add a new JSON cell type
Lennart Poettering [Wed, 18 Feb 2026 12:45:52 +0000 (13:45 +0100)] 
format-table: add a new JSON cell type

This formats the specified json variant as a string, and displays it in
a cell.

3 months agojson: add json_variant_compare() helper for comparint two json variants by order
Lennart Poettering [Wed, 18 Feb 2026 12:45:22 +0000 (13:45 +0100)] 
json: add json_variant_compare() helper for comparint two json variants by order

3 months agoimport: fix NULL pointer dereference
Yu Watanabe [Fri, 20 Feb 2026 07:11:50 +0000 (16:11 +0900)] 
import: fix NULL pointer dereference

Follow-up for a9f6ba04969d6eb2e629e30299fab7538ef42a57.
Fixes CID#1645106.

3 months agohwdb: fix typos
David Santamaría Rogado [Thu, 19 Feb 2026 20:48:38 +0000 (21:48 +0100)] 
hwdb: fix typos

3 months agouid-range: Handle same userns in uid_range_load_userns_by_fd() 40759/head
Daan De Meyer [Wed, 18 Feb 2026 18:30:12 +0000 (19:30 +0100)] 
uid-range: Handle same userns in uid_range_load_userns_by_fd()

If we're asked to look up our own user namespace mapping, don't go
via fd as trying to setns() to our own user namespace in
userns_enter_and_pin() would fail with EPERM as the kernel doesn't
allow switching to your own userns.

3 months agouserns-restrict: Remove unused inode argument and rename function
Daan De Meyer [Tue, 17 Feb 2026 22:40:33 +0000 (23:40 +0100)] 
userns-restrict: Remove unused inode argument and rename function

3 months agotest-userns-restrict: Migrate to new assertion macros
Daan De Meyer [Mon, 9 Feb 2026 20:58:48 +0000 (21:58 +0100)] 
test-userns-restrict: Migrate to new assertion macros

We also inline the test functions so we get proper line information
in the failure coredumps.

3 months agossh-proxy: Support ssh machine/xxx for nspawn containers
Daan De Meyer [Thu, 19 Feb 2026 09:54:07 +0000 (10:54 +0100)] 
ssh-proxy: Support ssh machine/xxx for nspawn containers

3 months agohwdb: sensor: hp use board product name as hp-wmi
David Santamaría Rogado [Thu, 19 Feb 2026 17:38:13 +0000 (18:38 +0100)] 
hwdb: sensor: hp use board product name as hp-wmi

Doing it made also to include the 14t-fh000, the product name initial
units of the omnibook ultra flip 14 had, this is intended.

Order the entries by product name.

Follow up: fadb0b53f7d8d2d9e9d8dd141bc05de9116b083a.

3 months agoci: Simplify musl build setup
Daan De Meyer [Wed, 18 Feb 2026 11:46:16 +0000 (12:46 +0100)] 
ci: Simplify musl build setup

No need to setup symlink farms, we can just use the host's /usr/include
now.

3 months agomeson: Explicitly check for musl for gshadow and nss
Daan De Meyer [Wed, 18 Feb 2026 11:45:10 +0000 (12:45 +0100)] 
meson: Explicitly check for musl for gshadow and nss

This allows building with musl on glibc systems as follows:

env \
    CC=musl-gcc \
    CXX=musl-gcc \
    CFLAGS="-idirafter /usr/include" \
    CXXFLAGS="-idirafter /usr/include" \
        meson setup --auto-features=disabled -Dlibc=musl musl

3 months agorepart: return 1 from probe_sector_size_prefer_ioctl() on block device success
Nandakumar Raghavan [Thu, 19 Feb 2026 13:42:19 +0000 (13:42 +0000)] 
repart: return 1 from probe_sector_size_prefer_ioctl() on block device success

probe_sector_size() returns 1 when it successfully determines the sector size,
0 when falling back to the default. blockdev_get_sector_size() returns 0 on
success. probe_sector_size_prefer_ioctl() was passing blockdev_get_sector_size()
return value through directly, so caller is checking r > 0 to detect a
successfully probed sector size never saw it for block devices.

In context_load_partition_table(), this caused fs_secsz to stay at 4096 bytes
even on 512-byte sector block devices, making verity hash partition sizes wrong
unless --sector-size=512 was passed explicitly.

Fix by returning 1 on success from the block device path to match probe_sector_size()
convention.

3 months agoPython modernization followups (#40755)
Yu Watanabe [Thu, 19 Feb 2026 16:33:07 +0000 (01:33 +0900)] 
Python modernization followups (#40755)

3 months agoNEWS: move and extend entry for PTP device permission
Yu Watanabe [Thu, 19 Feb 2026 16:24:57 +0000 (01:24 +0900)] 
NEWS: move and extend entry for PTP device permission

Follow-up for 1e6854e112e9723be6108b83f6935ec7e04cea17.

3 months agoman: fix typo
Yu Watanabe [Thu, 19 Feb 2026 16:16:54 +0000 (01:16 +0900)] 
man: fix typo

Follow-up for 6b22ac31afcfab53dc9b51d6b5f7862e52607923.

3 months agoman: fix typo
Yu Watanabe [Thu, 19 Feb 2026 16:15:44 +0000 (01:15 +0900)] 
man: fix typo

Follow-up for eb581ff6d9556d29f1b9b57d6a40c4adefde16a6.

3 months agomstack: fix typo
Yu Watanabe [Thu, 19 Feb 2026 16:14:27 +0000 (01:14 +0900)] 
mstack: fix typo

Follow-up for 8343032a86b62f62780de85a696ab8f9d2632244.

3 months agoimport: fix typo
Yu Watanabe [Thu, 19 Feb 2026 16:12:50 +0000 (01:12 +0900)] 
import: fix typo

Follow-up for a9f6ba04969d6eb2e629e30299fab7538ef42a57.

3 months agoTODO: fix typo
Yu Watanabe [Thu, 19 Feb 2026 16:11:27 +0000 (01:11 +0900)] 
TODO: fix typo

Follow-up for 3bbada87e290f3f0c2ca17f4f10396ec037b03c9.

3 months agoimportd: add support for downloading OCI images (#39621)
Lennart Poettering [Thu, 19 Feb 2026 15:43:11 +0000 (16:43 +0100)] 
importd: add support for downloading OCI images (#39621)

This adds the ability to download OCI images via importd.

Not a fan of the OCI format tbh, in particular its security properties
are a bit sad. But I guess it exists and is very popular, hence we might
as well add support for it, even if it comes at much weaker security
properties than DDIs.

Fixes #36447

3 months agoBring Bash profile for reporting context via Operating System Commands (OSC) into...
Lennart Poettering [Thu, 19 Feb 2026 14:50:24 +0000 (15:50 +0100)] 
Bring Bash profile for reporting context via Operating System Commands (OSC) into compliance with specifications (#40696)

This script fails to comply with the spec it's designed to implement,
[UAPI.15 OSC 3008: Hierarchical Context
Signalling](https://uapi-group.org/specifications/specs/osc_context/),
and fails the correctly utilize the specs provided by
[POSIX.1-2024](https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/mindex.html)
and [man 1
bash](https://www.man7.org/linux/man-pages//man1/bash.1.html); improve
compliance.

Changes are made in small atomic commits, with more detailed
descriptions of the work done in each message.