]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 months agonetwork: use dns_name_hash_ops_free to manage domains 37832/head
Yu Watanabe [Fri, 13 Jun 2025 15:08:41 +0000 (00:08 +0900)] 
network: use dns_name_hash_ops_free to manage domains

4 months agoordered-set: introduce ordered_set_put_strdup_full() and friends which take hash ops
Yu Watanabe [Fri, 13 Jun 2025 15:05:59 +0000 (00:05 +0900)] 
ordered-set: introduce ordered_set_put_strdup_full() and friends which take hash ops

4 months agonetwork: use the same hash ops used when allocated
Yu Watanabe [Fri, 13 Jun 2025 14:46:26 +0000 (23:46 +0900)] 
network: use the same hash ops used when allocated

Fixes #37830.

4 months agonetwork/can: properly handle CAN.RestartSec=0
Ryan Blue [Fri, 13 Jun 2025 05:36:47 +0000 (01:36 -0400)] 
network/can: properly handle CAN.RestartSec=0

Previously, 0 was ignored and restart-ms wouldn't get added to the
netlink message. Instead, set the attribute unconditionally.

4 months agozsh: complete positional devpath in udevadm info/trigger
Ronan Pigott [Fri, 13 Jun 2025 09:09:55 +0000 (02:09 -0700)] 
zsh: complete positional devpath in udevadm info/trigger

4 months agoudev/rules.d: import hwdb before calling net_id builtin
Yu Watanabe [Thu, 12 Jun 2025 09:25:54 +0000 (18:25 +0900)] 
udev/rules.d: import hwdb before calling net_id builtin

The commit cdcb1eeeb883b2ecb3992865f458f874900ddb87 adds
ID_NET_NAME_INCLUDE_DOMAIN property support in net_id builtin.
The property is basically set through hwdb. However, previously hwdb was
imported after calling net_id builtin, hence when net_id is called, the
property was never set.

This makes hwdb is imported before calling net_id builtin, so that the
property is set when net_id is called if hwdb has an entry about that
for the interface.

Follow-up for cdcb1eeeb883b2ecb3992865f458f874900ddb87.
Fixes #37758.

