]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
12 months agocore: Log in more scenarios about which process initiated an operation 34679/head
Daan De Meyer [Tue, 8 Oct 2024 14:28:25 +0000 (16:28 +0200)] 
core: Log in more scenarios about which process initiated an operation

Exit/Reboot/Poweroff and similar operations are invasive enough that
logging about who initiated them is very useful to debug issues.

12 months agocore: Bump log level of reexecute request to notice
Daan De Meyer [Tue, 8 Oct 2024 14:25:52 +0000 (16:25 +0200)] 
core: Bump log level of reexecute request to notice

A daemon-reload is important enough to deserve logging at notice
level.

12 months agobus-util: Log more information when connecting to a bus socket fails
Daan De Meyer [Tue, 8 Oct 2024 14:22:58 +0000 (16:22 +0200)] 
bus-util: Log more information when connecting to a bus socket fails

Let's log about which bus we're trying to connect to and what transport
we're using to do it.

13 months agoMerge pull request #34639 from DaanDeMeyer/repart-fix
Daan De Meyer [Sat, 5 Oct 2024 06:36:14 +0000 (08:36 +0200)] 
Merge pull request #34639 from DaanDeMeyer/repart-fix

Two repart fixes

13 months agochase: Fix shortcut 34639/head
Daan De Meyer [Fri, 4 Oct 2024 19:34:33 +0000 (21:34 +0200)] 
chase: Fix shortcut

We can't shortcut chaseat() if CHASE_PARENT is set.

13 months agorepart: Don't copy root directory mode from source file
Daan De Meyer [Fri, 4 Oct 2024 19:33:52 +0000 (21:33 +0200)] 
repart: Don't copy root directory mode from source file

If the source is a file, don't copy the mode and such from it to
the root directory, even if the target is /.

13 months agoMerge pull request #34608 from DaanDeMeyer/ukify
Daan De Meyer [Fri, 4 Oct 2024 11:57:16 +0000 (13:57 +0200)] 
Merge pull request #34608 from DaanDeMeyer/ukify

ukify: Rework multi-profile UKIs

13 months agoman: Use proper conjunction and remove superfluous or
Jörg Behrmann [Fri, 4 Oct 2024 11:24:32 +0000 (13:24 +0200)] 
man: Use proper conjunction and remove superfluous or

13 months agorepart: Handle empty arg_copy_source in file_is_denylisted()
Daan De Meyer [Fri, 4 Oct 2024 08:27:04 +0000 (10:27 +0200)] 
repart: Handle empty arg_copy_source in file_is_denylisted()

13 months agoman: consolidate list of active unit states into a shared table
Luca Boccassi [Thu, 3 Oct 2024 19:50:38 +0000 (20:50 +0100)] 
man: consolidate list of active unit states into a shared table

Avoids the need to maintain the same list over and over again, and
link it to the defition table in the implementation as a reminder
too

13 months agoukify: Rework multi-profile UKIs 34608/head
Daan De Meyer [Tue, 1 Oct 2024 12:30:15 +0000 (14:30 +0200)] 
ukify: Rework multi-profile UKIs

The API introduced in https://github.com/systemd/systemd/pull/34295
is less than ideal:

- It doesn't consider signing at all (ukify can't sign separately yet)
- Measurement is completely broken (all profile sections are marked to
  not be measured)
- It focuses on a very niche use case of extending existing UKIs and makes
  the more common use case of building a UKI with several profiles included
  much harder than needed.

Let's instead rework the API to focus on the primary use case of building
a UKI with multiple profiles added to it immediately. We require the profiles
to be built upfront as separate PE binaries with UKI. There's no need to sign
or measure these, they're solely vehicles for profile sections. This saves us
from having to complicate the command line and config parsing to support defining
multiple profiles.

To add the profiles when building a UKI, we introduce the new --add-profile
switch which takes a path to a PE binary describing a profile. The required
sections are read from each PE binary, measured and added as a profile.

The integration test is disabled until the new API is merged and exposed in
mkosi so that building a UKI with profiles can be left to mkosi and the integration
test will only test the switching between profiles and not the building of UKIs
with profiles.

13 months agoMerge pull request #34610 from poettering/exec-start-single-line
Luca Boccassi [Thu, 3 Oct 2024 21:46:11 +0000 (22:46 +0100)] 
Merge pull request #34610 from poettering/exec-start-single-line

Soft deprecate multiple ExecStart= command lines within a single assignment

13 months agoukify: Fix Profile config setting
Daan De Meyer [Tue, 1 Oct 2024 12:23:50 +0000 (14:23 +0200)] 
ukify: Fix Profile config setting

13 months agoukify: Introduce pe_strip_section_name()
Daan De Meyer [Tue, 1 Oct 2024 08:24:30 +0000 (10:24 +0200)] 
ukify: Introduce pe_strip_section_name()

13 months agoRevert "ukify: add new --extend= switch for importing an existing UKI's sections...
Daan De Meyer [Tue, 1 Oct 2024 08:18:09 +0000 (10:18 +0200)] 
Revert "ukify: add new --extend= switch for importing an existing UKI's sections to later extend"

