]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
9 months agotmpfiles: 3 trivial cleanups (#36332)
Yu Watanabe [Sun, 9 Feb 2025 17:33:33 +0000 (02:33 +0900)] 
tmpfiles: 3 trivial cleanups (#36332)

9 months agocore: remove path to transient unit file from unit name maps on stop (#36186)
Yu Watanabe [Sun, 9 Feb 2025 15:48:01 +0000 (00:48 +0900)] 
core: remove path to transient unit file from unit name maps on stop (#36186)

Fixes #35190.

9 months agomissing_sched: add CLONE_PIDFD
Michael Olbrich [Sun, 9 Feb 2025 12:32:36 +0000 (13:32 +0100)] 
missing_sched: add CLONE_PIDFD

CLONE_PIDFD was introduced in v5.2 and in sched.h in glibc-2.31 so
without this, building with older version fails with:

src/basic/raw-clone.h:41:108: error: 'CLONE_PIDFD' undeclared (first use in this function); did you mean 'CLONE_FILES'?

9 months agoxattr-util: try new *xattrat() family syscalls first (#36228)
Yu Watanabe [Sun, 9 Feb 2025 15:41:38 +0000 (00:41 +0900)] 
xattr-util: try new *xattrat() family syscalls first (#36228)

While killing cgroup v1 I want to turn all cg_* helpers to take
cgroupfs_fd + cg path, which means all relevant path operations must
support openat() semantics. `removexattrat()` is currently missing. I
took the chance to do a bigger refactor for xattr-util.

9 months agostoragetm: Check if /sys/kernel/config is a mountpoint
Daan De Meyer [Sat, 8 Feb 2025 11:44:19 +0000 (12:44 +0100)] 
storagetm: Check if /sys/kernel/config is a mountpoint

Otherwise we'll fail with an unclear error later on so let's check
this first before continuing.

9 months agotmpfiles: drop redundant proc_mounted() check 36332/head
Mike Yuan [Sun, 9 Feb 2025 14:25:05 +0000 (15:25 +0100)] 
tmpfiles: drop redundant proc_mounted() check

Follow-up for 01131684ac66e82faae18e40e110089003d7c536

After the mentioned commit, the execution of tmpfiles
is aborted without /proc/. No need to check for individual
operations.

9 months agotmpfiles: use prefix_roota() where appropriate
Mike Yuan [Sun, 9 Feb 2025 14:38:40 +0000 (15:38 +0100)] 
tmpfiles: use prefix_roota() where appropriate

9 months agotmpfiles: fix copypasta in create_symlink() (FIFO -> symlink)
Mike Yuan [Sun, 9 Feb 2025 14:38:05 +0000 (15:38 +0100)] 
tmpfiles: fix copypasta in create_symlink() (FIFO -> symlink)

9 months agohwdb: add accel orientation and location for the BMAX Y14
Enrico Tagliavini [Sun, 9 Feb 2025 13:44:46 +0000 (14:44 +0100)] 
hwdb: add accel orientation and location for the BMAX Y14

The BMAX MaxBook Y14 has 2 acceleromenter sensors, one seems to be in
the display, the other in the base. With the default ACCEL_MOUNT_MATRIX
monitor-sensor would report the display to be rotate of 180 degrees
compared to its real position, i.e. upside down when normal and vice
versa. Left up and right up are also swapped.

Correcting the ACCEL_MOUNT_MATRIX for the display sensor solves the
issue and monitor-sensor reports the correct values.

For the Y13 model the Z axis value was also inverted. For the Y14 to
work correctly, this is not necessary, but I'm not sure how to double
check this.

Sensors info:

P: /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-KIOX010A:00/iio:device0
M: iio:device0
R: 0
U: iio
T: iio_device
D: c 237:0
N: iio:device0
L: 0
E: DEVPATH=/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-KIOX010A:00/iio:device0
E: SUBSYSTEM=iio
E: DEVNAME=/dev/iio:device0
E: DEVTYPE=iio_device
E: MAJOR=237
E: MINOR=0
E: USEC_INITIALIZED=25931869
E: IIO_SENSOR_PROXY_TYPE=iio-poll-accel iio-buffer-accel
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: CURRENT_TAGS=:systemd:

P: /devices/pci0000:00/0000:00:15.3/i2c_designware.3/i2c-3/i2c-KIOX020A:00/iio:device1
M: iio:device1
R: 1
U: iio
T: iio_device
D: c 237:1
N: iio:device1
L: 0
E: DEVPATH=/devices/pci0000:00/0000:00:15.3/i2c_designware.3/i2c-3/i2c-KIOX020A:00/iio:device1
E: SUBSYSTEM=iio
E: DEVNAME=/dev/iio:device1
E: DEVTYPE=iio_device
E: MAJOR=237
E: MINOR=1
E: USEC_INITIALIZED=26000295
E: IIO_SENSOR_PROXY_TYPE=iio-poll-accel iio-buffer-accel
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: CURRENT_TAGS=:systemd:

accel-display
acpi:KIOX010A:KIOX010A:
dmi:bvnAmericanMegatrendsInternational,LLC.:bvr5.00_002:bd05/13/2024:br5.27:efr1.1:svnAMI:pnIntel:pvrDefaultstring:rvnAMI:rnIntel:rvrDefaultstring:cvnDefaultstring:ct31:cvrDefaultstring:skuH8Y6:

accel-base
acpi:KIOX020A:KIOX020A:

9 months agosmack-util: several cleanups 36228/head
Mike Yuan [Thu, 30 Jan 2025 14:33:13 +0000 (15:33 +0100)] 
smack-util: several cleanups

- Make _read_at and _apply_at variants the "canonical" functions
  (which leverage xsetxattr()/xremovexattr()), turn others
  into static inline helpers
- Unexport string table lookup (not used anywhere else)
- Define nop functions as static inline if !ENABLE_SMACK

9 months agotmpfiles,chown-recursive: port to xsetxattr()/xremovexattr()
Mike Yuan [Thu, 30 Jan 2025 16:30:45 +0000 (17:30 +0100)] 
tmpfiles,chown-recursive: port to xsetxattr()/xremovexattr()

9 months agotest-xattr-util: add test cases for symlinks
Mike Yuan [Sun, 9 Feb 2025 12:23:27 +0000 (13:23 +0100)] 
test-xattr-util: add test cases for symlinks

9 months agoxattr-util: try new *xattrat() family syscalls first
Mike Yuan [Mon, 20 Jan 2025 19:43:02 +0000 (20:43 +0100)] 
xattr-util: try new *xattrat() family syscalls first

Added in https://github.com/torvalds/linux/commit/6140be90ec70c39fa844741ca3cc807dd0866394

However, when O_PATH fds are encountered we'd have to go by
/proc/self/fd/ still, since the kernel people are reluctant
to make the new syscalls work with them
(https://lore.kernel.org/linux-fsdevel/20250206-steril-raumplanung-733224062432@brauner/)
Hence getxattrat() and listxattrat() are not employed.

While at it, remove the discrepancy between path being NULL
and empty - I don't grok the "security issue" claimed earlier,
but nowadays even the kernel treats the two as identical:
https://github.com/torvalds/linux/commit/e896474fe4851ffc4dd860c92daa906783090346

9 months agoxattr-util: modernize getcrtime_at() and friends
Mike Yuan [Sun, 26 Jan 2025 16:46:30 +0000 (17:46 +0100)] 
xattr-util: modernize getcrtime_at() and friends

- Drop fd_ prefix for openat()-like function
- Make fd_setcrtime() accept O_PATH fds too
- Use statx_timestamp_load()

9 months agomissing_syscall: add {set,remove}xattrat()
Mike Yuan [Mon, 20 Jan 2025 18:43:00 +0000 (19:43 +0100)] 
missing_syscall: add {set,remove}xattrat()

9 months agomissing_syscall: drop more defs below our kernel baseline
Mike Yuan [Thu, 30 Jan 2025 15:18:21 +0000 (16:18 +0100)] 
missing_syscall: drop more defs below our kernel baseline

9 months agomissing_ioprio: remove outdated comment now that linux/ioprio.h exists
Mike Yuan [Thu, 30 Jan 2025 16:51:51 +0000 (17:51 +0100)] 
missing_ioprio: remove outdated comment now that linux/ioprio.h exists

9 months agomeson: glibc now provides wrapper for sched_setattr()
Mike Yuan [Sun, 9 Feb 2025 13:49:15 +0000 (14:49 +0100)] 
meson: glibc now provides wrapper for sched_setattr()

C.f. https://github.com/bminor/glibc/commit/21571ca0d70302909cf72707b2a7736cf12190a0

9 months agocompress: mark string table lookup funcs as _const_/_pure_
Mike Yuan [Sun, 9 Feb 2025 11:26:25 +0000 (12:26 +0100)] 
compress: mark string table lookup funcs as _const_/_pure_

Follow-up for cfaf78001c3451d549bcb1ee4adca3e85b934e56

9 months agonetwork: mark container/VM/namespace networks as not required for online + disable...
Lennart Poettering [Fri, 7 Feb 2025 17:08:51 +0000 (18:08 +0100)] 
network: mark container/VM/namespace networks as not required for online + disable DHCP lease persistency

These networks are not connections to upstream routers, but where we are
ourselves are the upstream router, hence it doesn't make too much sense
to require them to be up as default to determine if we are "online",
because they lead "in the wrong direction".

Also, disable DHCP lease persistency for these networks, since
container/VM/namespaces are generally shortlived, and typically have no
persistent identity. Moreover, the IP range we assign each VM/container
connection is just too small to permit persistency, as otherwise we'll
run out of leases way too quickly if VM/containers are restarted a bunch of
times with different MAC addresses (which I ran into).

I think these are better defaults, but of course these are only
defaults.

9 months agobootctl: improve output regarding random seed if we cannot access ESP
Lennart Poettering [Sun, 9 Feb 2025 06:38:41 +0000 (07:38 +0100)] 
bootctl: improve output regarding random seed if we cannot access ESP

9 months agoimport-generator: fix copy/paste issue
Lennart Poettering [Fri, 7 Feb 2025 15:42:13 +0000 (16:42 +0100)] 
import-generator: fix copy/paste issue

9 months agoupdate TODO
Lennart Poettering [Sun, 9 Feb 2025 06:28:35 +0000 (07:28 +0100)] 
update TODO

9 months agojournal-remote,journal-upload: added compression support (#34822)
Yu Watanabe [Sun, 9 Feb 2025 04:33:33 +0000 (13:33 +0900)] 
journal-remote,journal-upload: added compression support (#34822)

9 months agohwdb: add front button support for MSI Claw 7 AI+ A2VM
Matthew Schwartz [Sat, 8 Feb 2025 20:14:53 +0000 (12:14 -0800)] 
hwdb: add front button support for MSI Claw 7 AI+ A2VM

9 months agoUpdate Bulgarian translation
Alexander Shopov [Sat, 8 Feb 2025 22:31:09 +0000 (23:31 +0100)] 
Update Bulgarian translation

Update po-file based on latest generated from source
Update systemd.bg.catalog.in based on latest in source

Signed-off-by: Alexander Shopov <ash@kambanaria.org>
9 months agorepart: do not fail if no key/cert provided and verity-sig is deferred
Luca Boccassi [Mon, 3 Feb 2025 09:38:00 +0000 (10:38 +0100)] 
repart: do not fail if no key/cert provided and verity-sig is deferred

9 months agoudevadm-test: show result in json format (#36284)
Yu Watanabe [Sat, 8 Feb 2025 06:50:04 +0000 (15:50 +0900)] 
udevadm-test: show result in json format (#36284)

This adds `--json=MODE` command line option to `udevadm test`.
This may be useful for parsing e.g. network interface name or device
node symlinks.

Closes #23661.

9 months agomeson: fix suite of alignment check tests
Yu Watanabe [Fri, 7 Feb 2025 17:20:02 +0000 (02:20 +0900)] 
meson: fix suite of alignment check tests

Follow-up for 97318131fd06a5bc35454da81dcbbc84f16d9940.

By default, suite of each built test is determined by the directory of
the source file. Hence, before the mentioned commit, all tests in
src/boot/efi/ are in the 'efi' suite. The commit changed the directory
tree, but forgot to update the name of the test suite.

9 months agonetwork: allow to configure routing policy rule even if requesting interface is not...
Luca Boccassi [Fri, 7 Feb 2025 22:56:36 +0000 (22:56 +0000)] 
network: allow to configure routing policy rule even if requesting interface is not activated yet (#36257)

Fixes a regression caused by 4f8b153d903fd4a6e8d7d3e49113582d70d1525a
(v257).
Fixes #36244.

9 months agoukify: add --pcrsig and --join-pcrsig arguments to append offline signature (#36181)
Luca Boccassi [Fri, 7 Feb 2025 17:14:45 +0000 (17:14 +0000)] 
ukify: add --pcrsig and --join-pcrsig arguments to append offline signature (#36181)

Add a build parameter to take an existing UKI and attach a .pcrsig
section
to it. This allows one to create a UKI with a .pcrpkey section with
--policy-digest to get the json output from sd-measure, sign the digest
offline, and attach the .pcrsig section with the signature later.

9 months agoimport: update to current fedora keyring
Lennart Poettering [Fri, 7 Feb 2025 13:58:29 +0000 (14:58 +0100)] 
import: update to current fedora keyring

Add a bunch of more released keys. Kinda a follow-up for c8c5ce5772b08da0ad317331b1f4929c1b466ae0

9 months agoman/udevadm: add examples to get predictable interface name and persistent device... 36284/head
Yu Watanabe [Tue, 4 Feb 2025 04:26:25 +0000 (13:26 +0900)] 
man/udevadm: add examples to get predictable interface name and persistent device node symlinks

Closes #23661.

9 months agoudevadm-test: allow to dump result in json format
Yu Watanabe [Sun, 2 Feb 2025 03:07:48 +0000 (12:07 +0900)] 
udevadm-test: allow to dump result in json format

This adds --json=MODE option for 'udevadm test' command.
When specified, all messages, except for the final result, will be
written to stderr, and the final result is shown in JSON format to
stdout. It may be useful for parsing the test result.

9 months agoudevadm-test: show guiding messages in stderr
Yu Watanabe [Tue, 4 Feb 2025 03:58:16 +0000 (12:58 +0900)] 
udevadm-test: show guiding messages in stderr

Then, only final results will be shown in stdout.

9 months agoudev-rules: always use log_info() to dump current event status
Yu Watanabe [Sun, 2 Feb 2025 03:02:49 +0000 (12:02 +0900)] 
udev-rules: always use log_info() to dump current event status

9 months agoudev-dump: show more information
Yu Watanabe [Fri, 7 Feb 2025 01:04:41 +0000 (10:04 +0900)] 
udev-dump: show more information

This also reorders and renames entries.

9 months agoudev-dump: fix gid check
Yu Watanabe [Fri, 7 Feb 2025 02:07:37 +0000 (11:07 +0900)] 
udev-dump: fix gid check

Fixes a bug introduced by 03b6879f4d45c49264708aef872fd05af30ddcf0.

9 months agoudev: sd_device_get_sysnum() provides non-NULL result on success
Yu Watanabe [Fri, 7 Feb 2025 16:32:46 +0000 (01:32 +0900)] 
udev: sd_device_get_sysnum() provides non-NULL result on success

This drops unnecessary conditions.

9 months agoudev: use device_get_sysnum_unsigned() where applicable
Yu Watanabe [Fri, 7 Feb 2025 16:31:04 +0000 (01:31 +0900)] 
udev: use device_get_sysnum_unsigned() where applicable

9 months agosd-device: introduce device_get_sysnum_unsigned()
Yu Watanabe [Fri, 7 Feb 2025 16:25:15 +0000 (01:25 +0900)] 
sd-device: introduce device_get_sysnum_unsigned()

9 months agoukify: do not fail if pefile complains about hardcoded 256MB limit 36181/head
Luca Boccassi [Thu, 30 Jan 2025 01:19:59 +0000 (01:19 +0000)] 
ukify: do not fail if pefile complains about hardcoded 256MB limit

pefile has an hardcoded limit to 256MB per section:

https://github.com/erocarrera/pefile/issues/396

When building an initrd with large firmware files and
lots of kernel modules, this limit can be reached.
Skip over those warnings.

9 months agoukify: add --pcrsig and --join-pcrsig arguments to append offline signature
Luca Boccassi [Sat, 25 Jan 2025 02:09:49 +0000 (02:09 +0000)] 
ukify: add --pcrsig and --join-pcrsig arguments to append offline signature

Add a build parameter to take an existing UKI and attach a .pcrsig section
to it. This allows one to create a UKI with a .pcrpkey section with
--policy-digest to get the json output from sd-measure, sign the digest
offline, and attach the .pcrsig section with the signature later.

9 months agoimport-pubring.gpg: add openSUSE build key
Thorsten Kukuk [Fri, 7 Feb 2025 13:36:06 +0000 (14:36 +0100)] 
import-pubring.gpg: add openSUSE build key

9 months agomkosi: Fix section for BuildSourcesEphemeral=
Daan De Meyer [Fri, 7 Feb 2025 11:04:15 +0000 (12:04 +0100)] 
mkosi: Fix section for BuildSourcesEphemeral=

Followup for f26ded4e31b433d3bb6ee4dc3e02e28f7a1d223f

9 months agokernel-install: addresses post-merge comments for #36218 (#36304)
Yu Watanabe [Fri, 7 Feb 2025 12:11:03 +0000 (21:11 +0900)] 
kernel-install: addresses post-merge comments for #36218 (#36304)

9 months agomkosi: Work around regression in opensuse rpm 4.20 release
Daan De Meyer [Fri, 7 Feb 2025 10:37:34 +0000 (11:37 +0100)] 
mkosi: Work around regression in opensuse rpm 4.20 release

The rpm 4.20 release introduces the following downstream
change in /usr/lib/rpm/macros:

```
%buildroot              %{_builddir}/%{NAME}-%{VERSION}-build/BUILDROOT
```

This definition is broken as rpm internally does the following
since 4.20 to calculate the buildroot:

```
char *bn = rpmExpand("%{NAME}-%{VERSION}-build", NULL);
/* Tilde and caret in paths are evil, convert to underscores */
for (char *t = bn; *t; t++) {
    if (*t == '^' || *t == '~')
        *t = '_';
    }
```

This has broken our upstream opensuse CI builds in systemd as
we do the following to fetch the list of unpackaged files by the rpm build:

```
rpmbuild
...
--define "__check_files sh -c '$(rpm --define "_topdir /var/tmp" --eval %__check_files) | tee /tmp/unpackaged-files'"
...
```

which stopped working because the check files script tries
to look for unpackaged files in the "/var/tmp/BUILD/systemd-258~devel-build/BUILDROOT"
directory (%buildroot) whereas it should be looking in "/var/tmp/BUILD/systemd-258_devel-build/BUILDROOT".

Let's remove the %buildroot compat definition until the bug is
addressed in opensuse tumbleweed.

9 months agomkosi: Install strace in build image
Daan De Meyer [Fri, 7 Feb 2025 10:36:26 +0000 (11:36 +0100)] 
mkosi: Install strace in build image

Useful to debug regressions in rpm or other package managers.

9 months agoudev/net: add support for configuring EEE feature (#36302)
Lennart Poettering [Fri, 7 Feb 2025 11:38:06 +0000 (12:38 +0100)] 
udev/net: add support for configuring EEE feature (#36302)

Closes #36278.

9 months agocore/namespace: relabel bind mount source based on the target path
Michal Sekletar [Tue, 21 Jan 2025 14:31:14 +0000 (15:31 +0100)] 
core/namespace: relabel bind mount source based on the target path

Some bind mounts, e.g. /tmp bind mount when PrivateTmp=disconnected,
must be explicitly relabeled because now it would have incorrect SELinux
label. /tmp is expected to have well-known SELinux label, tmp_t. Now it
has label inherited from the source directory of the bind mount.

9 months agoman/kernel-install: update documents for plugins 36304/head
Yu Watanabe [Fri, 7 Feb 2025 06:20:25 +0000 (15:20 +0900)] 
man/kernel-install: update documents for plugins

Addresses the post-merge comments in #36218.

9 months agomeson: also skip uid/gid check for nobody user/group when id command not found
Yu Watanabe [Fri, 7 Feb 2025 02:36:46 +0000 (11:36 +0900)] 
meson: also skip uid/gid check for nobody user/group when id command not found

Follow-up for 8b413ae4060b21ed4712fdad7eba195890740756.

9 months agokernel-install: rename $ADDON_DIR -> $EXTRA_DIR
Yu Watanabe [Fri, 7 Feb 2025 05:46:05 +0000 (14:46 +0900)] 
kernel-install: rename $ADDON_DIR -> $EXTRA_DIR

As the directory contains not only addons, but also credentials and
extensions.

No functional change, just refactoring.

Follow-up for 75ee025c5de5d753dc1d8a28f8780247f5a887ae.
Addresses the post-merge comment
https://github.com/systemd/systemd/pull/36218#discussion_r1940872236.

9 months agohwdb: XBox Series Elite controller modalias entry has been added. (#36305)
Daniil [Fri, 7 Feb 2025 09:46:44 +0000 (10:46 +0100)] 
hwdb: XBox Series Elite controller modalias entry has been added. (#36305)

Change was requested in response on #36297.
The reason for that change is that XBox Series Elite controller has
exact 4 buttons identified as keyboard key sets.
While it detects using USB connection without any issues, wireless
connection ends with assumption that it's a keyboard.

9 months agocore/exec-invoke: drop unnecessary casts
Yu Watanabe [Fri, 7 Feb 2025 05:28:41 +0000 (14:28 +0900)] 
core/exec-invoke: drop unnecessary casts

Follow-up for c554acd11d4dc778df1393c3a7e829a24de0455e.

9 months agojournal-remote: added compression, compression-level and content-encoding negotiation 34822/head
Andrii Chubatiuk [Sat, 2 Nov 2024 20:03:26 +0000 (22:03 +0200)] 
journal-remote: added compression, compression-level and content-encoding negotiation

9 months agobasic: expose compression level argument in compress_blob functions
Andrii Chubatiuk [Fri, 18 Oct 2024 17:43:31 +0000 (20:43 +0300)] 
basic: expose compression level argument in compress_blob functions

9 months agoudev/net: support to configure Energy Efficient Ethernet settings 36302/head
Yu Watanabe [Fri, 7 Feb 2025 04:47:36 +0000 (13:47 +0900)] 
udev/net: support to configure Energy Efficient Ethernet settings

Closes #36278.

9 months agoudev/net: reorder elements in LinkConfig, and add short comments
Yu Watanabe [Fri, 7 Feb 2025 03:27:51 +0000 (12:27 +0900)] 
udev/net: reorder elements in LinkConfig, and add short comments

9 months agofirstboot: Populate XKBLAYOUT and friends as well in vconsole.conf (#36275)
Yu Watanabe [Fri, 7 Feb 2025 02:20:21 +0000 (11:20 +0900)] 
firstboot: Populate XKBLAYOUT and friends as well in vconsole.conf (#36275)

Let's derive XKBLAYOUT and friends from the given keymap and populate
these as well in vconsole.conf so that if the user configures a keymap
it's also respected in display managers such as gdm.

9 months agopo: Added translation using Weblate (Kannada)
tim tom [Fri, 7 Feb 2025 01:47:28 +0000 (02:47 +0100)] 
po: Added translation using Weblate (Kannada)

Co-authored-by: tim tom <aktimtom@gmail.com>
9 months agofirstboot: Populate XKBLAYOUT and friends as well in vconsole.conf 36275/head
Daan De Meyer [Wed, 5 Feb 2025 13:31:33 +0000 (14:31 +0100)] 
firstboot: Populate XKBLAYOUT and friends as well in vconsole.conf

Let's derive XKBLAYOUT and friends from the given keymap and populate
these as well in vconsole.conf so that if the user configures a keymap
it's also respected in display managers such as gdm.

9 months agovconsole-util: Introduce vconsole_serialize()
Daan De Meyer [Wed, 5 Feb 2025 13:30:57 +0000 (14:30 +0100)] 
vconsole-util: Introduce vconsole_serialize()

Preparation for reuse in systemd-firstboot.

9 months agolocale: Move vconsole specific logic to shared/vconsole-util.h
Daan De Meyer [Wed, 5 Feb 2025 12:17:13 +0000 (13:17 +0100)] 
locale: Move vconsole specific logic to shared/vconsole-util.h

This allows reusing the logic in systemd-firstboot.c.

To avoid having to link libxkbcommon into libsystemd-shared, we add
a level of indirection to vconsole_convert_to_x11() so that the verify
function is passed in by the caller.

9 months agomeson: Skip getent when it's not found
Vyacheslav Yurkov [Wed, 5 Feb 2025 07:14:20 +0000 (07:14 +0000)] 
meson: Skip getent when it's not found

9 months agobasic/linux: update kernel headers from v6.14-rc1
Yu Watanabe [Thu, 6 Feb 2025 10:41:27 +0000 (19:41 +0900)] 
basic/linux: update kernel headers from v6.14-rc1

Co-authored-by: Rudi Heitbaum <rudi@heitbaum.com>
9 months agomkosi: extend util-linux-script config drop-in to F43
Luca Boccassi [Thu, 6 Feb 2025 14:59:28 +0000 (14:59 +0000)] 
mkosi: extend util-linux-script config drop-in to F43

Fixes packit test

TEST-74-AUX-UTILS.sh[1104]: + script -ec 'networkctl edit --runtime "$NETWORK_NAME"' /dev/null
TEST-74-AUX-UTILS.sh[1154]: .//usr/lib/systemd/tests/testdata/units/TEST-74-AUX-UTILS.networkctl.sh: line 53: script: command not found

9 months agosystemd-pull: support .asc and .sha256.* signature
Thorsten Kukuk [Wed, 5 Feb 2025 10:16:21 +0000 (11:16 +0100)] 
systemd-pull: support .asc and .sha256.* signature

9 months agovmspawn: ignore failure from sshd-vsock@ unit
Martin Hundebøll [Thu, 6 Feb 2025 10:33:49 +0000 (11:33 +0100)] 
vmspawn: ignore failure from sshd-vsock@ unit

The "main" sshd@.service unit ignores the return code from per-session
instances, so do the same for the vsock variant.

9 months agomkosi: Only make build sources ephemeral if NO_BUILD is not enabled
Daan De Meyer [Thu, 6 Feb 2025 13:53:02 +0000 (14:53 +0100)] 
mkosi: Only make build sources ephemeral if NO_BUILD is not enabled

If we're not building distribution packages from source, there's no
need to make the build sources ephemeral so don't enable the setting
if NO_BUILD is enabled.

9 months agodocs: Add an examples for command line access
Andreas Schneider [Wed, 5 Feb 2025 14:38:32 +0000 (15:38 +0100)] 
docs: Add an examples for command line access

It took me almost an hour to read through the source code to construct
this line.

9 months agohomed: introduce "area" concept (i.e. secondary home directories stored below the...
Lennart Poettering [Thu, 6 Feb 2025 11:47:04 +0000 (12:47 +0100)] 
homed: introduce "area" concept (i.e. secondary home directories stored below the primary one, of which one can pick one at login) (#36149)

This adds a new concept to homed/pam_systemd/pam_systemd_homed: "areas"
are secondary home dirs you can have inside your primary home dir, below
an `~/Areas/` hierarchy. You can log into these secondary dirs if you
specify "user%area" as user at login time.

This is quite useful for maintaining multiple sets of user resources
within the same user account with the same access privileges. The
intended usecase for me is utimately WSL-like stuff: you start a local
unpriv container which gets the host's home dir mounted in and fully
accessible, without this also meaning that the user account gets the
full set of settings and so on propagated down.

Codewise the concept is really simple: whenever an area name like
"foobar" is specified we simply change a $HOME of /home/lennart into
/home/lennart/Areas/foobar. In a way this PR adds more docs than code
for all this.

This also makes this feature directly accessible via "run0 -a foobar"
(for opening a new session in the 'foobar' area).

To be truly fun to use on text (i.e. getty) logins, a util-linux version
containing https://github.com/util-linux/util-linux/pull/3354 is best,
since otherwise $HOME is updated to /home/lennart/Areas/foobar, but the
cwd is still at /home/lennart.

9 months agotest: add some basic area tests 36149/head
Lennart Poettering [Fri, 24 Jan 2025 13:52:29 +0000 (14:52 +0100)] 
test: add some basic area tests

9 months agodocs: document the new area functionality
Lennart Poettering [Fri, 24 Jan 2025 08:33:24 +0000 (09:33 +0100)] 
docs: document the new area functionality

9 months agohomectl: make default area configurable
Lennart Poettering [Fri, 24 Jan 2025 12:35:01 +0000 (13:35 +0100)] 
homectl: make default area configurable

9 months agorun0: add explicit support for opening sessions in specific areas
Lennart Poettering [Fri, 24 Jan 2025 09:24:09 +0000 (10:24 +0100)] 
run0: add explicit support for opening sessions in specific areas

9 months agopam: introduce multiple per-user "areas", i.e. "sub-home-directories" of sorts
Lennart Poettering [Fri, 3 Jan 2025 20:10:25 +0000 (21:10 +0100)] 
pam: introduce multiple per-user "areas", i.e. "sub-home-directories" of sorts

9 months agouser-record: add new 'default_area' field, but don't hook it up yet
Lennart Poettering [Fri, 3 Jan 2025 17:21:14 +0000 (18:21 +0100)] 
user-record: add new 'default_area' field, but don't hook it up yet

9 months agojson-util: add generic json_dispatch_filename() dispatch helper
Lennart Poettering [Fri, 3 Jan 2025 17:20:05 +0000 (18:20 +0100)] 
json-util: add generic json_dispatch_filename() dispatch helper

9 months agoexec-invoke: respect $HOME set via PAM
Lennart Poettering [Fri, 24 Jan 2025 10:17:55 +0000 (11:17 +0100)] 
exec-invoke: respect $HOME set via PAM

This follows the same recent change in util-linux:

https://github.com/util-linux/util-linux/pull/3354

i.e. we generally want that PAM modules can override $HOME and it is
honoured for the CWD after login.

(This renames the 'home' variable we maintained sofar to 'pwent_home',
to clarify that it's the home directory listed in the struct passwd
entry, and thus not necessarily the one actually used)

9 months agoboot: several follow-ups for .efifw section support (#36230)
Yu Watanabe [Thu, 6 Feb 2025 05:53:12 +0000 (14:53 +0900)] 
boot: several follow-ups for .efifw section support (#36230)

Follow-ups for #35091.

9 months agohwdb: fix screen rotation for EXO Wings 2in1 w1125 (#36283)
Trollimpo [Thu, 6 Feb 2025 00:44:14 +0000 (21:44 -0300)] 
hwdb: fix screen rotation for EXO Wings 2in1 w1125 (#36283)

9 months agoudevadm: several cleanups for command line option parsers (#36241)
Yu Watanabe [Thu, 6 Feb 2025 00:39:03 +0000 (09:39 +0900)] 
udevadm: several cleanups for command line option parsers (#36241)

9 months agoudev-builtin: several trivial cleanups (#36239)
Yu Watanabe [Thu, 6 Feb 2025 00:38:39 +0000 (09:38 +0900)] 
udev-builtin: several trivial cleanups (#36239)

- introduces UDEV_BUILTIN_DESTRUCTOR macro,
- normalize log messages on initialize/finalize,
- explicitly initialize global variable,
- drop using _UDEV_BUILTIN_INVALID.

9 months agoupdate TODO
Lennart Poettering [Wed, 5 Feb 2025 22:37:07 +0000 (23:37 +0100)] 
update TODO

9 months agoresolved: fix DNSSEC `missing-key` error
Fabian Möller [Wed, 22 Jan 2025 12:33:12 +0000 (13:33 +0100)] 
resolved: fix DNSSEC `missing-key` error

Skip unsupport/invalid `DS` and `DNSKEY` combinations during verification.

Fixes: #12545
9 months agohomectl: fix typos in help text (#36279)
Luca Boccassi [Wed, 5 Feb 2025 19:54:08 +0000 (19:54 +0000)] 
homectl: fix typos in help text (#36279)

I noticed two small typos while reading the help text for homectl.
The `-P` option is described as "Same as
--enforce-password-**password**=no" when the option's name is
`--enforce-password-policy`.
While checking the man page to check if the typo was also there, i
noticed another typo where `--enforce-password-policy=no` has 3 dashes
instead of 2 in the description for `-P`.

9 months agohomectl: fix typo in man page 36279/head
Matthieu LAURENT [Wed, 5 Feb 2025 16:31:15 +0000 (17:31 +0100)] 
homectl: fix typo in man page

9 months agohomectl: fix typo in help text
Matthieu LAURENT [Wed, 5 Feb 2025 16:28:37 +0000 (17:28 +0100)] 
homectl: fix typo in help text

9 months agorepart: Don't fail when we're unable to read file attributes
Daan De Meyer [Wed, 5 Feb 2025 11:42:39 +0000 (12:42 +0100)] 
repart: Don't fail when we're unable to read file attributes

We're getting EOVERFLOW when reading file attributes trying to get
mkosi running in a docker container (don't ask). I have a suspicion
this is coming from fuse-overlayfs. Anyway, since the file attributes
stuff is supposed to be purely optional, let's not fail when we can't
read file attributes for whatever reason.

9 months agonetwork/route: improve Gateway=_dhcp4 handling (#36183)
Luca Boccassi [Wed, 5 Feb 2025 12:19:01 +0000 (12:19 +0000)] 
network/route: improve Gateway=_dhcp4 handling (#36183)

- Also configures route to the gateway and prefix route in the specified
table, if necessary.
- Also set preferred source address of the route.

Closes #36168.

9 months agoupdate TODO
Lennart Poettering [Wed, 5 Feb 2025 10:51:31 +0000 (11:51 +0100)] 
update TODO

9 months agoupdate TODO
Lennart Poettering [Mon, 3 Feb 2025 11:47:57 +0000 (12:47 +0100)] 
update TODO

9 months agoman/udevadm: several minor cleanups (#36267)
Daan De Meyer [Wed, 5 Feb 2025 08:52:29 +0000 (09:52 +0100)] 
man/udevadm: several minor cleanups (#36267)

9 months agonetwork/routing-policy-rule: fix compare function (#36268)
Daan De Meyer [Wed, 5 Feb 2025 08:50:59 +0000 (09:50 +0100)] 
network/routing-policy-rule: fix compare function (#36268)

Fixes a regression caused by fc58350aa464cd2414b6fe9fec089412120c7d52
(v257).
Fixes #35874.

9 months agoman/udevadm: rebreak and reindent lines 36267/head
Yu Watanabe [Wed, 5 Feb 2025 00:01:28 +0000 (09:01 +0900)] 
man/udevadm: rebreak and reindent lines

9 months agoman/udevadm: list --version as a common option
Yu Watanabe [Wed, 5 Feb 2025 00:00:20 +0000 (09:00 +0900)] 
man/udevadm: list --version as a common option

Then, drop --version and --help from each sub commands.

9 months agostub: Mention that VirtualSize should be <= SizeOfRawData
Daan De Meyer [Tue, 4 Feb 2025 13:52:02 +0000 (14:52 +0100)] 
stub: Mention that VirtualSize should be <= SizeOfRawData

9 months agoTwo test readme improvements (#36265)
Yu Watanabe [Wed, 5 Feb 2025 01:08:00 +0000 (10:08 +0900)] 
Two test readme improvements (#36265)

9 months agotest-network: add test case for issue #35874 36268/head
Yu Watanabe [Wed, 5 Feb 2025 00:40:31 +0000 (09:40 +0900)] 
test-network: add test case for issue #35874