]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
13 months agotest-process-util: Ignore EINVAL from setresuid() and setresgid() 34486/head
Daan De Meyer [Thu, 19 Sep 2024 10:21:55 +0000 (12:21 +0200)] 
test-process-util: Ignore EINVAL from setresuid() and setresgid()

If we're running in a user namespace with a single user and without
the nobody user, we'll get EINVAL from these system calls so make
sure we handle those gracefully.

13 months agotest-process-util: Use FORK_REOPEN_LOG everywhere we close all fds
Daan De Meyer [Thu, 19 Sep 2024 10:04:34 +0000 (12:04 +0200)] 
test-process-util: Use FORK_REOPEN_LOG everywhere we close all fds

To make sure logging works in the child processes.

13 months agotest-process-util: Migrate to new assertion macros
Daan De Meyer [Thu, 19 Sep 2024 09:39:09 +0000 (11:39 +0200)] 
test-process-util: Migrate to new assertion macros

13 months agoAdd ASSERT_OK_ZERO_ERRNO() and ASSERT_OK_EQ_ERRNO()
Daan De Meyer [Thu, 19 Sep 2024 09:38:47 +0000 (11:38 +0200)] 
Add ASSERT_OK_ZERO_ERRNO() and ASSERT_OK_EQ_ERRNO()

13 months agonsresourced: fix build without libbpf
Antonio Alvarez Feijoo [Wed, 18 Sep 2024 09:29:40 +0000 (11:29 +0200)] 
nsresourced: fix build without libbpf

```
In file included from ../src/nsresourced/nsresourced-manager.c:9:
../src/shared/bpf-link.h:5:10: fatal error: bpf/libbpf.h: No such file or directory
    5 | #include <bpf/libbpf.h>
      |          ^~~~~~~~~~~~~~
```

Follow-up for 46718d344fdaaaf523d854a0c728197e7406a55a

13 months agorepart: Drop unprivileged subvolumes logic for btrfs
Daan De Meyer [Wed, 18 Sep 2024 05:43:59 +0000 (07:43 +0200)] 
repart: Drop unprivileged subvolumes logic for btrfs

The functionality was explicitly not included in 6.11 for some
unknown reason so drop the logic from systemd-repart as well so
we don't release v257 with it included.

13 months agoman/repart: use <varname> instead of <variable>
Antonio Alvarez Feijoo [Wed, 18 Sep 2024 13:02:53 +0000 (15:02 +0200)] 
man/repart: use <varname> instead of <variable>

Otherwise, `<variable>$BOOT</variable>` is rendered:

```
[2548/2992] Generating man/repart.d.5 with a custom command
Element variable in namespace '' encountered in para, but no template matches.
Element variable in namespace '' encountered in para, but no template matches.
```

13 months agohwdb: Add accel orientation quirk for the IdeaPad Duet 3 10IGL5-LTE
Marius Hoch [Wed, 18 Sep 2024 10:07:00 +0000 (12:07 +0200)] 
hwdb: Add accel orientation quirk for the IdeaPad Duet 3 10IGL5-LTE

Signed-off-by: Marius Hoch <mail@mariushoch.de>
13 months agorepart: Support specifying multiple directories to ExcludeFiles=
Daan De Meyer [Mon, 16 Sep 2024 21:04:02 +0000 (23:04 +0200)] 
repart: Support specifying multiple directories to ExcludeFiles=

13 months agosystemd: rewatch pids under cgroup v1 when sigchld of processes more than main pid...
chenjiayi [Wed, 18 Sep 2024 03:12:34 +0000 (11:12 +0800)] 
systemd: rewatch pids under cgroup v1 when sigchld of processes more than main pid and control pid is captured

If `Delegate` is configured in service, cgroup agent will never send out
any datagram as .control subcgroup is generated. Thus systemd will watch
all processes on the cgroup hierarchy for SIGCHLD to deal with unreliable
cgroup notifications.

In this way, systemd should rewatch all processes when any SIGCHLD is
captured, more than the control pid or main pid.

13 months agoman: document ShowStatus and SetShowStatus()
Jason Yundt [Tue, 17 Sep 2024 18:00:26 +0000 (14:00 -0400)] 
man: document ShowStatus and SetShowStatus()

SetShowStatus() was added in order to fix #11447. Recently, I ran into
the exact same problem that OP was experiencing in #11447. I wasn’t able
to figure out how to deal with the problem until I found #11447, and it
took me a while to find #11447.