This reverts commit b6570095ce889b07242d36cd05fa1d1899d0bc6c.

13 months agoRevert "ukify: introduce new --measure-base= switch"
Daan De Meyer [Tue, 1 Oct 2024 08:15:15 +0000 (10:15 +0200)] 
Revert "ukify: introduce new --measure-base= switch"

This reverts commit bc3e2c5a5774ae7b212817d04e04abccf30088ae.

13 months agoMerge pull request #34590 from poettering/file-hier-removals
Luca Boccassi [Thu, 3 Oct 2024 20:04:30 +0000 (21:04 +0100)] 
Merge pull request #34590 from poettering/file-hier-removals

man: remove some irrelevant dirs from file-hierarchy(7)

13 months agoMerge pull request #34600 from poettering/varlink-idl-add-flags-everywhere
Luca Boccassi [Thu, 3 Oct 2024 20:02:22 +0000 (21:02 +0100)] 
Merge pull request #34600 from poettering/varlink-idl-add-flags-everywhere

sd-varlink: maintain "more" flag support in the IDL structures

13 months agorepart: open target devices before UUID creation
Michael Ferrari [Thu, 3 Oct 2024 12:02:12 +0000 (14:02 +0200)] 
repart: open target devices before UUID creation

This is to ensure that the UUIDs from the CopyBlocks= devices are copied
to the corresponding new partition instead of creating a new UUID for
it. With this verity partitions can be copied, keeping their UUIDs to
ensure that they still match up with what is specified in roothash=.

13 months agohomectl: fix inverted table footer condition
Zbigniew Jędrzejewski-Szmek [Thu, 3 Oct 2024 17:06:49 +0000 (19:06 +0200)] 
homectl: fix inverted table footer condition

Fixup for 2413a0fab4fdad7eef3ce1d4b57664be5795b002.

13 months agoman/systemd-stub: reword descriptions of .dtb and .profile sections
Zbigniew Jędrzejewski-Szmek [Thu, 3 Oct 2024 10:52:56 +0000 (12:52 +0200)] 
man/systemd-stub: reword descriptions of .dtb and .profile sections

- The text was clearly edited in variuos places to e.g. allow multiple
  sections, so it first said that sections are singletons, and immediately
  after that that some section are not.
- Replace "regardless of the kernel" with "regardless of the kernel version".
  The kernel is very much involved e.g. in loading of the initrds.
- Various other small rewordings to make the text more legible.

13 months agonsresourced: Fix declaration of bpf_rdonly_cast()
Daan De Meyer [Thu, 3 Oct 2024 08:46:27 +0000 (10:46 +0200)] 
nsresourced: Fix declaration of bpf_rdonly_cast()

Fixes compilation error

"""
[780/3171] /usr/bin/clang -std=gnu11 -Wno-compare-distinct-pointer-types -fno-stack-protector -O2 -target bpf -g -c -D__aarch64__ -I. -isystem /usr/include/ -idirafter /usr/include ../src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.c -o src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.unstripped.o -I/usr/src/kernels/6.11.1-0.hs1.hs+fb.el9.aarch64
FAILED: src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.unstripped.o
/usr/bin/clang -std=gnu11 -Wno-compare-distinct-pointer-types -fno-stack-protector -O2 -target bpf -g -c -D__aarch64__ -I. -isystem /usr/include/ -idirafter /usr/include ../src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.c -o src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.unstripped.o -I/usr/src/kernels/6.11.1-0.hs1.hs+fb.el9.aarch64
../src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.c:27:7: error: conflicting types for 'bpf_rdonly_cast'
   27 | void *bpf_rdonly_cast(void *, __u32) __ksym;
      |       ^
/usr/src/kernels/6.11.1-0.hs1.hs+fb.el9.aarch64/vmlinux.h:143063:14: note: previous declaration is here
 143063 | extern void *bpf_rdonly_cast(const void *obj__ign, u32 btf_id__k) __weak __ksym;
        |              ^
1 error generated.
"""

13 months agologind: add support for hidraw devices
Peter Hutterer [Tue, 12 Apr 2022 04:48:04 +0000 (14:48 +1000)] 
logind: add support for hidraw devices

Add support for opening /dev/hidraw devices via logind's TakeDevice().
Same semantics as our support for evdev devices, but it requires the
HIDIOCREVOKE ioctl in the kernel.

13 months agocore: fix copy/paste error
Antonio Alvarez Feijoo [Wed, 2 Oct 2024 19:43:09 +0000 (21:43 +0200)] 
core: fix copy/paste error

13 months agocore: load IPE policy on boot
Luca Boccassi [Sat, 14 Sep 2024 12:27:53 +0000 (14:27 +0200)] 
core: load IPE policy on boot

IPE is a new LSM being introduced in 6.12. Like IMA, it works based on a
policy file that has to be loaded at boot, the earlier the better. So
like IMA, if such a policy is present, load it and activate it.

If there are any .p7b files in /etc/ipe/, load them as policies.
The files have to be inline signed in DER format as per IPE documentation.

For more information on the details of IPE:

https://microsoft.github.io/ipe/