4 months agonetwork/dhcpv4: add ability to use BOOTP (#34888)
Yu Watanabe [Fri, 13 Jun 2025 08:12:19 +0000 (17:12 +0900)] 
network/dhcpv4: add ability to use BOOTP (#34888)

BOOTP can be used to sign a static IP to clients. Instead of using the
four message exchange, and Option 53 (DHCP Message Type) there is only a
two message exchange.

Add the following network option to enable BOOTP:

[DHCPv4]
BOOTP=yes

This will allow a two message request / reply sequence that doesn't
require DHCP message types.

Fixes: #34885
4 months agotest-network: add test case for bootp 34888/head
Avram Dorfman [Wed, 18 Dec 2024 18:56:44 +0000 (13:56 -0500)] 
test-network: add test case for bootp

Co-authored-by: Yu Watanabe <watanabe.yu+github@gmail.com>
4 months agonetwork/dhcp4: release previously acquired DHCP lease when BOOTP will be enabled
Yu Watanabe [Thu, 12 Jun 2025 22:24:04 +0000 (07:24 +0900)] 
network/dhcp4: release previously acquired DHCP lease when BOOTP will be enabled

4 months agonetwork/dhcp4: add ability to use BOOTP
Colin Foster [Tue, 22 Oct 2024 18:26:36 +0000 (13:26 -0500)] 
network/dhcp4: add ability to use BOOTP

Add the following network option to enable BOOTP:

[DHCPv4]
Bootp=yes

This will allow a two message request / reply sequence that doesn't
require DHCP message types.

Co-authored-by: Avram Dorfman <dorfman@est.org>
4 months agotest-dhcp-client: add test for bootp clients
Colin Foster [Tue, 29 Oct 2024 00:50:06 +0000 (19:50 -0500)] 
test-dhcp-client: add test for bootp clients

Verify that BOOTP replies are successfully handled by the sd-dhcp-client
when configured for BOOTP.

Co-authored-by: Avram Dorfman <dorfman@est.org>
4 months agosd-dhcp-client: add ability to support bootp
Colin Foster [Wed, 30 Oct 2024 01:50:58 +0000 (20:50 -0500)] 
sd-dhcp-client: add ability to support bootp

BOOTP can be used to sign a static IP to clients. Instead of using the
four message exchange, and Option 53 (DHCP Message Type) there is only a
two message exchange. This adds the support for this exchange.

Co-authored-by: Avram Dorfman <dorfman@est.org>
Co-authored-by: Yu Watanabe <watanabe.yu+github@gmail.com>
4 months agosd-dhcp-client: move comment to relevant place
Yu Watanabe [Thu, 12 Jun 2025 20:59:56 +0000 (05:59 +0900)] 
sd-dhcp-client: move comment to relevant place

4 months agodhcp: several coding style cleanups
Yu Watanabe [Thu, 12 Jun 2025 20:44:23 +0000 (05:44 +0900)] 
dhcp: several coding style cleanups

- rename arguments for storing results,
- reorder arguments to move ret_xyz at the end,
- add several missing assertions.

4 months agodhcp: relocate type field
Colin Foster [Wed, 11 Jun 2025 10:50:20 +0000 (05:50 -0500)] 
dhcp: relocate type field

The type field is a DHCP-specific parameter. Relocate the parameter so
there is a clearer separation between DHCP and BOOTP parameters.

4 months agodiscover-image: several cleanups around image_discover() (#37813)
Yu Watanabe [Thu, 12 Jun 2025 22:57:28 +0000 (07:57 +0900)] 
discover-image: several cleanups around image_discover() (#37813)

4 months agopo: Translated using Weblate (Greek)
Jim Spentzos [Thu, 12 Jun 2025 22:49:46 +0000 (22:49 +0000)] 
po: Translated using Weblate (Greek)

Currently translated at 34.6% (89 of 257 strings)

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

4 months agosysext: drop unnecessary struct MethodListParameters 37813/head
Yu Watanabe [Wed, 11 Jun 2025 13:26:04 +0000 (22:26 +0900)] 
sysext: drop unnecessary struct MethodListParameters

4 months agoinclude/linux: update kernel headers from v6.16-rc1
Yu Watanabe [Thu, 12 Jun 2025 09:46:58 +0000 (18:46 +0900)] 
include/linux: update kernel headers from v6.16-rc1

4 months agovmspawn: add extra drives *after* the primary drive, not before
Lennart Poettering [Thu, 12 Jun 2025 11:11:59 +0000 (13:11 +0200)] 
vmspawn: add extra drives *after* the primary drive, not before

Otherwise, if you mix --image= with --extra-drive= you end up with
/dev/sda pointing to the latter, nor the former. Which is really weird
of course...

4 months agonetwork: also check ID_NET_MANAGED_BY property on reconfigure
Yu Watanabe [Wed, 11 Jun 2025 09:05:46 +0000 (18:05 +0900)] 
network: also check ID_NET_MANAGED_BY property on reconfigure

Previously, the property was checked only when an uevent is received,
so even if an interface has ID_NET_MANAGED_BY property, the interface
will be configured by networkd when reconfiguration is triggered e.g.
when interface state is changed.

Follow-up for ba87a61d05d637be9f0b21707f7fe3b0a74c5a05.
Fixes #36997.

4 months agotest-network: improve bonding tests (#37808)
Yu Watanabe [Thu, 12 Jun 2025 05:24:03 +0000 (14:24 +0900)] 
test-network: improve bonding tests (#37808)

4 months agomachinectl: several trivial cleanups and man page fix (#37812)
Mike Yuan [Wed, 11 Jun 2025 20:03:28 +0000 (22:03 +0200)] 
machinectl: several trivial cleanups and man page fix (#37812)

Fixes #27481.

4 months agonetwork: use up_or_down() at several more places
Yu Watanabe [Wed, 11 Jun 2025 05:14:26 +0000 (14:14 +0900)] 
network: use up_or_down() at several more places

4 months agodiscover-image: make image_discover() allocate hashmap when necessary
Yu Watanabe [Wed, 11 Jun 2025 13:22:55 +0000 (22:22 +0900)] 
discover-image: make image_discover() allocate hashmap when necessary

4 months agodiscover-image: coding style fixlets
Yu Watanabe [Wed, 11 Jun 2025 12:54:35 +0000 (21:54 +0900)] 
discover-image: coding style fixlets

4 months agomachinectl: use _RUNNER_MAX rather than ELEMENTSOF() 37812/head
Yu Watanabe [Wed, 11 Jun 2025 13:40:30 +0000 (22:40 +0900)] 
machinectl: use _RUNNER_MAX rather than ELEMENTSOF()

4 months agomachinectl: align table
Yu Watanabe [Wed, 11 Jun 2025 13:37:58 +0000 (22:37 +0900)] 
machinectl: align table

4 months agoman/machinectl: underscore is not allowed in machine name
Yu Watanabe [Wed, 11 Jun 2025 12:40:21 +0000 (21:40 +0900)] 
man/machinectl: underscore is not allowed in machine name

Fixes #27481.

4 months agotest-network: add test case for issue #32186 37808/head
Yu Watanabe [Wed, 11 Jun 2025 08:28:28 +0000 (17:28 +0900)] 
test-network: add test case for issue #32186

The reporter said that the issue is caused by BindCarrier=, but
I cannot reproduce it. Anyway, let's test it.

4 months agotest-network: read the current link flags of bond interface
Yu Watanabe [Wed, 11 Jun 2025 08:17:49 +0000 (17:17 +0900)] 
test-network: read the current link flags of bond interface

Follow-up for 2700d2c7dc024b71396d564a53f32638efed77af.

4 months agologin: drop unnecessary dependency to libacl
Yu Watanabe [Wed, 11 Jun 2025 04:02:27 +0000 (13:02 +0900)] 
login: drop unnecessary dependency to libacl

With c960ca2be1cfd183675df581f049a0c022c1c802, logind does not handle
ACL anymore, but triggers events for udevd and udevd updates ACL.
Hence, libacl is not necessary for logind.

4 months agostring-util: introduce strprepend_with_separator()
Mike Yuan [Fri, 14 Feb 2025 19:27:55 +0000 (20:27 +0100)] 
string-util: introduce strprepend_with_separator()

4 months agoman: fix typo in dns-delegate example
Luke Yeager [Tue, 10 Jun 2025 19:06:40 +0000 (14:06 -0500)] 
man: fix typo in dns-delegate example

4 months agoresolved: ignore mDNS replies from legacy mDNS ports
Lennart Poettering [Thu, 5 Jun 2025 16:51:34 +0000 (18:51 +0200)] 
resolved: ignore mDNS replies from legacy mDNS ports

mDNS replies always have to come from the mDNS port (unlike mDNS
queries, which are also allowed from non-mDNS ports). Hence refuse this.

Fixes: #33806
4 months agoadd parameter to specify hash alg used for PKCS#1 signature in PKCS#7 creation (...
Luca Boccassi [Tue, 10 Jun 2025 22:07:26 +0000 (23:07 +0100)] 
add parameter to specify hash alg used for PKCS#1 signature in PKCS#7 creation (#37794)

The pkcs7_new() function currently uses the hash algorithm from the X509
certificate's signature, but the content signature may use a different
hash algorithm. This adds a parameter to allow specifying what hash
algorithm the content signature generation used.

4 months agoresolve: exit from loop for transactions when transactions has been regenerated
Yu Watanabe [Wed, 14 May 2025 22:18:38 +0000 (07:18 +0900)] 
resolve: exit from loop for transactions when transactions has been regenerated

Fixes #37458.

4 months agotest: update keyutil test to verify new pkcs7 --hash-algorithm param 37794/head
Dan Streetman [Fri, 6 Jun 2025 18:18:06 +0000 (14:18 -0400)] 
test: update keyutil test to verify new pkcs7 --hash-algorithm param

4 months agokeyutil: add parameter to specify hash algorithm used for PKCS#1 signature
Dan Streetman [Sat, 8 Mar 2025 21:47:45 +0000 (16:47 -0500)] 
keyutil: add parameter to specify hash algorithm used for PKCS#1 signature

4 months agoopenssl: add hash_algorithm parameter to pkcs7_new()
Dan Streetman [Fri, 6 Jun 2025 16:31:40 +0000 (12:31 -0400)] 
openssl: add hash_algorithm parameter to pkcs7_new()

The pkcs7_new() function currently uses the hash algorithm from the X509
certificate's signature, but the content signature may use a different hash
algorithm. This adds a parameter to allow specifying what hash algorithm the
content signature generation used.

4 months agotree-wide: say in log message that we ignore error conditions of certain sockopts
Lennart Poettering [Tue, 10 Jun 2025 05:20:51 +0000 (07:20 +0200)] 
tree-wide: say in log message that we ignore error conditions of certain sockopts

Follow our usual style on this.

Follow-up for: #37793

4 months agoTwo coding style fixlets (#37799)
Yu Watanabe [Tue, 10 Jun 2025 06:28:51 +0000 (15:28 +0900)] 
Two coding style fixlets (#37799)

4 months agodoc: explicitly mention the license of libudev in LICENSES/README.md (#37792)
Dai MIKURUBE [Tue, 10 Jun 2025 05:46:18 +0000 (14:46 +0900)] 
doc: explicitly mention the license of libudev in LICENSES/README.md (#37792)

4 months agohwdb: Added Beacn and TC-Helicon Audio controllers (#37798)
Craig McLure [Tue, 10 Jun 2025 04:52:18 +0000 (05:52 +0100)] 
hwdb: Added Beacn and TC-Helicon Audio controllers (#37798)

This adds the TC-Helicon and Beacn audio devices as AV production hardware,
so that user-space can communicate with them and monitor their inputs.

4 months agosysusers: always initialize ret_xyz when write_temporary_xyz() succeed 37799/head
Yu Watanabe [Tue, 10 Jun 2025 03:41:59 +0000 (12:41 +0900)] 
sysusers: always initialize ret_xyz when write_temporary_xyz() succeed

No functional change. Just for following our coding style.

4 months agodirent-util: follow our coding style
Yu Watanabe [Tue, 10 Jun 2025 03:56:15 +0000 (12:56 +0900)] 
dirent-util: follow our coding style

4 months agopo: Translated using Weblate (Portuguese)
Américo Monteiro [Mon, 9 Jun 2025 18:29:27 +0000 (18:29 +0000)] 
po: Translated using Weblate (Portuguese)

Currently translated at 100.0% (257 of 257 strings)

Co-authored-by: Américo Monteiro <a_monteiro@gmx.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pt/
Translation: systemd/main

4 months agosocket: downgrade not-supported logging for SO_PASSSEC
Luca Boccassi [Mon, 9 Jun 2025 16:24:24 +0000 (17:24 +0100)] 
socket: downgrade not-supported logging for SO_PASSSEC

Kernel 6.16 started returning EOPNOTSUPP when a required kconfig
is disabled. Downgrade to debug level in that case.

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

4 months agomeson: drop -Wno-typedef-redefinition for clang
Zbigniew JÄ™drzejewski-Szmek [Mon, 9 Jun 2025 15:14:17 +0000 (17:14 +0200)] 
meson: drop -Wno-typedef-redefinition for clang

It was added in 1a40a3393e904fe4683f6d2b2450cfbd94a34000 for autotools,
sadly with no explanation, and forward-ported to meson in
5c23128daba7236a6080383b2a5649033cfef85c. Things seems to work fine without
it now so drop it.

Tested with clang-20.1.5-1.fc43.x86_64.

4 months agobasic/forward: replace tab with space
Mike Yuan [Mon, 9 Jun 2025 18:38:20 +0000 (20:38 +0200)] 
basic/forward: replace tab with space

4 months agopo: Translated using Weblate (Portuguese)
Américo Monteiro [Mon, 9 Jun 2025 18:02:38 +0000 (18:02 +0000)] 
po: Translated using Weblate (Portuguese)

Currently translated at 91.8% (236 of 257 strings)

Co-authored-by: Américo Monteiro <a_monteiro@gmx.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pt/
Translation: systemd/main

4 months agoSeveral follow-ups for recent header cleanups (#37785)
Yu Watanabe [Mon, 9 Jun 2025 16:01:05 +0000 (01:01 +0900)] 
Several follow-ups for recent header cleanups (#37785)

4 months agomeson: update generating lists
Yu Watanabe [Sat, 7 Jun 2025 19:19:46 +0000 (04:19 +0900)] 
meson: update generating lists

- config.h is not necessary when generating lists, hence drop it.
- linux/audit.h and libaudit.h are included by missing_audit.h,
  hence not necessary to include them explicitly.

4 months agoptyfwd: use hostname argument in pty_forward_set_window_title() if set
Antonio Alvarez Feijoo [Mon, 9 Jun 2025 12:28:31 +0000 (14:28 +0200)] 
ptyfwd: use hostname argument in pty_forward_set_window_title() if set

Fixes 23f9ff472409d5f1cd0f74c47fa6f86e9df44828

4 months agoinclude: net/if.h requires features.h 37785/head
Yu Watanabe [Mon, 9 Jun 2025 04:59:39 +0000 (13:59 +0900)] 
include: net/if.h requires features.h

The header uses __THROW, which is defined in features.h, to make the
header self-consistent.
Note, src/basic/include/sys/mount.h also uses __THROW, and includes
features.h.

4 months agojournal: use poll.h rather than sys/poll.h
Yu Watanabe [Mon, 9 Jun 2025 00:43:52 +0000 (09:43 +0900)] 
journal: use poll.h rather than sys/poll.h

This does not change anything, as poll.h is a one-line wrapper of sys/poll.h.
Note that man pages e.g. poll(2) indicate to include poll.h rather than sys/poll.h.
So, let's use poll.h.

4 months agoselinux-setup.c: drop redundant inclusion of selinux/selinux.h
Yu Watanabe [Sun, 8 Jun 2025 20:42:22 +0000 (05:42 +0900)] 
selinux-setup.c: drop redundant inclusion of selinux/selinux.h

The header is anyway included by selinux-util.h in below.

4 months agotree-wide: drop unnecessary inclusion of sys/quota.h
Yu Watanabe [Sun, 8 Jun 2025 20:52:17 +0000 (05:52 +0900)] 
tree-wide: drop unnecessary inclusion of sys/quota.h

As it is included by quota-util.h anyway.

4 months agoutmp-wtmp: replace _PATH_WTMPX -> WTMPX_FILE
Yu Watanabe [Sun, 8 Jun 2025 20:11:01 +0000 (05:11 +0900)] 
utmp-wtmp: replace _PATH_WTMPX -> WTMPX_FILE

_PATH_WTMPX is a kind of internal definition in glibc, and
WTMPX_FILE should be an exposed definition. Both are same,
let's use WTMPX_FILE.
Note, for utmp, we use UTMPX_FILE, rather than _PATH_UTMPX.
Let's use consistent macros.

4 months agoforward: also include paths.h
Yu Watanabe [Sun, 8 Jun 2025 23:33:36 +0000 (08:33 +0900)] 
forward: also include paths.h

It provides several important constants, especially _PATH_BSHELL, which
is used in PID1, executor, and run. The header has been included
indirectly through e.g. libmount.h, mntent.h, utmpx.h, and so on.
Let's explicitly include it in forward.h, as libmount.h and friends that
includes paths.h are irrelevant to _PATH_BSHELL, and we may easily fail
to build when code is touched.
The header is not heavy, hence should not hurt anything.

4 months agocryptsetup-util: move definition of crypt_token_max()
Yu Watanabe [Sun, 8 Jun 2025 00:55:08 +0000 (09:55 +0900)] 
cryptsetup-util: move definition of crypt_token_max()

As it uses streq(), but string-util.h is not included in the header.

4 months agolibcrypt-util: include random-util.h
Yu Watanabe [Sun, 8 Jun 2025 01:04:45 +0000 (10:04 +0900)] 
libcrypt-util: include random-util.h

Necessary for crypto_random_bytes(), which is used in the branch that
HAVE_CRYPT_GENSALT_RA is false. Unfortunately, our CIs tested only the
other branch.

4 months agomeson: fix doubled # before include
Yu Watanabe [Mon, 9 Jun 2025 02:22:05 +0000 (11:22 +0900)] 
meson: fix doubled # before include

Follow-up for b5337d1d524545e9938391e871f39cccc1d1fc14.

4 months agotest: do not fail when lacking privs to create sysfs directory
Luca Boccassi [Sun, 8 Jun 2025 11:21:58 +0000 (12:21 +0100)] 
test: do not fail when lacking privs to create sysfs directory

4109s /* test_mdio_bus */
4109s src/libsystemd/sd-device/test-sd-device.c:55: Assertion failed: Expected "mkdir_p(syspath, 0755)" to succeed, but got error: Permission denied
4109s (mdio_bus) terminated by signal ABRT.
4109s src/libsystemd/sd-device/test-sd-device.c:37: Assertion failed: Expected "r = safe_fork("(mdio_bus)", FORK_CLOSE_ALL_FDS|FORK_DEATHSIG_SIGTERM|FORK_REOPEN_LOG|FORK_LOG|FORK_WAIT|FORK_NEW_MOUNTNS|FORK_MOUNTNS_SLAVE, NULL)" to succeed, but got error: Protocol error

Follow-up for 687a92a1b6a62b705acbb9065bb60fc6e84c9c20

5 months agoforward: Drop socklen_t forward declaration
Daan De Meyer [Sat, 7 Jun 2025 17:23:45 +0000 (19:23 +0200)] 
forward: Drop socklen_t forward declaration

This is glibc specific and doesn't exist on musl, since removing only
means adding one more include in selinux-util.h, let's drop it.

Fixes #37779

5 months agonspawn: do basic port to PidRef
Lennart Poettering [Fri, 23 May 2025 15:22:40 +0000 (17:22 +0200)] 
nspawn: do basic port to PidRef

THis is sometimes a bit superficial, but in many cases allows us to use
pidfd for various of our operations.

5 months agomachined: open up machine registration for unpriv clients also via D-Bus
Lennart Poettering [Fri, 23 May 2025 12:09:55 +0000 (14:09 +0200)] 
machined: open up machine registration for unpriv clients also via D-Bus

This is already opened up via Varlink. Let's also open it up via D-Bus
with the same polikit operation.

5 months agomachined: properly open up all missing method calls via D-Bus to unpriv clients
Lennart Poettering [Fri, 23 May 2025 12:10:50 +0000 (14:10 +0200)] 
machined: properly open up all missing method calls via D-Bus to unpriv clients

These method calls all already have polkit hookup, hence actually allow
them to go through on all levels.

This is mostly playing catchup with a variety of calls added over the
years.

5 months agocoredump: fix 0-passed-as-pointer warning
Zbigniew JÄ™drzejewski-Szmek [Fri, 6 Jun 2025 15:03:46 +0000 (17:03 +0200)] 
coredump: fix 0-passed-as-pointer warning

5 months agonspawn: start polkit agent while we do polkit operations
Lennart Poettering [Fri, 23 May 2025 10:17:47 +0000 (12:17 +0200)] 
nspawn: start polkit agent while we do polkit operations

Let's make sure unpriv nspawn can acquire privs even when invoked
outside of a desktop environment that has a polkit agent registered.

5 months agotest: extend timeout and enable generating debugging logs
Yu Watanabe [Fri, 6 Jun 2025 15:09:37 +0000 (00:09 +0900)] 
test: extend timeout and enable generating debugging logs

Not sure why the test failed, but maybe the test environment is too
slow? Even this does not fix the failure, by enabling debugging logs,
this hopefully provides more useful information for debugging.

For issue #37685.

5 months agorun: ignore bus connection error in acquiring invocation ID (#37763)
Yu Watanabe [Fri, 6 Jun 2025 16:55:21 +0000 (01:55 +0900)] 
run: ignore bus connection error in acquiring invocation ID (#37763)

This introduce bus_error_is_connection(), and use it where applicable.
Then, this makes connection errors in acquiring invocation ID by
systemd-run handled gracefully, like we already do other places.

Fixes #37675.

5 months agotree-wide: allow building with -Wgnu-variable-sized-type-not-at-end option for clang...
Yu Watanabe [Fri, 6 Jun 2025 16:02:38 +0000 (01:02 +0900)] 
tree-wide: allow building with -Wgnu-variable-sized-type-not-at-end option for clang (#37499)

Follow-up for #36993.
Closes #37497.

5 months agorun: ignore bus connection error in acquiring invocation ID 37763/head
Yu Watanabe [Fri, 6 Jun 2025 10:50:34 +0000 (19:50 +0900)] 
run: ignore bus connection error in acquiring invocation ID

Similar to 2b983b43c6e4a0dc9d58671eaf2f508a8ce8e3b9, but for acquiring
invocation ID.

Fixes #37675.

5 months agosd-device: replace '!' with '/' before calling sd_device_new_from_subsystem_sysname()
Yu Watanabe [Fri, 6 Jun 2025 12:14:20 +0000 (21:14 +0900)] 
sd-device: replace '!' with '/' before calling sd_device_new_from_subsystem_sysname()

Device ID uses device directory name as is, hence may contain '!', but
sd_device_new_from_subsystem_sysname() expects that the input is sysname.
So, we need to replace '!' with '/'.

Follow-up for 1393c5a2a42d6ff16afcdc3ac39f007921b9cb57.
Fixes #37711.

5 months agocodeql: taint basename()
Lennart Poettering [Fri, 6 Jun 2025 13:56:46 +0000 (15:56 +0200)] 
codeql: taint basename()

5 months agorepart: fix CopyBlocks=auto for verity-sig partitions, even harder (#37704)
Lennart Poettering [Fri, 6 Jun 2025 14:06:26 +0000 (16:06 +0200)] 
repart: fix CopyBlocks=auto for verity-sig partitions, even harder (#37704)

@DaanDeMeyer, this is for you.

Seems to work great here to duplicate ParticleOS onto another disk.

5 months agotree-wide: basename -> path_extract_filename (#34906)
Lennart Poettering [Fri, 6 Jun 2025 13:53:28 +0000 (15:53 +0200)] 
tree-wide: basename -> path_extract_filename (#34906)

5 months agotree-wide: introduce bus_error_is_connection() and use it where applicable
Yu Watanabe [Fri, 6 Jun 2025 12:42:01 +0000 (21:42 +0900)] 
tree-wide: introduce bus_error_is_connection() and use it where applicable

5 months agorepart: use partition_designator_is_verity_sig() + partition_designator_is_verity... 37704/head
Lennart Poettering [Fri, 6 Jun 2025 10:30:41 +0000 (12:30 +0200)] 
repart: use partition_designator_is_verity_sig() + partition_designator_is_verity() more

5 months agorepart: try harder to find verity-sig partitions for CopyBlocks=auto
Lennart Poettering [Mon, 2 Jun 2025 17:27:33 +0000 (19:27 +0200)] 
repart: try harder to find verity-sig partitions for CopyBlocks=auto

verity-sig partitions are not kernel concepts, hence dm-verity won't
link them for us from the slaves/ subdir in sysfs. Hence let's instead
look up the partition via udev's database.

Hence: when we search for the data+verity+verity-sig partitions then
search for the first two as usual, but search for the latter by looking
up the udev props on the first two, and then following the paths
provided therein.

Fixes: #34835
5 months agoudev: add udev properties that point to verity/verity sig metadata partitions from...
Lennart Poettering [Mon, 2 Jun 2025 16:31:40 +0000 (18:31 +0200)] 
udev: add udev properties that point to verity/verity sig metadata partitions from data partitions

This extends the dissect_image builtin to actually add device node
references to the device nodes where the associated data is placed, if
we can find it.

This is kept very generic, and independent from the roothash properties
and suchlike, since it makes sense to make it possible to set these
properties also independently of the dissect-image builtin.

The device path is a /dev/disk/by-diskseq/ symlink, so that we have
stable reference that are not subject to dev_t reuses.

5 months agogpt: add partition_designator_is_verity() helper
Lennart Poettering [Fri, 6 Jun 2025 10:20:13 +0000 (12:20 +0200)] 
gpt: add partition_designator_is_verity() helper

And rework partition_designator_is_verity_sig() to be based on
partition_verity_sig_to_data(), so that we don't have to maintain two
lists of verity sig partition types.

5 months agosd-lldp-rx: add VLAN ID parsing (#37725)
Yu Watanabe [Fri, 6 Jun 2025 10:12:48 +0000 (19:12 +0900)] 
sd-lldp-rx: add VLAN ID parsing (#37725)

While the `port_vlan_id` field was already present in the
`sd_lldp_neighbor`, it wasn't currently parsed from the LLDP packet.
Added support for that as well as a small parsing test.

Closes #28354.

5 months agoTODO: drop completed entry 34906/head
Yu Watanabe [Fri, 6 Jun 2025 10:09:49 +0000 (19:09 +0900)] 
TODO: drop completed entry

5 months agosystemctl: replace basename() with path_extract_filename()
Yu Watanabe [Fri, 6 Jun 2025 10:00:15 +0000 (19:00 +0900)] 
systemctl: replace basename() with path_extract_filename()

5 months agodelta: rework how enumerate files
Yu Watanabe [Fri, 6 Jun 2025 09:53:16 +0000 (18:53 +0900)] 
delta: rework how enumerate files

5 months agotree-wide: basename -> path_extract_filename
A. Wilcox [Sat, 7 Sep 2024 04:03:06 +0000 (23:03 -0500)] 
tree-wide: basename -> path_extract_filename

5 months agoupdate TODO
Lennart Poettering [Fri, 6 Jun 2025 10:03:11 +0000 (12:03 +0200)] 
update TODO

5 months agogenerator: improve scope check (#37761)
Lennart Poettering [Fri, 6 Jun 2025 10:02:25 +0000 (12:02 +0200)] 
generator: improve scope check (#37761)

Fixes: #35723
5 months agonetwork: test-lldp-rx: set more variable as static const 37725/head
Lorenzo Arena [Thu, 5 Jun 2025 06:57:54 +0000 (08:57 +0200)] 
network: test-lldp-rx: set more variable as static const

5 months agosd-lldp-rx: add VLAN ID parsing
Lorenzo Arena [Wed, 4 Jun 2025 11:21:21 +0000 (13:21 +0200)] 
sd-lldp-rx: add VLAN ID parsing

Closes #28354.

5 months agogenerator: check $SYSTEMD_SCOPE rather than cgroup membership 37761/head
Lennart Poettering [Fri, 6 Jun 2025 06:59:31 +0000 (08:59 +0200)] 
generator: check $SYSTEMD_SCOPE rather than cgroup membership

This is more explicit and ensures that even in testing environments we
operate the same way.

As side effect it also avoids the mess around SELinux blocking access to
cgroupfs.

Fixes: #35723
5 months agocore: break lines in some overly long function calls
Lennart Poettering [Fri, 6 Jun 2025 06:59:19 +0000 (08:59 +0200)] 
core: break lines in some overly long function calls

5 months agoconf-files: use proper enum for flags parameters
Lennart Poettering [Fri, 6 Jun 2025 06:33:31 +0000 (08:33 +0200)] 
conf-files: use proper enum for flags parameters

5 months agojournal: concurrent update fixes (#37757)
Lennart Poettering [Fri, 6 Jun 2025 06:24:16 +0000 (08:24 +0200)] 
journal: concurrent update fixes (#37757)

Fixes: #35229 #32436
5 months agocore: adding CGroup for io.systemd.Unit.List (second PR) (#37646)
Yu Watanabe [Thu, 5 Jun 2025 21:07:35 +0000 (06:07 +0900)] 
core: adding CGroup for io.systemd.Unit.List (second PR) (#37646)

This PR adds CGroup context/runtime for io.systemd.Unit.List method.

This is follow up for https://github.com/systemd/systemd/pull/37432.

5 months agoBugprone argument comment 10 (#37755)
Yu Watanabe [Thu, 5 Jun 2025 21:07:05 +0000 (06:07 +0900)] 
Bugprone argument comment 10 (#37755)

Follow up from https://github.com/systemd/systemd/pull/37712

5 months agojournal: replace a bunch of assert() with friendlier checks 37757/head
Lennart Poettering [Thu, 5 Jun 2025 20:26:03 +0000 (22:26 +0200)] 
journal: replace a bunch of assert() with friendlier checks

We should not rely that data stored in the journal files remains
entirely untouched at all times. Because we unallocate files, data might
go away any time. Hence, never assert() on any expectations on what the
file contains. Instead, handle it more gracefully as a corruption issue,
and return EBADMSG.

Fixes: #35229 #32436
5 months agojournal: add 'const' at one more place
Lennart Poettering [Thu, 5 Jun 2025 20:25:33 +0000 (22:25 +0200)] 
journal: add 'const' at one more place