Commit Graph

79318 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
d43dc71e99 meson: glibc now provides wrapper for sched_setattr()
C.f. 21571ca0d7
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
9ccc369ff3 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.
2025-02-09 19:37:38 +09: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
Lennart Poettering
a5e4a89b90 update TODO 2025-02-09 08:02:52 +01:00
Yu Watanabe
52e9bc2deb journal-remote,journal-upload: added compression support (#34822) 2025-02-09 13:33:33 +09:00
Matthew Schwartz
88a0a54314 hwdb: add front button support for MSI Claw 7 AI+ A2VM 2025-02-09 10:12:13 +09:00
Alexander Shopov
6e538ffa28 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>
2025-02-09 10:09:56 +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
c26db05640 man/udevadm: add examples to get predictable interface name and persistent device node symlinks
Closes #23661.
2025-02-08 01:39:35 +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
Daan De Meyer
398d435f3c mkosi: Fix section for BuildSourcesEphemeral=
Followup for f26ded4e31
2025-02-07 21:11:48 +09:00
Yu Watanabe
b92a2290c6 kernel-install: addresses post-merge comments for #36218 (#36304) 2025-02-07 21:11:03 +09:00
Daan De Meyer
facc03dc97 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.
2025-02-07 12:42:56 +01:00
Daan De Meyer
e421fb46d8 mkosi: Install strace in build image
Useful to debug regressions in rpm or other package managers.
2025-02-07 12:42:56 +01: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
41f392490e man/kernel-install: update documents for plugins
Addresses the post-merge comments in #36218.
2025-02-07 19:52:36 +09:00
Yu Watanabe
be4f4c4343 meson: also skip uid/gid check for nobody user/group when id command not found
Follow-up for 8b413ae406.
2025-02-07 10:49:58 +00: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
Daniil
d7c86fea6b 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.
2025-02-07 18:46:44 +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
Yu Watanabe
aedef65e2b 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.
2025-02-07 11:20:21 +09:00
tim tom
3050555490 po: Added translation using Weblate (Kannada)
Co-authored-by: tim tom <aktimtom@gmail.com>
2025-02-07 11:17:37 +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