13 months agoMerge pull request #34447 from DaanDeMeyer/homectl-firstboot-groups
Lennart Poettering [Wed, 2 Oct 2024 16:28:01 +0000 (18:28 +0200)] 
Merge pull request #34447 from DaanDeMeyer/homectl-firstboot-groups

home: Prompt for auxiliary groups in homectl firstboot

13 months agoman: using WantedBy=default.target is not a good idea
Lukas Nykryn [Tue, 1 Oct 2024 09:30:18 +0000 (11:30 +0200)] 
man: using WantedBy=default.target is not a good idea

We had several users, that wrote their unit files with
WantedBy=default.target because it should be started "every time".
But for example in Fedora/CentOS/RHEL, this often breaks for
example selinux relabels (where we just want to do a relabel and reboot).

13 months agohomectl: Acquire bus connection after querying for user input 34447/head
Daan De Meyer [Wed, 18 Sep 2024 15:02:28 +0000 (17:02 +0200)] 
homectl: Acquire bus connection after querying for user input

Otherwise when the user takes a long time to enter input the operation
to create the user's home will fail with "transport endpoint not connected".

13 months agohome: Prompt for shell in homectl firstboot
Daan De Meyer [Tue, 17 Sep 2024 21:01:13 +0000 (23:01 +0200)] 
home: Prompt for shell in homectl firstboot

13 months agohome: Prompt for auxiliary groups in homectl firstboot
Daan De Meyer [Mon, 16 Sep 2024 11:43:38 +0000 (13:43 +0200)] 
home: Prompt for auxiliary groups in homectl firstboot

13 months agoMove show_menu() to terminal-util.h
Daan De Meyer [Tue, 17 Sep 2024 10:06:49 +0000 (12:06 +0200)] 
Move show_menu() to terminal-util.h

13 months agoMerge pull request #34616 from DaanDeMeyer/mkosi
Daan De Meyer [Wed, 2 Oct 2024 11:44:12 +0000 (13:44 +0200)] 
Merge pull request #34616 from DaanDeMeyer/mkosi

Various mkosi fixes

13 months agomkosi: Stop installing bpftrace 34616/head
Daan De Meyer [Wed, 2 Oct 2024 09:27:55 +0000 (11:27 +0200)] 
mkosi: Stop installing bpftrace

bpftrace nudges the Fedora Rawhide images towards compiler-rt18 while the
sanitizer builds pull in clang19, leading to the sanitizer libraries
not being found at runtime. Let's drop bpftrace for now so that compiler-rt19
is pulled in in the main image.

13 months agomkosi: Pass ASAN_OPTIONS to subimages
Daan De Meyer [Wed, 2 Oct 2024 09:27:09 +0000 (11:27 +0200)] 
mkosi: Pass ASAN_OPTIONS to subimages

systemd built with sanitizers is installed in subimages and tools
might get invoked in postinstall scripts so we have to disable ASAN
in the subimages as well during the image build.

13 months agomkosi: Don't sync if the packaging specs repo is dirty
Daan De Meyer [Wed, 2 Oct 2024 08:50:59 +0000 (10:50 +0200)] 
mkosi: Don't sync if the packaging specs repo is dirty

13 months agotree-wide: Fix Wformat warnings
Daan De Meyer [Tue, 1 Oct 2024 07:28:42 +0000 (09:28 +0200)] 
tree-wide: Fix Wformat warnings

The latest clang has started catching more integer promotions which
cause us to pass the wrong type to printf() format specifiers so let's
fix those.

13 months agoman: drop reference to /bin/ from docs regarding binary search path 34610/head
Lennart Poettering [Tue, 1 Oct 2024 13:52:56 +0000 (15:52 +0200)] 
man: drop reference to /bin/ from docs regarding binary search path

We don't support "split /usr" systems anymore, hence no point in
mentioning /bin/ anymore as being part of the binary search path.

13 months agoman: soft deprecate use of ";" for separating multiple command lines in ExecStart=
Lennart Poettering [Tue, 1 Oct 2024 10:12:52 +0000 (12:12 +0200)] 
man: soft deprecate use of ";" for separating multiple command lines in ExecStart=

So far we supported this syntax:

    ExecStart=foo ; bar

as equivalent to:

    ExecStart=foo
    ExecStart=bar

With this change we'll "soft" deprecate the first syntax. i.e. it's
still supported in code, but not documented anymore.

The concept was originally added to make things easier for 3rd party
.ini readers, as it allowed writing unit files with a .ini framework
that doesn't allow multiple assignments for the same key. But frankly,
this is kinda pointless, as so many other of our knobs require the
double assignment.

Hence, let's just stop advertising the concept, let's simplify the docs,
by removing one entirely redundant feature from it.

Replaces: #34570

13 months agoMerge pull request #34546 from ikruglov/ikruglov/refactor-GetMachineAddresses
Daan De Meyer [Wed, 2 Oct 2024 08:24:59 +0000 (10:24 +0200)] 
Merge pull request #34546 from ikruglov/ikruglov/refactor-GetMachineAddresses