This commit takes what I learned from reading #11447 and adds it to the
documentation. Hopefully, this will make it easier for other people who
run into the same problem in the future.

13 months agoMerge pull request #34464 from yuwata/test-space-in-path
Daan De Meyer [Wed, 18 Sep 2024 06:50:38 +0000 (08:50 +0200)] 
Merge pull request #34464 from yuwata/test-space-in-path

test: allow to run tests under directory that contains spaces

13 months agotest: quote paths to executables 34464/head
Yu Watanabe [Tue, 17 Sep 2024 20:00:21 +0000 (05:00 +0900)] 
test: quote paths to executables

Fixes #34459.

13 months agokernel-install: unquote plugin paths in KERNEL_INSTALL_PLUGINS
Yu Watanabe [Tue, 17 Sep 2024 19:59:38 +0000 (04:59 +0900)] 
kernel-install: unquote plugin paths in KERNEL_INSTALL_PLUGINS

To support the case that paths to plugins contain spaces.

Prompted by #34459

13 months agoMerge pull request #34460 from yuwata/test-86-follow-ups
Yu Watanabe [Wed, 18 Sep 2024 00:31:17 +0000 (09:31 +0900)] 
Merge pull request #34460 from yuwata/test-86-follow-ups

test: follow-ups for TEST-86

13 months agotmpfiles.d: Remove purge flag from lines that don't support it
Daan De Meyer [Tue, 17 Sep 2024 19:46:04 +0000 (21:46 +0200)] 
tmpfiles.d: Remove purge flag from lines that don't support it

Fixes db15657dfb8100c3c6cd8cf60fa68521e019d47a

13 months agoukify: Remove debug log
Daan De Meyer [Tue, 17 Sep 2024 19:44:37 +0000 (21:44 +0200)] 
ukify: Remove debug log

This prints a python data structure which we shouldn't do during
normal operation.

13 months agoMerge pull request #34040 from AdrianVovk/repart-dollar-boot
Yu Watanabe [Tue, 17 Sep 2024 20:09:20 +0000 (05:09 +0900)] 
Merge pull request #34040 from AdrianVovk/repart-dollar-boot

repart: Implement $BOOT support

13 months agoMerge pull request #34440 from yuwata/network-log-no-matching-network
Daan De Meyer [Tue, 17 Sep 2024 19:09:19 +0000 (21:09 +0200)] 
Merge pull request #34440 from yuwata/network-log-no-matching-network

network: log when no matching .network file found

13 months agonetwork/dhcp4: use device_get_property_bool() at link_needs_dhcp_broadcast()
Yu Watanabe [Sun, 15 Sep 2024 17:42:05 +0000 (02:42 +0900)] 
network/dhcp4: use device_get_property_bool() at link_needs_dhcp_broadcast()

No functional change, just refactoring.

13 months agotest: drop unused test.sh for TEST-86-MULTI-PROFILE-UKI 34460/head
Yu Watanabe [Tue, 17 Sep 2024 18:58:58 +0000 (03:58 +0900)] 
test: drop unused test.sh for TEST-86-MULTI-PROFILE-UKI

The test cannot run with the bash test runner, as it requires python.
Hence, test.sh is not necessary.

Follow-up for a37640653cab108bb2cfdcba7e9422cced925e95.

13 months agotest: minor coding style fixlets
Yu Watanabe [Tue, 17 Sep 2024 18:50:43 +0000 (03:50 +0900)] 
test: minor coding style fixlets

Follow-up for a37640653cab108bb2cfdcba7e9422cced925e95.

13 months agoMerge pull request #34457 from poettering/uki-with-many-testcase
Yu Watanabe [Tue, 17 Sep 2024 18:48:45 +0000 (03:48 +0900)] 
Merge pull request #34457 from poettering/uki-with-many-testcase

multi-profile UKIs: test case

13 months agohomed: wait for user input during firstboot
Michael Ferrari [Mon, 16 Sep 2024 17:54:53 +0000 (19:54 +0200)] 
homed: wait for user input during firstboot

This mirrors the behavior of `systemd-firstboot` and allows bootup
messages to settle down before user input is actually processed.

See: https://github.com/systemd/systemd/issues/34448

