]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
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 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

9 months agonetwork/routing-policy-rule: fix compare func
Yu Watanabe [Wed, 5 Feb 2025 00:14:51 +0000 (09:14 +0900)] 
network/routing-policy-rule: fix compare func

Previously, when comparing an existing and requested routing policy
rules, `all` flag was unset, thus the from and to addresses in the two
rules were not compared. Hence, a new request with from and/or to
addresses might be considered as it already exists even the addresses of
existing one were different from the newly requested one.

All existing rules have valid family, i.e. AF_INET or AF_INET6. And,
all requesting rules with from and/or to addresses also have a valid
family. Hence, even `all` flag is unset, the addresses can be and must
be compared in that case.

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

9 months agotest: Move external packages section down and reword a little 36265/head
Daan De Meyer [Tue, 4 Feb 2025 19:46:11 +0000 (20:46 +0100)] 
test: Move external packages section down and reword a little

This is advanced level stuff that regular contributors don't care
about in the slightest, so move it further down. Also reword the
section a little while we're at it.

9 months agotest: Move NO_BUILD instructions to a separate section
Daan De Meyer [Tue, 4 Feb 2025 19:24:17 +0000 (20:24 +0100)] 
test: Move NO_BUILD instructions to a separate section

This isn't relevant for regular development, so let's move it to a
separate section.

9 months agotest: Drop -Dremote=enabled instructions from readme
Daan De Meyer [Tue, 4 Feb 2025 19:21:36 +0000 (20:21 +0100)] 
test: Drop -Dremote=enabled instructions from readme

The test commands now use mkosi sandbox which always makes sure the
required dependencies for systemd-journal-remote are enabled so no
need to reconfigure meson explicitly anymore.