machine: generalise logic of GetMachineAddresses/GetOsRelease to later use it in corresponding varlink interfaces

13 months agoupdate TODO 34600/head
Lennart Poettering [Tue, 1 Oct 2024 08:23:21 +0000 (10:23 +0200)] 
update TODO

13 months agosd-varlink: mark functions that can take 'more' flag in IDL structures with an explic...
Lennart Poettering [Tue, 1 Oct 2024 07:34:25 +0000 (09:34 +0200)] 
sd-varlink: mark functions that can take 'more' flag in IDL structures with an explicit flag

Let's mark functions that accept the 'more' flag explicitly for that,
and validate for this explicitly.

This is preparation for
https://github.com/varlink/varlink.github.io/issues/26, if we get that
one day. Let's make sure that from day #1 we have this info available
even if we don't generate this in the IDL for now.

Also enables the two flags for all interfaces we export that use the
logic.

13 months agosd-varlink-idl: add some room for flags everywhere
Lennart Poettering [Mon, 30 Sep 2024 16:50:12 +0000 (18:50 +0200)] 
sd-varlink-idl: add some room for flags everywhere

Given this is supposed to be a public API now, let's add some concept
for extensions of these open-coded structures: let's make sure we have
flags fields on all structures (which we can use for extensions later).
Right now we only have this for varlink "fields" structures, this adds
the same for "symbols" and the "interface" as a whole.

There are no actual flags defined in either for now, this is just
future-safety preparation.

(But a later commit will add two flags to symbols)

13 months agotest: add --more flag when enumerating via List varlink method
Lennart Poettering [Wed, 2 Oct 2024 07:22:28 +0000 (09:22 +0200)] 
test: add --more flag when enumerating via List varlink method

The call returns multiple entries, hence should be called with `--more`.

13 months agotree-wide: always do dlopen() with RTLD_NOW + RTLD_NODELETE
Lennart Poettering [Tue, 1 Oct 2024 14:44:18 +0000 (16:44 +0200)] 
tree-wide: always do dlopen() with RTLD_NOW + RTLD_NODELETE

Let's systematically use RTL_NOW|RLTD_NODELETE as flags passed to
dlopen(), across our codebase.