13 months agoconf-parser: use hashmap_ensure_put() at one more place 34440/head
Yu Watanabe [Tue, 17 Sep 2024 18:13:47 +0000 (03:13 +0900)] 
conf-parser: use hashmap_ensure_put() at one more place

13 months agoconf-parser: log errors in config_parse_many_files() and friends
Yu Watanabe [Tue, 17 Sep 2024 18:05:41 +0000 (03:05 +0900)] 
conf-parser: log errors in config_parse_many_files() and friends

Previously, if an file cannot be opened, e.g. due to its permission,
config_parse_many() or so did not log the error even if CONFIG_PARSE_WARN
flag is set. This makes all error paths in these functions are logged,
and the log level is controlled by the flag.

Prompted by #34436.

13 months agorepart: Add tests for supplement partitions 34040/head
Adrian Vovk [Wed, 4 Sep 2024 03:48:28 +0000 (23:48 -0400)] 
repart: Add tests for supplement partitions

13 months agorepart: Add SupplementFor= logic
Adrian Vovk [Sat, 17 Aug 2024 17:30:46 +0000 (13:30 -0400)] 
repart: Add SupplementFor= logic

This was designed to deal with $BOOT, as defined by the Boot Loader
Specification, but it was made a generic mechanism because it is useful
elsewhere too. See the updated man page for usage examples, motivation,
and an explanation of how this works.

13 months agorepart: Consider existing partitions when placing
Adrian Vovk [Thu, 5 Sep 2024 00:19:27 +0000 (20:19 -0400)] 
repart: Consider existing partitions when placing

Fixes an oversight in `context_allocate_partitions` that makes it
succeed in cases where it should fail. Essentially, there was nothing
actually enforcing SizeMinBytes= and PaddingMinBytes= for partitions
that exist, only for new partitions. This behavior is inconsistent with
the docs, which state that existing partitions will be grown to at least
the specified minimum size, and that "If the backing device does not
provide enough space to fulfill the constraints placing the partition
will fail".

13 months agostrv: Fixup STRV_FOREACH_PAIR macro
Adrian Vovk [Wed, 4 Sep 2024 03:45:08 +0000 (23:45 -0400)] 
strv: Fixup STRV_FOREACH_PAIR macro

The macro didn't properly parenthesize a caller-controlled argument.
For example: `STRV_FOREACH_PAIR(a, b, something ?: something_else)`
would expand to `typeof(*something ?: something_else)`, which would
cause compile failures

13 months agolog: introduce log_oom_full()
Yu Watanabe [Tue, 17 Sep 2024 17:50:19 +0000 (02:50 +0900)] 
log: introduce log_oom_full()

13 months agonetwork: log loaded .network and .netdev files
Yu Watanabe [Tue, 17 Sep 2024 17:35:28 +0000 (02:35 +0900)] 
network: log loaded .network and .netdev files

13 months agonetwork: log when no matching .network file found
Yu Watanabe [Sun, 15 Sep 2024 18:24:19 +0000 (03:24 +0900)] 
network: log when no matching .network file found

When an interface enters unmanaged state, there are two possibilities:
- no matching .network file found,
- found a matching .network with Unmanaged=yes.

When a matching .network file is found, networkd logs the filename.
Let's also log when no matching .network file is found.

This also slightly adjust the log message when a matching .network file
found.

Closes #34436.