9 months agomachine: introduce io.systemd.MachineImage.CleanPool (#35928)
Daan De Meyer [Tue, 4 Feb 2025 17:43:23 +0000 (18:43 +0100)] 
machine: introduce io.systemd.MachineImage.CleanPool (#35928)

This PR introduces io.systemd.MachineImage.CleanPool method which is
alternative to DBus's CleanPool.

9 months agoukify/measure: Revert changes to use SizeOfImage from Linux PE binary
Daan De Meyer [Tue, 4 Feb 2025 08:24:26 +0000 (09:24 +0100)] 
ukify/measure: Revert changes to use SizeOfImage from Linux PE binary

With 19812661f1f65ebe777d1626b5abf6475faababc, we make sure at runtime
in the stub itself that SizeOfImage from the Linux EFISTUB PE binary is
taken into account, so there's no need to take this into account in ukify
itself. By reverting the ukify change, we again ensure that Misc_VirtualSize
reflects the actual size of the Linux EFISTUB PE binary in the .linux section
which lots of tooling depends on. It also makes sure we don't measure a bunch
of extra zeroes in the stub which should fix systemd-pcrlock measurements as
well.

This effectively reverts 2188c759f97e40b97ebe3e94e82239f36b525b10 and
0005411352f9bda0d9887c37b9e75a2bce6c1133.

Fixes #35851

9 months agomachine: tests for io.systemd.MachineImage.CleanPool 35928/head
Ivan Kruglov [Wed, 8 Jan 2025 15:02:26 +0000 (16:02 +0100)] 
machine: tests for io.systemd.MachineImage.CleanPool

9 months agomachine: introduce io.systemd.MachineImage.CleanPool
Ivan Kruglov [Wed, 8 Jan 2025 12:56:14 +0000 (13:56 +0100)] 
machine: introduce io.systemd.MachineImage.CleanPool

9 months agomachine: use image_clean_pool_operation() in dbus
Ivan Kruglov [Wed, 8 Jan 2025 11:41:45 +0000 (12:41 +0100)] 
machine: use image_clean_pool_operation() in dbus

9 months agomachine: image_clean_pool_operation()
Ivan Kruglov [Tue, 7 Jan 2025 15:30:17 +0000 (16:30 +0100)] 
machine: image_clean_pool_operation()

9 months agomachine: rename machine_copy_from_to() -> machine_copy_from_to_operation()
Ivan Kruglov [Wed, 8 Jan 2025 12:48:19 +0000 (13:48 +0100)] 
machine: rename machine_copy_from_to() -> machine_copy_from_to_operation()

This is done to make it clear that machine_copy_from_to() use and
returns an Operation object.

9 months agosysupdate: Update example mode to 644 instead of 444
Daan De Meyer [Tue, 4 Feb 2025 10:42:42 +0000 (11:42 +0100)] 
sysupdate: Update example mode to 644 instead of 444

The UKI file has to be writable to be able to do boot counting in
the UEFI firmware which involves renaming the file by writing to
the file metadata which requires the file to be writable in the FAT
filesystem.

Fixes #36170

9 months agomeson: add install tag for systemctl
Vyacheslav Yurkov [Sun, 2 Feb 2025 09:13:38 +0000 (10:13 +0100)] 
meson: add install tag for systemctl

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
9 months agodocs: Update CPE fields in package metadata spec (#36251)
Dimitri John Ledkov [Mon, 3 Feb 2025 22:14:56 +0000 (22:14 +0000)] 
docs: Update CPE fields in package metadata spec (#36251)

Update osCPE field example to use cpe 2.3 format, as is in active use by
AmazonLinux 2023 for example.

Add appCPE field example to document the upstream application CPE for
the applicable CVEs. Often distribution source package names are
different from the upstream CPE. For example adding/removing "lib"
prefix, or adding version stream "-3" suffix. This typically leads to
guessing or fuzzy matching. Adding appCPE in such cases can help to
disambiguate (or collate) correct application CPEs; especially beyond
the lifetime of osCPE support timeframes. This also will help a lot with
packaging multiple alternative source packages of the same software
(e.g. nginx-full nginx-core); different version streams (e.g.
openssl-1.1, openssl-3); or alternative builds of upstream software with
largely the same CVEs with multiple version streams (e.g.
openjdk-{22,17,11..}, corretto-{22,17,11..}, temurin-{22,17,11..}, etc).

9 months agopo: Translated using Weblate (Bulgarian)
Alexander Shopov [Mon, 3 Feb 2025 14:38:39 +0000 (15:38 +0100)] 
po: Translated using Weblate (Bulgarian)

Currently translated at 87.5% (225 of 257 strings)

Co-authored-by: Alexander Shopov <ash@kambanaria.org>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/bg/
Translation: systemd/main

9 months agohomectl: Fix empty checks
Daan De Meyer [Mon, 3 Feb 2025 15:17:00 +0000 (16:17 +0100)] 
homectl: Fix empty checks

9 months agoUpdate TODO
Daan De Meyer [Mon, 3 Feb 2025 16:09:21 +0000 (17:09 +0100)] 
Update TODO

9 months agoSymlink NVD CPE search 36251/head
Dimitri John Ledkov [Mon, 3 Feb 2025 12:00:24 +0000 (12:00 +0000)] 
Symlink NVD CPE search

9 months agodocs: Update CPE fields in package metadata spec
Dimitri John Ledkov [Mon, 3 Feb 2025 10:55:20 +0000 (10:55 +0000)] 
docs: Update CPE fields in package metadata spec

Update osCPE field example to use cpe 2.3 format, as is in active use by
AmazonLinux 2023 for example.

Add appCPE field example to document the upstream application CPE for the
applicable CVEs. Often distribution source package names are different from the
upstream CPE. For example adding/removing "lib" prefix, or adding version
stream "-3" suffix. This typically leads to guessing or fuzzy matching. Adding
appCPE in such cases can help to disambiguate (or collate) correct application
CPEs; especially beyond the lifetime of osCPE support timeframes.

9 months agouser-runtime-dir: Log the quota limit in the warning message on failure
Daan De Meyer [Mon, 3 Feb 2025 08:48:35 +0000 (09:48 +0100)] 
user-runtime-dir: Log the quota limit in the warning message on failure

9 months agoukify: Calculate section size more correctly (#36215)
Zbigniew Jędrzejewski-Szmek [Mon, 3 Feb 2025 09:17:37 +0000 (10:17 +0100)] 
ukify: Calculate section size more correctly (#36215)

We should only use Misc_VirtualSize if it's smaller than SizeOfRawData,
since in that case it'll be the non-aligned section size. Otherwise we
have to use SizeOfRawData to get the size on disk.

9 months agoMerge remote-tracking branch 'weblate/main' into HEAD
Yu Watanabe [Sun, 2 Feb 2025 07:21:10 +0000 (16:21 +0900)] 
Merge remote-tracking branch 'weblate/main' into HEAD

9 months agopo: Added translation using Weblate (Interlingua)
Emilio Sepulveda [Sun, 2 Feb 2025 05:37:08 +0000 (06:37 +0100)] 
po: Added translation using Weblate (Interlingua)

Co-authored-by: Emilio Sepulveda <emism.translations@gmail.com>
9 months agoudevadm-verify: document '--resolve-names=late' and accept 'never' as is 36241/head
Yu Watanabe [Sun, 2 Feb 2025 06:28:15 +0000 (15:28 +0900)] 
udevadm-verify: document '--resolve-names=late' and accept 'never' as is

When '--resolve-names=late', systemd-udevd resolves user/group names
during each event being processed, and does not verify names on parse.
When '--resolve-names=never', systemd-udevd refuses any user/group names
on parse. Hence, the parser of udev rules behaves diffrently. Let's not
convert 'never' -> 'late' silently, and use the specified option as is.

This also updates man page and shell completion for --resolve-names
option.

9 months agoudevadm: introduce parse_resolve_name_timing()
Yu Watanabe [Sun, 2 Feb 2025 06:24:17 +0000 (15:24 +0900)] 
udevadm: introduce parse_resolve_name_timing()

9 months agoudevadm: several cleanups around parse_device_action()
Yu Watanabe [Sun, 2 Feb 2025 04:30:26 +0000 (13:30 +0900)] 
udevadm: several cleanups around parse_device_action()

- drop unnecessary one line function dump_device_action_table(),
- make parse_device_action() log about invalid action string,
- rename output argument of parse_device_action().

9 months agopo: sort languages
Yu Watanabe [Sun, 2 Feb 2025 06:44:10 +0000 (15:44 +0900)] 
po: sort languages

9 months agopo: Added translation using Weblate (Interlingua)
Emilio Sepulveda [Sun, 2 Feb 2025 05:37:08 +0000 (06:37 +0100)] 
po: Added translation using Weblate (Interlingua)

Co-authored-by: Emilio Sepulveda <emism.translations@gmail.com>
9 months agoudev: replace '!= _UDEV_BUILTIN_INVALID' -> '>= 0' 36239/head
Yu Watanabe [Sun, 2 Feb 2025 04:08:53 +0000 (13:08 +0900)] 
udev: replace '!= _UDEV_BUILTIN_INVALID' -> '>= 0'

No functional change, just refactoring.

9 months agoudev-builtin-hwdb: explicitly initialize global variable
Yu Watanabe [Sun, 2 Feb 2025 03:44:57 +0000 (12:44 +0900)] 
udev-builtin-hwdb: explicitly initialize global variable

9 months agoudev-builtin: normalize load/unload log messages by builtins
Yu Watanabe [Sun, 2 Feb 2025 03:38:00 +0000 (12:38 +0900)] 
udev-builtin: normalize load/unload log messages by builtins

9 months agoudev: introduce UDEV_BUILTIN_DESTRUCTOR macro
Yu Watanabe [Sun, 2 Feb 2025 03:35:38 +0000 (12:35 +0900)] 
udev: introduce UDEV_BUILTIN_DESTRUCTOR macro

9 months agoman: systemd-repart: factory=reset typo
andhe [Sat, 1 Feb 2025 23:07:06 +0000 (00:07 +0100)] 
man: systemd-repart: factory=reset typo

9 months agobuild(deps): bump super-linter/super-linter from 7.1.0 to 7.2.1
dependabot[bot] [Sat, 1 Feb 2025 09:54:18 +0000 (09:54 +0000)] 
build(deps): bump super-linter/super-linter from 7.1.0 to 7.2.1

Bumps [super-linter/super-linter](https://github.com/super-linter/super-linter) from 7.1.0 to 7.2.1.
- [Release notes](https://github.com/super-linter/super-linter/releases)
- [Changelog](https://github.com/super-linter/super-linter/blob/main/CHANGELOG.md)
- [Commits](https://github.com/super-linter/super-linter/compare/b92721f792f381cedc002ecdbb9847a15ece5bb8...85f7611e0f7b53c8573cca84aa0ed4344f6f6a4d)

---
updated-dependencies:
- dependency-name: super-linter/super-linter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
9 months agobuild(deps): bump softprops/action-gh-release from 2.1.0 to 2.2.1
dependabot[bot] [Sat, 1 Feb 2025 09:54:20 +0000 (09:54 +0000)] 
build(deps): bump softprops/action-gh-release from 2.1.0 to 2.2.1

Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.1.0 to 2.2.1.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/01570a1f39cb168c169c802c3bceb9e93fb10974...c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
9 months agobuild(deps): bump coverallsapp/github-action from 2.3.4 to 2.3.6
dependabot[bot] [Sat, 1 Feb 2025 09:54:27 +0000 (09:54 +0000)] 
build(deps): bump coverallsapp/github-action from 2.3.4 to 2.3.6

Bumps [coverallsapp/github-action](https://github.com/coverallsapp/github-action) from 2.3.4 to 2.3.6.
- [Release notes](https://github.com/coverallsapp/github-action/releases)
- [Commits](https://github.com/coverallsapp/github-action/compare/cfd0633edbd2411b532b808ba7a8b5e04f76d2c8...648a8eb78e6d50909eff900e4ec85cab4524a45b)

---
updated-dependencies:
- dependency-name: coverallsapp/github-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
9 months agokernel-install: install addons in 90-uki-copy.install if they are present
Luca Boccassi [Fri, 6 Dec 2024 23:46:12 +0000 (23:46 +0000)] 
kernel-install: install addons in 90-uki-copy.install if they are present

mkosi now has a kernel-install plugin to build addons, mkosi-addon.
If there are addons in <uki>.extra.d/ install them too to
the ESP.

9 months agoRevert "Reduce priority of "cleared HibernateLocation" message"
Mike Yuan [Thu, 30 Jan 2025 09:53:14 +0000 (10:53 +0100)] 
Revert "Reduce priority of "cleared HibernateLocation" message"

This reverts commit 9f575145ea27daca9bc3ac86d1c4f42273b4306a.

9 months agouserdb: fix typo
Yu Watanabe [Sat, 1 Feb 2025 05:09:03 +0000 (14:09 +0900)] 
userdb: fix typo

Follow-up for 7419291670dd4066594350cce585031f60bc4f0a.

9 months agoboot: rename efifirmware.[ch] -> efi-firmware.[ch] 36230/head
Yu Watanabe [Sat, 1 Feb 2025 04:39:49 +0000 (13:39 +0900)] 
boot: rename efifirmware.[ch] -> efi-firmware.[ch]

This also
- renames efifirmware_match_by_fwid() -> efi_firmware_match_by_fwid(),
- drops unnecessary wrapper efifw_get_fwid(),
- drops unnecessary inclusion of header <endian.h>,
- sort files in meson.build.

No functional change, just refactoring and follow-ups for
83bf58f39dbe947c1b4f394667f42a0c557fd94c.

9 months agoman: update tags in systemd-stub(7)
Yu Watanabe [Sat, 1 Feb 2025 04:37:45 +0000 (13:37 +0900)] 
man: update tags in systemd-stub(7)

- use <literal> for section name,
- use <command> for systemd-stub,
- drop '=' suffix from EFI variable name.

9 months agouki: introduce support for a .efifw section
Ani Sinha [Fri, 8 Nov 2024 06:31:51 +0000 (12:01 +0530)] 
uki: introduce support for a .efifw section

UKIs can be used to bundle uefi firmwares that can be measured and
used on a confidential computing environment. There can be more than one
firmware blob bundle, each one for a specific platform. Also firmware images
can themselves be containers like IGVM files that can in turn bundle the
actual firmware blob. This change is specifically for uefi firmwares, not
IGVM container files.

This change adds support to introduce a .efifw section in UKI that can be
used for firmware blobs/images. There can be multiple such sections and each
section can contain a single firmware image.

The matching .hwids entry for a specific platform can be used to select the
most appropriate firmware blob.

ukify tool has been also changed to support addition of a firmware image
in UKI.

Since firmware gets measured automatically, we do not need to measure it
separately as a part of the UKI.

9 months agofirstboot: fix crash when hostname question is skipped
Zbigniew Jędrzejewski-Szmek [Thu, 30 Jan 2025 14:25:38 +0000 (15:25 +0100)] 
firstboot: fix crash when hostname question is skipped