Commit Graph

53164 Commits

Author SHA1 Message Date
Mike Yuan
b8df25dcfe xattr-util: try new *xattrat() family syscalls first
Added in 6140be90ec

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:
e896474fe4
2025-02-09 14:51:04 +01:00
Mike Yuan
baca3581ea 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()
2025-02-09 14:51:03 +01:00
Mike Yuan
a0924d96cb missing_syscall: add {set,remove}xattrat() 2025-02-09 14:51:03 +01:00
Mike Yuan
0f633e5257 missing_syscall: drop more defs below our kernel baseline 2025-02-09 14:51:03 +01:00
Mike Yuan
6f271fafc3 missing_ioprio: remove outdated comment now that linux/ioprio.h exists 2025-02-09 14:51:03 +01:00
Mike Yuan
587a173ed2 compress: mark string table lookup funcs as _const_/_pure_
Follow-up for cfaf78001c
2025-02-09 12:28:43 +01:00
Lennart Poettering
f90efd2d13 bootctl: improve output regarding random seed if we cannot access ESP 2025-02-09 09:14:21 +01:00
Lennart Poettering
a341ea5c01 import-generator: fix copy/paste issue 2025-02-09 08:49:12 +01:00
Yu Watanabe
52e9bc2deb journal-remote,journal-upload: added compression support (#34822) 2025-02-09 13:33:33 +09:00
Luca Boccassi
92d2206534 repart: do not fail if no key/cert provided and verity-sig is deferred 2025-02-09 00:09:25 +00:00
Yu Watanabe
ed8063d143 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.
2025-02-08 15:50:04 +09:00
Yu Watanabe
576e98a72c meson: fix suite of alignment check tests
Follow-up for 97318131fd.

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.
2025-02-08 00:13:28 +00:00
Luca Boccassi
382e8a03ca network: allow to configure routing policy rule even if requesting interface is not activated yet (#36257)
Fixes a regression caused by 4f8b153d90
(v257).
Fixes #36244.
2025-02-07 22:56:36 +00:00
Luca Boccassi
3477e9bd45 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.
2025-02-07 17:14:45 +00:00
Lennart Poettering
8135d37f81 import: update to current fedora keyring
Add a bunch of more released keys. Kinda a follow-up for c8c5ce5772
2025-02-08 01:43:21 +09:00
Yu Watanabe
ac722389a7 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.
2025-02-08 01:39:35 +09:00
Yu Watanabe
0879fa4bc3 udevadm-test: show guiding messages in stderr
Then, only final results will be shown in stdout.
2025-02-08 01:39:35 +09:00
Yu Watanabe
dc27464ab7 udev-rules: always use log_info() to dump current event status 2025-02-08 01:39:35 +09:00
Yu Watanabe
fc30b1a0b0 udev-dump: show more information
This also reorders and renames entries.
2025-02-08 01:39:35 +09:00
Yu Watanabe
e66d4ea31a udev-dump: fix gid check
Fixes a bug introduced by 03b6879f4d.
2025-02-08 01:39:18 +09:00
Yu Watanabe
0d77185555 udev: sd_device_get_sysnum() provides non-NULL result on success
This drops unnecessary conditions.
2025-02-08 01:38:02 +09:00
Yu Watanabe
d083799a2c udev: use device_get_sysnum_unsigned() where applicable 2025-02-08 01:38:02 +09:00
Yu Watanabe
7543ae05e3 sd-device: introduce device_get_sysnum_unsigned() 2025-02-08 01:38:02 +09:00
Luca Boccassi
32caed550f 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.
2025-02-07 13:58:51 +00:00
Luca Boccassi
9876e88e23 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.
2025-02-07 13:58:51 +00:00
Thorsten Kukuk
c8c5ce5772 import-pubring.gpg: add openSUSE build key 2025-02-07 14:42:42 +01:00
Yu Watanabe
b92a2290c6 kernel-install: addresses post-merge comments for #36218 (#36304) 2025-02-07 21:11:03 +09:00
Lennart Poettering
d7ad56bcb7 udev/net: add support for configuring EEE feature (#36302)
Closes #36278.
2025-02-07 12:38:06 +01:00
Michal Sekletar
a128273f7b 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.
2025-02-07 12:24:31 +01:00
Yu Watanabe
ab676c768a 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 75ee025c5d.
Addresses the post-merge comment
https://github.com/systemd/systemd/pull/36218#discussion_r1940872236.
2025-02-07 19:46:57 +09:00
Yu Watanabe
9eb348c9c5 core/exec-invoke: drop unnecessary casts
Follow-up for c554acd11d.
2025-02-07 09:18:49 +01:00
Andrii Chubatiuk
cfaf78001c journal-remote: added compression, compression-level and content-encoding negotiation 2025-02-07 07:05:02 +02:00
Andrii Chubatiuk
91d6f1ee53 basic: expose compression level argument in compress_blob functions 2025-02-07 07:05:02 +02:00
Yu Watanabe
cdc9be29b1 udev/net: support to configure Energy Efficient Ethernet settings
Closes #36278.
2025-02-07 13:47:41 +09:00
Yu Watanabe
929cb8ba5d udev/net: reorder elements in LinkConfig, and add short comments 2025-02-07 12:37:57 +09:00
Daan De Meyer
8a008fa792 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.
2025-02-07 09:18:36 +09:00
Daan De Meyer
c4b4d42cae vconsole-util: Introduce vconsole_serialize()
Preparation for reuse in systemd-firstboot.
2025-02-07 09:18:36 +09:00
Daan De Meyer
6d0f502736 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.
2025-02-07 09:18:36 +09:00
Yu Watanabe
0d879453ac basic/linux: update kernel headers from v6.14-rc1
Co-authored-by: Rudi Heitbaum <rudi@heitbaum.com>
2025-02-06 16:14:14 +00:00
Thorsten Kukuk
ac9edf9911 systemd-pull: support .asc and .sha256.* signature 2025-02-06 16:49:36 +01:00
Martin Hundebøll
df8bd4c171 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.
2025-02-06 16:49:11 +01:00
Lennart Poettering
abf9e6ede5 homectl: make default area configurable 2025-02-06 09:23:49 +01:00
Lennart Poettering
f44e7a8c11 run0: add explicit support for opening sessions in specific areas 2025-02-06 09:23:49 +01:00
Lennart Poettering
c747c04146 pam: introduce multiple per-user "areas", i.e. "sub-home-directories" of sorts 2025-02-06 09:23:49 +01:00
Lennart Poettering
add946e834 user-record: add new 'default_area' field, but don't hook it up yet 2025-02-06 09:23:49 +01:00
Lennart Poettering
2824946d33 json-util: add generic json_dispatch_filename() dispatch helper 2025-02-06 09:23:49 +01:00
Lennart Poettering
c554acd11d 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)
2025-02-06 09:23:49 +01:00
Yu Watanabe
229d91793f boot: several follow-ups for .efifw section support (#36230)
Follow-ups for #35091.
2025-02-06 14:53:12 +09:00
Yu Watanabe
570cd55783 udevadm: several cleanups for command line option parsers (#36241) 2025-02-06 09:39:03 +09:00
Yu Watanabe
2b6890d92f 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.
2025-02-06 09:38:39 +09:00