13 months agoUse correct error code in log message in output_waiting_jobs (#34404)
PavlNekrasov [Tue, 17 Sep 2024 10:17:21 +0000 (13:17 +0300)] 
Use correct error code in log message in output_waiting_jobs (#34404)

The error code `r` from the read function is being logged, but the error code `rc` from the table data insertion function should be logged instead.

13 months agoMerge pull request #34443 from yuwata/network-sysctl-monitor-follow-ups
Yu Watanabe [Tue, 17 Sep 2024 10:15:12 +0000 (19:15 +0900)] 
Merge pull request #34443 from yuwata/network-sysctl-monitor-follow-ups

network/sysctl-monitor: several follow-ups and cleanups

13 months agoupdate TODO 34457/head
Lennart Poettering [Fri, 5 Jul 2024 16:16:17 +0000 (18:16 +0200)] 
update TODO

13 months agoci: add testcase for multi-profile UKIs
Lennart Poettering [Tue, 16 Jul 2024 08:48:39 +0000 (10:48 +0200)] 
ci: add testcase for multi-profile UKIs

This tests the whole shebang:

1. That ukify can generate them properly
2. That systemd-boot can dissect them properly
3. That systemd-stub can accept profile selection propery
4. That the profile information ends up in /run/systemd/stub/ properly
5. That systemd-measure correctly calculates the expected PCR 11 values
   for each profile and that we can unlock a public-key bound LUKS
   volume with it

13 months agodocs: fix typo in filename: REATLIME -> REALTIME
Yu Watanabe [Tue, 17 Sep 2024 06:13:38 +0000 (15:13 +0900)] 
docs: fix typo in filename: REATLIME -> REALTIME

13 months agotest/repart: fix mkfs checker
Yu Watanabe [Tue, 17 Sep 2024 06:33:15 +0000 (15:33 +0900)] 
test/repart: fix mkfs checker

Follow-up for 27cacec939a46f61706d7b48a51b6f5880be4662.

13 months agoFix generator logging
Daan De Meyer [Mon, 16 Sep 2024 19:45:55 +0000 (21:45 +0200)] 
Fix generator logging

log_setup() overrides the previously set log target again so we
can't use it in log_setup_generator().

Follow-up for aa976d87889ae22b7347787a1ebd03a31dcc0a9e

13 months agoCONTROL_GROUP_INTERFACE: fix link to systemd-run code
Arian van Putten [Mon, 16 Sep 2024 21:35:13 +0000 (23:35 +0200)] 
CONTROL_GROUP_INTERFACE: fix link to systemd-run code

13 months agonetwork: drop unnecessary BPF related objects from Manager when disabled 34443/head
Yu Watanabe [Tue, 17 Sep 2024 06:00:06 +0000 (15:00 +0900)] 
network: drop unnecessary BPF related objects from Manager when disabled

13 months agonetwork/sysctl-monitor: do not allocate sysctl_shadow when eBPF is not supported
Yu Watanabe [Mon, 16 Sep 2024 06:10:46 +0000 (15:10 +0900)] 
network/sysctl-monitor: do not allocate sysctl_shadow when eBPF is not supported

When eBPF is disabled, the hashmap will be never used. Let's not
allocate it.

13 months agonetwork/sysctl-monitor: fix use-after-free
Yu Watanabe [Mon, 16 Sep 2024 06:08:36 +0000 (15:08 +0900)] 
network/sysctl-monitor: fix use-after-free

Previously, manager_free() did not assign NULL to Manager.sysctl_shadow,
hence sysctl_clear_link_shadows() called by link_free() will causes
use-after-free. To fix the issue, this makes Manager.sysctl_shadow will be
set to NULL after it is freed,

Fixes a bug introduced by 6d9ef22acdeac4b429efb75164341233955484af.

13 months agonetwork/sysctl: several cleanups for sysctl_add_monitor()
Yu Watanabe [Mon, 16 Sep 2024 00:58:51 +0000 (09:58 +0900)] 
network/sysctl: several cleanups for sysctl_add_monitor()

- rename rootcg -> root_cgroup_fd, to emphasize it is a fd,
- drop nested function call, and check error code.

13 months agobpf-link: introduce bpf_ring_buffer_free() and friends
Yu Watanabe [Mon, 16 Sep 2024 00:43:18 +0000 (09:43 +0900)] 
bpf-link: introduce bpf_ring_buffer_free() and friends

Then, replace rb_free() in networkd.

Follow-up for 6d9ef22acdeac4b429efb75164341233955484af.

13 months agonetwork/sysctl: use wrapped free functions
Yu Watanabe [Mon, 16 Sep 2024 00:33:58 +0000 (09:33 +0900)] 
network/sysctl: use wrapped free functions

No functional change, just refactoring.

Follow-up for 6d9ef22acdeac4b429efb75164341233955484af.

13 months agonetwork/sysctl-monitor: fix sanity check in cut_last()
Yu Watanabe [Mon, 16 Sep 2024 00:19:21 +0000 (09:19 +0900)] 
network/sysctl-monitor: fix sanity check in cut_last()

This also adds basic comment about the return code.

Follow-up for 6d9ef22acdeac4b429efb75164341233955484af.

13 months agoNEWS: fix typo
Yu Watanabe [Mon, 16 Sep 2024 02:49:57 +0000 (11:49 +0900)] 
NEWS: fix typo

Follow-up for dcc359010c0a0d8366ade913bad72acb98f4f0ef.

13 months agoman: fix typo
Yu Watanabe [Mon, 16 Sep 2024 02:49:02 +0000 (11:49 +0900)] 
man: fix typo

Follow-up for a632d8dd9f6cd5cf8e43862f0ea896cc571b1cab.

13 months agonspawn: fix typo
Yu Watanabe [Mon, 16 Sep 2024 02:47:40 +0000 (11:47 +0900)] 
nspawn: fix typo

Follow-up for d7a6bb9891ecc38a1bedef9689d00671bb0001ff.

13 months agoMerge pull request #34393 from poettering/tmpfiles-ownership-flag
Yu Watanabe [Mon, 16 Sep 2024 01:51:09 +0000 (10:51 +0900)] 
Merge pull request #34393 from poettering/tmpfiles-ownership-flag

tmpfiles: introduce an explicit line flag $ for enabling purge logic …

13 months agoMerge pull request #34425 from yuwata/udev-rules-case-insensitive-match
Yu Watanabe [Mon, 16 Sep 2024 01:42:37 +0000 (10:42 +0900)] 
Merge pull request #34425 from yuwata/udev-rules-case-insensitive-match

udev-rules: support case insensitive match

13 months agobasic/build: also include BTF status
Mike Yuan [Sun, 15 Sep 2024 14:04:32 +0000 (16:04 +0200)] 
basic/build: also include BTF status

13 months agocoredump: use _cleanup_(iovec_done) where appropriate
Lennart Poettering [Sun, 15 Sep 2024 14:16:34 +0000 (16:16 +0200)] 
coredump: use _cleanup_(iovec_done) where appropriate

13 months agoMerge pull request #34434 from poettering/bootctl-stub-paths
Yu Watanabe [Mon, 16 Sep 2024 01:41:24 +0000 (10:41 +0900)] 
Merge pull request #34434 from poettering/bootctl-stub-paths

bootctl: expose new stub path efi vars and related

13 months agobootctl: show whether a PE file is an addon in 'booctl kernel-identify'
Lennart Poettering [Tue, 16 Jul 2024 09:27:19 +0000 (11:27 +0200)] 
bootctl: show whether a PE file is an addon in 'booctl kernel-identify'

13 months agohwdb: add Kensington SlimBlade Pro trackball (Bluetooth mode)
Celeste Liu [Sun, 15 Sep 2024 16:31:41 +0000 (00:31 +0800)] 
hwdb: add Kensington SlimBlade Pro trackball (Bluetooth mode)

Wired and 2.4G dongle connectivity is covered by general trackball rule,
but with Bluetooth connectivity Kensington SlimBlade Pro uses the name
"SlimBlade Pro" which doesn't contain "[Tt]rack[Bb]all". We need to
process it specially.

Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
13 months agorepart: Fix log messages in partition_populate_directory()
Daan De Meyer [Sun, 15 Sep 2024 20:01:16 +0000 (22:01 +0200)] 
repart: Fix log messages in partition_populate_directory()

We're not actually populating a filesystem here, we're preparing
to populate a filesystem, so update the log messages accordingly.

13 months agotmpfiles.d: add $ flag to all lines which are clearly private to our packages, and... 34393/head
Lennart Poettering [Fri, 13 Sep 2024 15:24:20 +0000 (17:24 +0200)] 
tmpfiles.d: add $ flag to all lines which are clearly private to our packages, and should be removed on package removal

(This excludes any dirs that contain resources placed there by the user)

(I also didn't bother marking resources belonging to components that are
really not optional for us)

13 months agotmpfiles: introduce an explicit line flag $ for enabling purge logic for a line
Lennart Poettering [Thu, 12 Sep 2024 16:23:06 +0000 (18:23 +0200)] 
tmpfiles: introduce an explicit line flag $ for enabling purge logic for a line

Let's make the risk of accidental misuse, and mark lines that shall be
covered by --purge with an explicit new flag "$".

See: #33349

13 months agobootctl: also show current/default/oneshot entry literally in output 34434/head
Lennart Poettering [Tue, 16 Jul 2024 07:49:50 +0000 (09:49 +0200)] 
bootctl: also show current/default/oneshot entry literally in output

13 months agobootctl: add --print-loader-path + --print-stub-path
Lennart Poettering [Mon, 15 Jul 2024 16:21:35 +0000 (18:21 +0200)] 
bootctl: add --print-loader-path + --print-stub-path

These are inspired by the existing commands that return the path to the
boot or ESP partitions. However, these new commands show the path to the
boot loader (systemd-boot) or UKI/stub (systemd-stub) that was used on
the current boot. This information is derived from EFI variables.

13 months agoefivars: add helper that reads an fs path from an efi var
Lennart Poettering [Mon, 15 Jul 2024 16:18:35 +0000 (18:18 +0200)] 
efivars: add helper that reads an fs path from an efi var

13 months agobootctl: show stub partition data too in "status" too
Lennart Poettering [Mon, 15 Jul 2024 15:09:53 +0000 (17:09 +0200)] 
bootctl: show stub partition data too in "status" too

13 months agoman/bootup: rename initrd to exitrd at one more place
Mike Yuan [Sun, 15 Sep 2024 16:11:06 +0000 (18:11 +0200)] 
man/bootup: rename initrd to exitrd at one more place

Follow-up for f2c2fa87b6b7a7b3dcce9eeae8ce2a2ab50b60eb

13 months agotest: fix ASAN options in TEST-29-PORTABLE
Luca Boccassi [Sun, 15 Sep 2024 14:19:57 +0000 (16:19 +0200)] 
test: fix ASAN options in TEST-29-PORTABLE

Bash arrays cannot be exported, so we need to redefine it in each
subtest

Follow-up for 680dec33f27d408c94afe654113ba87e3bb8208b

13 months agoudev-rules: support case insensitive match 34425/head
Yu Watanabe [Sun, 15 Sep 2024 04:49:32 +0000 (13:49 +0900)] 
udev-rules: support case insensitive match

This introduces 'i' prefix for match string. When specified, string or
pattern will match case-insensitively.

Closes #34359.

Co-authored-by: Ryan Wilson <ryantimwilson@meta.com>
13 months agomkosi: Disable makepkg PKGBUILD linting using the newly added environment variable
Daan De Meyer [Sun, 15 Sep 2024 08:25:06 +0000 (10:25 +0200)] 
mkosi: Disable makepkg PKGBUILD linting using the newly added environment variable

13 months agoMerge pull request #34409 from DaanDeMeyer/boot-fix
Daan De Meyer [Sun, 15 Sep 2024 09:57:57 +0000 (11:57 +0200)] 
Merge pull request #34409 from DaanDeMeyer/boot-fix

boot: Make initrd_prepare() semantically equivalent to combine_initrds()

13 months agoboot: Make initrd_prepare() semantically equivalent to combine_initrds() 34409/head
Daan De Meyer [Fri, 13 Sep 2024 19:37:20 +0000 (21:37 +0200)] 
boot: Make initrd_prepare() semantically equivalent to combine_initrds()

Currently, trying to boot images with type 1 entries generated by mkosi
with qemu freezes in the kernel EFI stub. I'm not going to pretend I
understand what's going on, but when I reported a similar problem with
UKIs, the fix was to rework the code in combine_initrds() in the stub
to behave like it does today. It seems that same fix was never applied
to systemd-boot's combine_initrds() function, so let's do that now to
fix the freezes I've been seeing trying to boot images with type 1 entries
in qemu.

13 months agoboot: Use TAKE_STRUCT() in one more place
Daan De Meyer [Sun, 15 Sep 2024 08:11:45 +0000 (10:11 +0200)] 
boot: Use TAKE_STRUCT() in one more place

13 months agoMerge pull request #34347 from poettering/uki-with-many-bootctl
Lennart Poettering [Sun, 15 Sep 2024 07:06:58 +0000 (09:06 +0200)] 
Merge pull request #34347 from poettering/uki-with-many-bootctl

bootctl: multi-profile UKI support

13 months agoudev-rules: embed UdevRuleToken.attr_match_remove_trailing_whitespace flag into UdevR...
Yu Watanabe [Sun, 15 Sep 2024 03:53:30 +0000 (12:53 +0900)] 
udev-rules: embed UdevRuleToken.attr_match_remove_trailing_whitespace flag into UdevRuleMatchType

No functional change, just refactoring and preparation for later change.

13 months agotest: split TEST-29-PORTABLE in subtests
Luca Boccassi [Sat, 14 Sep 2024 19:46:38 +0000 (21:46 +0200)] 
test: split TEST-29-PORTABLE in subtests

The test script is quite long and hard to read. Split it.
Start with one image-based and one directory-based subtest.

13 months agoload-fragment: terminate the specifier table (#34421)
Ronan Pigott [Sun, 15 Sep 2024 03:21:39 +0000 (20:21 -0700)] 
load-fragment: terminate the specifier table (#34421)

Otherwise an invalid specifier iterates over uninitialized data.

Fixes a bug introduced by 0b40688d1830abc6f59b1f1f67eccd757c23eb09 (v254).

13 months agoMerge pull request #34419 from yuwata/creds
Yu Watanabe [Sun, 15 Sep 2024 03:15:57 +0000 (12:15 +0900)] 
Merge pull request #34419 from yuwata/creds

creds: several follow-ups and cleanups

13 months agoMerge pull request #34405 from poettering/dns-domain-validate-fix
Yu Watanabe [Sat, 14 Sep 2024 18:33:12 +0000 (03:33 +0900)] 
Merge pull request #34405 from poettering/dns-domain-validate-fix

dns-domain: fix validation check for max name

13 months agocreds: move -h/--help and --version to correct section in the help message 34419/head
Yu Watanabe [Sat, 14 Sep 2024 18:21:41 +0000 (03:21 +0900)] 
creds: move -h/--help and --version to correct section in the help message

13 months agocreds: add short comment that has-tpm2 is moved
Yu Watanabe [Sat, 14 Sep 2024 18:20:53 +0000 (03:20 +0900)] 
creds: add short comment that has-tpm2 is moved

Follow-up for 58e359604ffdca12bb4d2c5807b96e070611c0f6.

13 months agocreds: align table
Yu Watanabe [Sat, 14 Sep 2024 18:19:21 +0000 (03:19 +0900)] 
creds: align table

13 months agocreds: drop unnecessary include of build-path.h
Yu Watanabe [Sat, 14 Sep 2024 18:18:32 +0000 (03:18 +0900)] 
creds: drop unnecessary include of build-path.h

Follow-up for 58e359604ffdca12bb4d2c5807b96e070611c0f6.

13 months agoAdd HUAWEI MateBook D 15 AMD ACCEL properties
Matthieu CHARETTE [Sat, 14 Sep 2024 14:36:13 +0000 (16:36 +0200)] 
Add HUAWEI MateBook D 15 AMD ACCEL properties

13 months agoMerge pull request #34401 from poettering/implicit-sigprocmask
Mike Yuan [Sat, 14 Sep 2024 15:47:47 +0000 (17:47 +0200)] 
Merge pull request #34401 from poettering/implicit-sigprocmask

tree-wide: make sigprocmask() changes more automatic

13 months agoAdd ACCEL_MOUNT_MATRIX for Chuwi Hi10 Max.
Gregory Arenius [Fri, 13 Sep 2024 23:13:58 +0000 (16:13 -0700)] 
Add ACCEL_MOUNT_MATRIX for Chuwi Hi10 Max.

13 months agodns-domain: add test case from #34399 34405/head
Lennart Poettering [Fri, 13 Sep 2024 15:45:58 +0000 (17:45 +0200)] 
dns-domain: add test case from #34399

13 months agodns-domain: validate dns domain name max size based on unescaped, not escaped size
Lennart Poettering [Fri, 13 Sep 2024 15:54:06 +0000 (17:54 +0200)] 
dns-domain: validate dns domain name max size based on unescaped, not escaped size

Otherwise we'll consider various domains invalid that really shouldn't
be considered invalid.

Fixes: #34399
13 months agodns-domain: follow our current variable naming style
Lennart Poettering [Fri, 13 Sep 2024 15:43:28 +0000 (17:43 +0200)] 
dns-domain: follow our current variable naming style

13 months agocore: do not fail if ignorable img.v/ vpick dir is empty
Luca Boccassi [Thu, 12 Sep 2024 16:46:04 +0000 (18:46 +0200)] 
core: do not fail if ignorable img.v/ vpick dir is empty

If the vpick directory is configured to be ignored if missing, do not
fail and just skip ahead.

Follow-up for 5e79dd96a88
Follow-up for 622efc544dc

13 months agoupdate TODO 34401/head
Lennart Poettering [Fri, 13 Sep 2024 09:02:42 +0000 (11:02 +0200)] 
update TODO

13 months agotree-wide: make sigprocmask() changes more automatic
Lennart Poettering [Fri, 13 Sep 2024 08:36:59 +0000 (10:36 +0200)] 
tree-wide: make sigprocmask() changes more automatic

This tries to get rid of most manual sigprocmask() changes, in favour
of:

1. The SD_EVENT_SIGNAL_PROCMASK flag to sd_event_add_signal()
2. The sd_event_set_signal_exit() call for handling SIGTERM/SIGINT
3. Move masking of SIGWINCH into ptyfwd, out of nspawn/vmspawn/run

And while we are at it get rid of a bunch of event source fields whose
lifetime is bound to the sd_event object they belong to anyway, and make
use of the "floating" event source feature of sd-event instead.

13 months agoMerge pull request #34402 from keszybz/notes-readme
Luca Boccassi [Fri, 13 Sep 2024 13:19:56 +0000 (15:19 +0200)] 
Merge pull request #34402 from keszybz/notes-readme

Add examples not package/dlopen notes

13 months agodocs/ELF_DLOPEN_METADATA: add detailed example 34402/head
Zbigniew Jędrzejewski-Szmek [Fri, 13 Sep 2024 12:51:25 +0000 (14:51 +0200)] 
docs/ELF_DLOPEN_METADATA: add detailed example

13 months agodocs/ELF_PACKAGE_METADATA: add detailed example
Zbigniew Jędrzejewski-Szmek [Fri, 13 Sep 2024 12:35:43 +0000 (14:35 +0200)] 
docs/ELF_PACKAGE_METADATA: add detailed example

When the spec was initially written, we didn't add good documentation of how to
display the notes, also because there was no good way to display the data
except manually extracting the section to a file and running 'jq' on that. But
the tools have improved, so let's show the users how easy it is to use this
data.

13 months agomkosi: update debian commit reference
Luca Boccassi [Thu, 12 Sep 2024 19:54:55 +0000 (21:54 +0200)] 
mkosi: update debian commit reference

0704bfd93f Use dh-exec for d/systemd-timesyncd.manpages
b668a942e9 Install new sd-stub tmpfiles.d
57aa6890f3 Install new org.freedesktop.timesync1 manpage
63e7fb5a48 Install new shell credentials snippets
3ce727ad45 Update changelog for 256.6-1 release
65e0731d3a Note systemd-cryptsetup package split in NEWS
*   2bd9927f5d Update upstream source from tag 'upstream/256.6'
|\
| * 27c691ac24 New upstream version 256.6
395974bae4 Re-enable utmp support, tmux's autopkgtests require it
685e1c84eb initramfs-tools: ensure rules file exists before invoking chzdev
a454822396 Filter out zdev rules in the initramfs hook (LP: #2044104)
cd0179221d salsa-ci: test the stage1 build profile
55917feab0 Update changelog for 256.5-2 release
f280a3cbf5 Disable utmp support, replaced by wtmpdb
635c5f48dc d/t/upstream: do not pass /var/cache/apt/archives to PackageDirectories

13 months agopo: Translated using Weblate (Finnish)
Ricky Tigg [Thu, 12 Sep 2024 13:43:04 +0000 (15:43 +0200)] 
po: Translated using Weblate (Finnish)

Currently translated at 100.0% (253 of 253 strings)

Co-authored-by: Ricky Tigg <ricky.tigg@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/fi/
Translation: systemd/main

13 months agoMerge pull request #34392 from poettering/format-util-split
Daan De Meyer [Fri, 13 Sep 2024 07:18:56 +0000 (09:18 +0200)] 
Merge pull request #34392 from poettering/format-util-split

tweaks to networkd sysctl logging

13 months agocatalog: beef up new sysctl message 34392/head
Lennart Poettering [Thu, 12 Sep 2024 15:51:28 +0000 (17:51 +0200)] 
catalog: beef up new sysctl message

Let's make use of the templating logic, to make the entry more useful.

13 months agocatalog: rebreak catalog entry
Lennart Poettering [Thu, 12 Sep 2024 15:51:24 +0000 (17:51 +0200)] 
catalog: rebreak catalog entry

13 months agonetworkd: move sysctl code to use PID_FMT
Lennart Poettering [Thu, 12 Sep 2024 15:46:12 +0000 (17:46 +0200)] 
networkd: move sysctl code to use PID_FMT

Now that format-util.h doesn't pull in net/if.h anymore, we can use it
to format PIDs in the networkd-sysctl.c code.