Various distros build with "-z now" anyway, hence it's weird to specify
RTLD_LAZY trying to override that (which it doesn't). Hence, let's
follow suit, and just do what everybody else does.

Also set RTLD_NODELETE, which is apparently what distros will probably
end up implying sooner or later anyway. Given that for pretty much all
our dlopen() calls we never call dlclose() anyway, let's just set this
everywhere too, to make things systematic.

This way, the flags we use by default match what distros such as fedora
do, there are no surprises, and read-only relocations can be a thing.

Fixes: #34537
13 months agoMerge pull request #34612 from poettering/hwdb-micmutify-subset
Lennart Poettering [Wed, 2 Oct 2024 05:12:51 +0000 (07:12 +0200)] 
Merge pull request #34612 from poettering/hwdb-micmutify-subset

hwdb: various fixes to mm kbd hwdb files

13 months agobuild(deps): bump systemd/mkosi
dependabot[bot] [Tue, 1 Oct 2024 12:54:11 +0000 (12:54 +0000)] 
build(deps): bump systemd/mkosi

Bumps [systemd/mkosi](https://github.com/systemd/mkosi) from 2c9954fa51a3a995bbdc02db6ef51f5bd27bc1ba to 3454f7bd4ef0336ec80a117d593baaef0fe53398.
- [Release notes](https://github.com/systemd/mkosi/releases)
- [Commits](https://github.com/systemd/mkosi/compare/2c9954fa51a3a995bbdc02db6ef51f5bd27bc1ba...3454f7bd4ef0336ec80a117d593baaef0fe53398)

---
updated-dependencies:
- dependency-name: systemd/mkosi
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
13 months agobpf: fix cross build failure on Debian
Helmut Grohne [Mon, 30 Sep 2024 15:56:18 +0000 (17:56 +0200)] 
bpf: fix cross build failure on Debian

For compiling bpf code, the system include directory needs to be
constructed. On Debian-like systems, this requires passing a multiarch
directory. Since clang's -dump-machine prints something other that the
multiarch triplet, gcc was interrogated earlier, but that also yields a
wrong result for cross compilation and was thus skipped resulting in
clang not finding asm/types.h.

Rather than, -dump-machine we should ask for -print-multiarch (which
rarely differs). Whenever gcc is in use, this is right (even for cross
building). Since clang does not support -print-multiarch and its
-dump-machine never matches Debian's multiarch, we resort to asking gcc
when building natively. For cross builds using clang, we are out of
luck.

13 months agomachine: generalise logic GetOSRelease to later use it in varlink interface 34546/head
Ivan Kruglov [Wed, 25 Sep 2024 12:17:38 +0000 (14:17 +0200)] 
machine: generalise logic GetOSRelease to later use it in varlink interface

13 months agomachine: generalise logic GetMachineAddresses to later use it in varlink interface
Ivan Kruglov [Tue, 24 Sep 2024 12:56:16 +0000 (14:56 +0200)] 
machine: generalise logic GetMachineAddresses to later use it in varlink interface

13 months agohwbd: use newer KEY_PICKUP_PHONE, KEY_HANGUP_PHONE, KEY_SELECTIVE_SCREENSHOT, KEY_NOT... 34612/head
Lennart Poettering [Tue, 10 Sep 2024 15:19:12 +0000 (17:19 +0200)] 
hwbd: use newer KEY_PICKUP_PHONE, KEY_HANGUP_PHONE, KEY_SELECTIVE_SCREENSHOT, KEY_NOTIFICATION_CENTER keycodes where appropriate

According to kernel commit cd80ec795156346236e9b1cd9f5cbff5a9bbd212
these were added expressly for these thinkpads, hence use them now.

13 months agohwdb: use KEY_ROTATE_DISPLAY for various cases of display rotation keys
Lennart Poettering [Tue, 10 Sep 2024 15:14:52 +0000 (17:14 +0200)] 
hwdb: use KEY_ROTATE_DISPLAY for various cases of display rotation keys

The keycode is reletively new. Let's fix some "FIXMEs" and actually make
use of the keycode wherever it appears appropriate according to
commentary.

13 months agohwdb: there's KEY_BRIGHTNESS_AUTO these days, hence hook it up where a FIXME suggests...
Lennart Poettering [Tue, 10 Sep 2024 14:57:41 +0000 (16:57 +0200)] 
hwdb: there's KEY_BRIGHTNESS_AUTO these days, hence hook it up where a FIXME suggests that

13 months agohwdb: make key map match comment for one laptop
Lennart Poettering [Tue, 1 Oct 2024 16:15:28 +0000 (18:15 +0200)] 
hwdb: make key map match comment for one laptop

No idea what the right fix is here, the commnt says "touchpad off" but
uses "f22" which is touchpad "on".

let's trust the comment, because it's more literal, and assume this was
a mistake.

13 months agolinux: import input.h and friends
Lennart Poettering [Tue, 1 Oct 2024 16:34:01 +0000 (18:34 +0200)] 
linux: import input.h and friends

The CIs apparently have rally old headers, where KEY_BRIGHTNESS_AUTO is
missing, let's hence ship our own copies from a current kernel.

13 months agoRevert "Preset user units on first boot as well"
Lennart Poettering [Mon, 23 Sep 2024 09:30:22 +0000 (11:30 +0200)] 
Revert "Preset user units on first boot as well"

This reverts commit 0a40325573b91ea71070653865f7f6a9cada2bef.

13 months agoupdate TODO
Lennart Poettering [Tue, 1 Oct 2024 14:49:43 +0000 (16:49 +0200)] 
update TODO

13 months agoUpdate sd_bus_message_append_array.xml
Marcel Hellwig [Tue, 1 Oct 2024 12:31:08 +0000 (14:31 +0200)] 
Update sd_bus_message_append_array.xml

fix pointer constness in documentation

13 months agobuild(deps): bump actions/checkout from 4.1.7 to 4.2.0
dependabot[bot] [Tue, 1 Oct 2024 09:17:05 +0000 (09:17 +0000)] 
build(deps): bump actions/checkout from 4.1.7 to 4.2.0

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/692973e3d937129bcbf40652eb9f2f61becf3332...d632683dd7b4114ad314bca15554477dd762a938)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
13 months agobuild(deps): bump github/codeql-action from 3.25.15 to 3.26.10
dependabot[bot] [Tue, 1 Oct 2024 09:17:13 +0000 (09:17 +0000)] 
build(deps): bump github/codeql-action from 3.25.15 to 3.26.10

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.15 to 3.26.10.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/afb54ba388a7dca6ecae48f608c4ff05ff4cc77a...e2b3eafc8d227b0241d48be5f425d47c2d750a13)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
13 months agobuild(deps): bump meson from 1.5.1 to 1.5.2 in /.github/workflows
dependabot[bot] [Tue, 1 Oct 2024 09:53:27 +0000 (09:53 +0000)] 
build(deps): bump meson from 1.5.1 to 1.5.2 in /.github/workflows

Bumps [meson](https://github.com/mesonbuild/meson) from 1.5.1 to 1.5.2.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/1.5.1...1.5.2)

---
updated-dependencies:
- dependency-name: meson
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
13 months agoAdd %posttrans versions of the systemd %postun scriptlets
Daan De Meyer [Mon, 30 Sep 2024 14:08:17 +0000 (16:08 +0200)] 
Add %posttrans versions of the systemd %postun scriptlets

On upgrades, only the %postun scriptlets of the old package version
run. This means that any changes related to restarting daemons require
two releases before they're actually used.

%postun is used because it runs after the old package has been removed,
which is important as it means any lingering dropins from the old package
will have been removed as well.

To allow deploying fixes in just a single release while still running after
the old package has been removed, let's introduce %posttrans versions of these
scriptlets as %posttrans of the new package runs on upgrade and install after
the old package has been removed.

13 months agosystemd-integritysetup: accept integrity-algorithm=xxhash64
Daniel Dawson [Fri, 27 Sep 2024 00:44:03 +0000 (17:44 -0700)] 
systemd-integritysetup: accept integrity-algorithm=xxhash64

Signed-off-by: Daniel Dawson <danielcdawson@gmail.com>
13 months agoMerge pull request #34582 from DaanDeMeyer/repart
Daan De Meyer [Tue, 1 Oct 2024 06:51:01 +0000 (08:51 +0200)] 
Merge pull request #34582 from DaanDeMeyer/repart

repart: copy denylist fixes

13 months agojson: add json_dispatch_const_user_group_name()
Lennart Poettering [Mon, 30 Sep 2024 15:33:05 +0000 (17:33 +0200)] 
json: add json_dispatch_const_user_group_name()

This is the same as json_dispatch_user_group_name() but fills in the
string as "const char*" to the JSON field. Or in other words, it's what
sd_json_dispatch_const_string() is to sd_json_dispatch_string().

Note this drops the SD_JSON_STRICT flags from various dispatch tables
for these fields, and replaces this by SD_JSON_RELAX, i.e. the opposite
behaviour. As #34558 correctly suggests we should validate user names
in lookup functions using the lax rules, rather than the strict ones,
since clients not knowing the rules might ask us for arbitrary
resolution.

(SD_JSON_RELAX internally translates to valid_user_group_name() with the
VALID_USER_RELAX flag).

See: #34558

13 months agoMerge pull request #34534 from keszybz/man-exitrd
Mike Yuan [Mon, 30 Sep 2024 19:02:04 +0000 (21:02 +0200)] 
Merge pull request #34534 from keszybz/man-exitrd

Formally document exitrds

13 months agoMerge pull request #34583 from DaanDeMeyer/ukify
Daan De Meyer [Mon, 30 Sep 2024 17:54:37 +0000 (19:54 +0200)] 
Merge pull request #34583 from DaanDeMeyer/ukify

ukify: Use SizeOfImage from linux image as virtual size of .linux section

13 months agoman: add a comment that inode type policy might be enforces via an LSM or similar 34590/head
Lennart Poettering [Mon, 30 Sep 2024 16:28:27 +0000 (18:28 +0200)] 
man: add a comment that inode type policy might be enforces via an LSM or similar

Just to tighten the language a bit, why people should care about where
they place their inodes.

13 months agoman: clarify that the defined file hiearchy is just a skeleton
Lennart Poettering [Mon, 30 Sep 2024 16:19:33 +0000 (18:19 +0200)] 
man: clarify that the defined file hiearchy is just a skeleton

(And specifically mention /usr/include + /var/spool as not covered here,
but being OK to add downstream)

13 months agoman: drop /var/spool/ mention from file-hierarchy(7) man page
Lennart Poettering [Mon, 30 Sep 2024 15:29:35 +0000 (17:29 +0200)] 
man: drop /var/spool/ mention from file-hierarchy(7) man page

Today it seems this is mostly used by mail and printer servers, and it's
not clear to me at all what the property is that makes
/var/spool/<package> the better place for the relevant data than
/var/lib/<package>.

Hence, in the interest of shortening the spec, let's not mention the dir
anymore. In particular as the dir really isn't used by us much, for
example we do not have a counterpart for RuntimeDirectory=,
StateDirectory=, … that would cover the spool.

Since most systems these days we care about probably come *without* a
printer or mail server, let's maybe no mention this in the man page that
is supposed to discuss the rough skeleton how things are set up. After
all, people are supposed to exend the skeleton with their stuff, and
this sounds more like a case for an extension of the skeleton instead of
being considered part of the skeleton itself.

13 months agoman: drop mention of /usr/include/ from file-hierarchy(7) man page
Lennart Poettering [Mon, 30 Sep 2024 15:29:15 +0000 (17:29 +0200)] 
man: drop mention of /usr/include/ from file-hierarchy(7) man page

The man page is supposed to provide a "generalized, though minimal and
modernized subset" (as per introductory pargapraghs), from a systemd
perspective. But the thing is that /usr/include/ really doesn't matter
to us. It's a development thing, and slightly weird (because it arguably
would be better places in /usr/share/include/ or so). It's not going to
be there on 95% of deployed systems, and we really don't want people to
bother with it on such systems.

We only define the skeleton of directories in this document, and it's
expected that people extend it, and I think this really should be one of
those dirs that is an extension of our skeleton, but not part of the
skeleton, if that makes any sense.

13 months agoupdate TODO
Lennart Poettering [Mon, 30 Sep 2024 15:29:01 +0000 (17:29 +0200)] 
update TODO

13 months agoMerge pull request #34564 from YHNdnzj/systemctl-status-job-id
Mike Yuan [Mon, 30 Sep 2024 15:39:19 +0000 (17:39 +0200)] 
Merge pull request #34564 from YHNdnzj/systemctl-status-job-id

systemctl: also show job id in status output

13 months agoMerge pull request #34508 from intelfx/work/fix-io-reporting
Mike Yuan [Mon, 30 Sep 2024 15:38:00 +0000 (17:38 +0200)] 
Merge pull request #34508 from intelfx/work/fix-io-reporting

core/cgroup: cache IO accounting data when pruning a cgroup

13 months agoukify: Remove special casing for .linux section 34583/head
Daan De Meyer [Mon, 30 Sep 2024 11:50:27 +0000 (13:50 +0200)] 
ukify: Remove special casing for .linux section

Now that we properly leave sufficient space for inline execution of
the .linux section, let's remove the special casing of the .linux
section as it doesn't need to be the last section anymore now.

13 months agoukify: Use SizeOfImage from linux image as virtual size of .linux section
Daan De Meyer [Mon, 30 Sep 2024 11:42:50 +0000 (13:42 +0200)] 
ukify: Use SizeOfImage from linux image as virtual size of .linux section

The SizeOfImage is bigger than the image itself so that space is
guaranteed to be available for in place execution of the linux image. Let's
make sure we take this into account and use SizeOfImage as the section's virtual
size instead of the size of the image itself.

Fixes #34578

13 months agotpm2-util: show loaded libraries in 'systemd-analyze has-tpm2'
Yu Watanabe [Thu, 19 Sep 2024 10:16:12 +0000 (19:16 +0900)] 
tpm2-util: show loaded libraries in 'systemd-analyze has-tpm2'

After 3b16e9f41983f697bc38c40bb8e7119c1bb4f7c8, even the libraries are
documented in the man page, it is useful to mention which libraries are
checked in the command output.

Of course, the dependencies are kind of implementation detail, and may
be changed in the future version, but that's especially why I think
showing the library deps in the output is useful.

systemd-analyze is a debugging tool, and already shows many internal
states. I think there is nothing to prevent from showing the deps.

Prompted by #34477.

13 months agologind-dbus: really cancel scheduled shutdown
David Tardon [Thu, 26 Sep 2024 07:45:44 +0000 (09:45 +0200)] 
logind-dbus: really cancel scheduled shutdown

Fixes #34554

13 months agoukify: Drop unused size() method
Daan De Meyer [Mon, 30 Sep 2024 11:42:23 +0000 (13:42 +0200)] 
ukify: Drop unused size() method

13 months agorepart: Apply denylist to individual files as well 34582/head
Daan De Meyer [Mon, 30 Sep 2024 11:41:26 +0000 (13:41 +0200)] 
repart: Apply denylist to individual files as well

13 months agorepart: Shortcut copy if source or target starts with exclude path
Daan De Meyer [Mon, 30 Sep 2024 11:41:11 +0000 (13:41 +0200)] 
repart: Shortcut copy if source or target starts with exclude path

If the source or target we're copying to is a subdirectory of any of the
directories specified in ExcludeFiles= or ExcludeFilesTarget=, shortcut the
entire copy operation.

13 months agoMerge pull request #34572 from keszybz/fix-printing-of-RootImageOptions
Zbigniew Jędrzejewski-Szmek [Sat, 28 Sep 2024 15:23:44 +0000 (17:23 +0200)] 
Merge pull request #34572 from keszybz/fix-printing-of-RootImageOptions

Fix printing of RootImageOptions

13 months agoMerge pull request #34548 from SimonPilkington/fix-creds-cat
Mike Yuan [Fri, 27 Sep 2024 18:51:57 +0000 (20:51 +0200)] 
Merge pull request #34548 from SimonPilkington/fix-creds-cat

creds: fix cat with encrypted credentials

13 months agoshared: adjust whitespace and formatting 34572/head
Zbigniew Jędrzejewski-Szmek [Fri, 27 Sep 2024 18:18:16 +0000 (20:18 +0200)] 
shared: adjust whitespace and formatting

13 months agosystemctl: fix printing of RootImageOptions
Zbigniew Jędrzejewski-Szmek [Fri, 27 Sep 2024 18:17:12 +0000 (20:17 +0200)] 
systemctl: fix printing of RootImageOptions

The type is a(ss), so a custom printer is required.

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

13 months agoseccomp-util: include @sandbox in @default
Mickaël Salaün [Wed, 25 Sep 2024 13:20:23 +0000 (15:20 +0200)] 
seccomp-util: include @sandbox in @default

Every services and containers should be able to protect their users and
limit the impact of security bugs thanks to the security syscalls
provided by seccomp and Landlock.  The goal of these syscalls is to
improve security with additional restrictions.  They are designed to be
safely used by unprivileged (and then potentially malicious) users.

Remove the now-redundant "seccomp" entry for nspawn.

13 months agoman: fix formatting in file-hierarchy
Zbigniew Jędrzejewski-Szmek [Thu, 26 Sep 2024 09:18:26 +0000 (11:18 +0200)] 
man: fix formatting in file-hierarchy

Somebody wrapped the text, but whitespace is preserved in <programlisting>, so
the output was mangled. It also doesn't make sense to run systemd-path as root
(as indicated by '#'), so drop that. Also, this chunk should be a separate
paragraph.

13 months agosystemctl: also show job id in status output 34564/head
Mike Yuan [Thu, 26 Sep 2024 15:36:24 +0000 (17:36 +0200)] 
systemctl: also show job id in status output

Prompted by one ASG talk ;)

13 months agoshared/bus-map-properties: move bus_map_job_id() from wait-for-units
Mike Yuan [Thu, 26 Sep 2024 15:29:30 +0000 (17:29 +0200)] 
shared/bus-map-properties: move bus_map_job_id() from wait-for-units

13 months agomkosi: update arch commit reference
Daan De Meyer [Wed, 25 Sep 2024 13:52:06 +0000 (15:52 +0200)] 
mkosi: update arch commit reference

d5a2dc54da Use vmlinux.h from linux-headers
59912d804f update checksums...
83edb5244e build: set ssh privsep dir to /usr/share/empty.sshd
65363cc5ba build: explicitly enable vmlinux-h=generated
14e6d27dd4 build: drop deprecated default-hierarchy option
81e7545ca3 systemd.install: stop applying ACL ourselves
147c214201 systemd-hook: use systemd-notify --booted to detect if systemd is running
010bc3c05c upgpkg: 256.6-1: new upstream release

13 months agoFix reference to FileDescriptorStoreMax= directive
Nils K [Mon, 23 Sep 2024 19:01:38 +0000 (21:01 +0200)] 
Fix reference to FileDescriptorStoreMax= directive

13 months agoNEWS: Document change to systemd-creds 'cat' verb 34548/head
Simon Pilkington [Wed, 25 Sep 2024 09:26:02 +0000 (11:26 +0200)] 
NEWS: Document change to systemd-creds 'cat' verb

See: https://github.com/systemd/systemd/pull/34548

13 months agomachine: resolve race condition in TEST-13-NSPAWN.machinectl.sh
Ivan Kruglov [Fri, 20 Sep 2024 10:20:53 +0000 (12:20 +0200)] 
machine: resolve race condition in TEST-13-NSPAWN.machinectl.sh

I encountered this race condition while working on TEST-13-NSPAWN.varlinkctl.sh.
The long-running machine's init script sometimes does not have time to start and
register signals. As result, occasiounally failed tests.

13 months agocreds: fix cat with encrypted credentials
Simon Pilkington [Wed, 25 Sep 2024 09:25:48 +0000 (11:25 +0200)] 
creds: fix cat with encrypted credentials

Fixes: https://github.com/systemd/systemd/issues/34547
13 months agoTODO: add one more systemctl rfe
Zbigniew Jędrzejewski-Szmek [Wed, 25 Sep 2024 06:54:50 +0000 (08:54 +0200)] 
TODO: add one more systemctl rfe

13 months agoMerge pull request #34549 from weblate/weblate-systemd-main
Yu Watanabe [Wed, 25 Sep 2024 04:49:48 +0000 (06:49 +0200)] 
Merge pull request #34549 from weblate/weblate-systemd-main

Translations update from Fedora Weblate

13 months agopo: Translated using Weblate (Portuguese (Brazil)) 34549/head
Fábio Rodrigues Ribeiro [Wed, 25 Sep 2024 01:07:13 +0000 (03:07 +0200)] 
po: Translated using Weblate (Portuguese (Brazil))

Currently translated at 97.2% (246 of 253 strings)

po: Translated using Weblate (Portuguese (Brazil))

Currently translated at 96.0% (243 of 253 strings)

Co-authored-by: Fábio Rodrigues Ribeiro <farribeiro@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pt_BR/
Translation: systemd/main

13 months agopo: Translated using Weblate (Portuguese (Brazil))
Gabriel Elyas [Wed, 25 Sep 2024 01:07:13 +0000 (03:07 +0200)] 
po: Translated using Weblate (Portuguese (Brazil))

Currently translated at 96.0% (243 of 253 strings)

po: Translated using Weblate (Portuguese (Brazil))

Currently translated at 89.3% (226 of 253 strings)

Co-authored-by: Gabriel Elyas <gabrielelyas@protonmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pt_BR/
Translation: systemd/main

13 months agounits: Order ldconfig after systemd-tmpfiles-setup.service
Daan De Meyer [Mon, 23 Sep 2024 11:20:42 +0000 (13:20 +0200)] 
units: Order ldconfig after systemd-tmpfiles-setup.service

tmpfiles might be linking the configuration for ldconfig into /etc
so make sure it runs after it so that the configuration is guaranteed
to be in place.

13 months agorepart: Determine verity sig size based on partition designator
Daan De Meyer [Thu, 19 Sep 2024 12:04:34 +0000 (14:04 +0200)] 
repart: Determine verity sig size based on partition designator

Verity= is an image build concept, not a first boot concept, whereas
a partition designator is always available, so let's do the size stuff
based on that.

13 months agocore/cgroup: cache IO accounting data when pruning a cgroup 34508/head
Ivan Shapovalov [Fri, 20 Sep 2024 11:01:51 +0000 (13:01 +0200)] 
core/cgroup: cache IO accounting data when pruning a cgroup

When removing a cgroup in unit_prune_cgroup(), read IO metrics to cache
them similar to the existing treatment of the CPU and memory usage data.

Note that we do not do this for the IP metrics as the firewall objects
are only destroyed in unit_free() and thus stay alive long enough to
be read out directly by all interested parties.

Fixes #26988.