]>
git.ipfire.org Git - thirdparty/systemd.git/log
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2024 10:55:00 +0000 (11:55 +0100)]
test-parse-util: use ASSERT_* macros
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2024 10:10:07 +0000 (11:10 +0100)]
test-condition: use xsprintf and drop pointless cast
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2024 10:08:48 +0000 (11:08 +0100)]
test-condition: use ASSERT_* macros
Some strange asserts are dropped.
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2024 09:36:03 +0000 (10:36 +0100)]
test-cgroup: use ASSERT_* macros
The test for inode_same_at() is tightened to a specific value.
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2024 09:22:03 +0000 (10:22 +0100)]
test-bus-util: use ASSERT_* macros
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2024 09:18:36 +0000 (10:18 +0100)]
test-acl-util: use ASSERT_* macros
Andreas Schwab [Wed, 4 Dec 2024 12:41:14 +0000 (13:41 +0100)]
dmi: add RISC-V 64bit support
Zbigniew Jędrzejewski-Szmek [Wed, 4 Dec 2024 14:03:07 +0000 (15:03 +0100)]
docs/CONTRIBUTING: adjust grammar, info about tests and labels
Unfortunately our CI fails pretty much constantly, so instead of saying that
"tests don't pass", weasel this into "unit tests don't pass". Also fix grammar.
Labels are adjusted automatically now, so remove that sentence.
Zbigniew Jędrzejewski-Szmek [Wed, 4 Dec 2024 10:45:11 +0000 (11:45 +0100)]
mkosi: update fedora commit reference
*
433efb38f4 Only apply the new Recommends in fedora
*
8dc31eaf04 Recommend qemu-kvm-core instead of qemu-kvm
*
53cfdea02a Update tmpfiles --destroy-data patch
*
04f0a692da Version 257~rc3
*
243a055429 Make systemd-network-generator co-owned by -udev and -networkd
*
37c10f5b03 Pull in qemu from systemd-container
Luca Boccassi [Wed, 4 Dec 2024 13:32:28 +0000 (13:32 +0000)]
Use nicer syntax in two places in CI (#35455)
Luca Boccassi [Wed, 4 Dec 2024 10:09:37 +0000 (10:09 +0000)]
mkosi: disable Fedora specific drop-in config when running with sanitizers (#35460)
Hopefully fixes #35335.
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2024 16:12:33 +0000 (17:12 +0100)]
TEST-64: use more idiomatic loop syntax
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2024 16:11:41 +0000 (17:11 +0100)]
mkosi/ci: use a bash array to pass options
This patch initially also changed the configuration, but that'll be done in a
different way, so all that remains is the syntax change.
An array is nicer because the array definition can have inline comments and
doesn't use continuation symbols which are easy to mess up in edits.
Martin Srebotnjak [Wed, 4 Dec 2024 02:38:35 +0000 (03:38 +0100)]
po: Translated using Weblate (Slovenian)
Currently translated at 100.0% (257 of 257 strings)
Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/sl/
Translation: systemd/main
Geraldo S. Simião Kutz [Wed, 4 Dec 2024 02:38:35 +0000 (03:38 +0100)]
po: Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (257 of 257 strings)
Co-authored-by: Geraldo S. Simião Kutz <geraldo.simiao.kutz@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pt_BR/
Translation: systemd/main
Yu Watanabe [Wed, 4 Dec 2024 00:21:21 +0000 (09:21 +0900)]
mkosi: disable Fedora specific drop-in config when running with sanitizers
Hopefully fixes #35335.
Yu Watanabe [Wed, 4 Dec 2024 00:13:18 +0000 (09:13 +0900)]
Revert "mkosi: extend DefaultTimeoutStopSec= when running on sanitizers"
This reverts commit
b75befc3c98bcfa57ab801a24234ecab1c0b34a9 .
Unfortunately, it does not work. Let's revert.
Luca Boccassi [Tue, 3 Dec 2024 22:54:14 +0000 (22:54 +0000)]
More test coverage (#35451)
Add some simple tests to cover lines reported as not covered by
coveralls.
Antonio Alvarez Feijoo [Tue, 3 Dec 2024 16:25:57 +0000 (17:25 +0100)]
man: remove references to invalid rd.systemd.image_policy option
The option with the `rd.` prefix is not implemented, the image policy is not
applied in the initrd.
Bastien Nocera [Fri, 29 Nov 2024 21:20:29 +0000 (22:20 +0100)]
hwdb: Make 3D mice work out-of-the-box
According to https://en.wikipedia.org/wiki/3Dconnexion, 3D mice are:
human interface devices for manipulating and navigating
computer-generated 3D imagery. These devices are often referred to as
3D motion controllers, 3D navigation devices, 6DOF devices (six
degrees of freedom) or a 3D mouse.
Applications that want to support 3D mice on Linux are expected to
either use spacenavd and its library, or consume the HID output
directly.
This patch makes it possible for a number of applications that use 3D
mice directly to work out of the box, such as PrusaSlicer and its
derivatives.
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2024 09:36:09 +0000 (10:36 +0100)]
test-format-table: add test for unsetting table name
This should extend coverage to another part that previously wasn't covered.
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2024 08:59:10 +0000 (09:59 +0100)]
test-format-table: add smoke test for int/uint formatting
When looking at coverage data, I noticed that some types of ints have no
coverage whatsoever.
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2024 13:52:15 +0000 (14:52 +0100)]
test-format-table: convert to ASSERT_* macros
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2024 13:25:59 +0000 (14:25 +0100)]
shared/tests: adjust error messages
Grammar is improved a bit and some messages are shortened.
dependabot[bot] [Sun, 1 Dec 2024 09:52:59 +0000 (09:52 +0000)]
build(deps): bump softprops/action-gh-release from 2.0.8 to 2.1.0
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.0.8 to 2.1.0.
- [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/
c062e08bd532815e2082a85e87e3ef29c3e6d191 ...
01570a1f39cb168c169c802c3bceb9e93fb10974 )
---
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>
dependabot[bot] [Sun, 1 Dec 2024 09:53:11 +0000 (09:53 +0000)]
build(deps): bump github/codeql-action from 3.26.10 to 3.27.5
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.10 to 3.27.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/
e2b3eafc8d227b0241d48be5f425d47c2d750a13 ...
f09c1c0a94de965c15400f5634aa42fac8fb8f88 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] [Sun, 1 Dec 2024 09:59:15 +0000 (09:59 +0000)]
build(deps): bump ninja from 1.11.1.1 to 1.11.1.2 in /.github/workflows
Bumps [ninja](https://github.com/scikit-build/ninja-python-distributions) from 1.11.1.1 to 1.11.1.2.
- [Release notes](https://github.com/scikit-build/ninja-python-distributions/releases)
- [Changelog](https://github.com/scikit-build/ninja-python-distributions/blob/master/HISTORY.rst)
- [Commits](https://github.com/scikit-build/ninja-python-distributions/compare/1.11.1.1...1.11.1.2)
---
updated-dependencies:
- dependency-name: ninja
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Luca Boccassi [Mon, 2 Dec 2024 22:03:52 +0000 (22:03 +0000)]
pid1: assume user namespaces are unavailable if we get -EINVAL from clone (#35440)
Excited-bore [Mon, 2 Dec 2024 13:38:40 +0000 (14:38 +0100)]
Bash completion: no more ANSI colorcode in pathnames
Bash completion: no more ANSI colorcode in pathnames
Zbigniew Jędrzejewski-Szmek [Mon, 2 Dec 2024 13:42:23 +0000 (14:42 +0100)]
ukify: ellipsize CN to not exceed maximum length
Currently the generation of the certificate fails if len(fqdn) >= 43.
Ellipsize the fqdn to let the tests pass in all cases.
Fixes https://github.com/systemd/systemd/issues/34581.
Zbigniew Jędrzejewski-Szmek [Mon, 2 Dec 2024 10:25:53 +0000 (11:25 +0100)]
basic/namespace-util: fix double logging after fork failure
[ 10.056930] (journald)[104]: Failed to fork off '(sd-mkuserns)': Invalid argument
[ 10.063727] systemd[1]: systemd-modules-load.service: About to execute: /usr/lib/systemd/systemd-modules-load
[ 10.071148] (journald)[104]: Failed to fork process (sd-mkuserns): Invalid argument
safe_fork_full() already logs at debug level, so the caller shouldn't.
Zbigniew Jędrzejewski-Szmek [Mon, 2 Dec 2024 10:23:24 +0000 (11:23 +0100)]
pid1: assume user namespaces are unavailable if we get -EINVAL from clone()
As reported in https://github.com/systemd/systemd/issues/35400,
on riscv64, with Linux version 6.6.51-linux4microchip+fpga-2024.09, we get:
[ 10.063727] systemd[1]: systemd-modules-load.service: About to execute: /usr/lib/systemd/systemd-modules-load
[ 10.071148] (journald)[104]: Failed to fork process (sd-mkuserns): Invalid argument
Fixes https://github.com/systemd/systemd/issues/35400.
'r' is used to make the repeated checks shorter. Without that, the long variable
name is distracting.
Mike Yuan [Sat, 30 Nov 2024 17:04:52 +0000 (18:04 +0100)]
core/service: preserve RuntimeDirectory= even if oneshot service exits
Follow-up for
c26948c6dae1d2ca13499b36f193b13a0760834c
We only want to get rid of cred mount here, and RuntimeDirectory=
is documented to be retained for SERVICE_EXITED state.
Fixes #35427
Zbigniew Jędrzejewski-Szmek [Mon, 2 Dec 2024 09:46:34 +0000 (10:46 +0100)]
Yu Watanabe [Wed, 27 Nov 2024 16:14:24 +0000 (01:14 +0900)]
TEST-13-NSPAWN: enable debugging logs by nspawn run by systemd-run
Otherwise, it is hard to debug issue #35209.
Yu Watanabe [Sun, 1 Dec 2024 14:37:32 +0000 (23:37 +0900)]
NEWS: metion changes for networkd
Luca Boccassi [Fri, 29 Nov 2024 23:19:25 +0000 (23:19 +0000)]
kernel-install: remove .extra.d/ directory too
When a UKI is removed, the per-UKI .extra.d/ directory (addons,
extensions, etc) is left behind.
Yu Watanabe [Fri, 29 Nov 2024 17:52:01 +0000 (02:52 +0900)]
systemctl: skip checking inhibitors when dbus.service is not running
Fixes a bug introduced by
804874d26ac73e0af07c4c5d7165c95372f03f6d .
Fixes #35416.
Luca Boccassi [Fri, 29 Nov 2024 21:48:29 +0000 (21:48 +0000)]
mkosi: extend DefaultTimeoutStopSec= when running on sanitizers (#35420)
Hopefully fixes #35335.
Yu Watanabe [Fri, 29 Nov 2024 19:31:45 +0000 (04:31 +0900)]
mkosi: move setting for journald to mkosi.extra
Yu Watanabe [Fri, 29 Nov 2024 19:06:24 +0000 (04:06 +0900)]
mkosi: extend DefaultTimeoutStopSec= when running on sanitizers
Hopefully fixes #35335.
Matteo Croce [Fri, 29 Nov 2024 01:30:34 +0000 (02:30 +0100)]
mkosi: install correct package for mypy
Package "mypy" doesn't exist on all distro, install the correct package
depending on the distro.
Luca Boccassi [Fri, 29 Nov 2024 15:34:34 +0000 (15:34 +0000)]
Another tweak for the preparation of removal of sysvinit compat (#35414)
Zbigniew Jędrzejewski-Szmek [Fri, 29 Nov 2024 13:15:55 +0000 (14:15 +0100)]
meson: install README.logs independently of HAVE_SYSV_COMPAT
That file provides compatiblity (or more precisely the explanation for the lack
of compatibility) with syslog daemons. Those are used quite independently of
sysvinit. For example, RHEL uses rsyslog with systemd. We create
/var/log/journal, so it's no biggie to also provide /var/log/README with the
explanation. Let's keep it, since it might help some confused users, even when
compat with sysvinit is gone.
Zbigniew Jędrzejewski-Szmek [Fri, 29 Nov 2024 13:12:46 +0000 (14:12 +0100)]
Revert "link README.logs from tmpfiles.d/legacy.conf only if available"
This reverts commit
c946b1357562e8643575dbbda2c8c6fff2c0e4f7 .
The next patch will resolve the issue in a different way.
Temuri Doghonadze [Fri, 29 Nov 2024 12:38:37 +0000 (13:38 +0100)]
po: Translated using Weblate (Georgian)
Currently translated at 100.0% (257 of 257 strings)
Co-authored-by: Temuri Doghonadze <temuri.doghonadze@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/ka/
Translation: systemd/main
Yuri Chornoivan [Fri, 29 Nov 2024 12:38:37 +0000 (13:38 +0100)]
po: Translated using Weblate (Ukrainian)
Currently translated at 100.0% (257 of 257 strings)
Co-authored-by: Yuri Chornoivan <yurchor@ukr.net>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/uk/
Translation: systemd/main
Oğuz Ersen [Fri, 29 Nov 2024 12:38:37 +0000 (13:38 +0100)]
po: Translated using Weblate (Turkish)
Currently translated at 100.0% (257 of 257 strings)
Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/tr/
Translation: systemd/main
Luna Jernberg [Fri, 29 Nov 2024 12:38:36 +0000 (13:38 +0100)]
po: Translated using Weblate (Swedish)
Currently translated at 100.0% (257 of 257 strings)
Co-authored-by: Luna Jernberg <bittin@reimu.nl>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/sv/
Translation: systemd/main
김인수 [Fri, 29 Nov 2024 12:38:36 +0000 (13:38 +0100)]
po: Translated using Weblate (Korean)
Currently translated at 100.0% (257 of 257 strings)
Co-authored-by: 김인수 <simmon@nplob.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/ko/
Translation: systemd/main
Andika Triwidada [Fri, 29 Nov 2024 12:38:36 +0000 (13:38 +0100)]
po: Translated using Weblate (Indonesian)
Currently translated at 100.0% (257 of 257 strings)
Co-authored-by: Andika Triwidada <andika@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/id/
Translation: systemd/main
Léane GRASSER [Fri, 29 Nov 2024 12:38:36 +0000 (13:38 +0100)]
po: Translated using Weblate (French)
Currently translated at 100.0% (257 of 257 strings)
Co-authored-by: Léane GRASSER <leane.grasser@proton.me>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/fr/
Translation: systemd/main
Daan De Meyer [Wed, 27 Nov 2024 19:20:51 +0000 (20:20 +0100)]
mkosi: Simplify sanitizer setup
Let's get rid of 20-sanitizers.conf and just move it into
mkosi.sanitizers instead.
SuhailAhmedVelorum [Thu, 28 Nov 2024 16:46:32 +0000 (22:16 +0530)]
Typo fix in man/systemd.resource-control
David Tardon [Thu, 28 Nov 2024 12:33:55 +0000 (13:33 +0100)]
execute: free syscall_log hashmap when done
Fixes #35394
Piotr Drąg [Thu, 28 Nov 2024 11:22:32 +0000 (12:22 +0100)]
catalog: update Polish translation
Includes changes up to
e1f9d3c84b66d1b86adaae4c7aebf89514685d51
Piotr Drąg [Thu, 28 Nov 2024 11:23:11 +0000 (12:23 +0100)]
po: Translated using Weblate (Polish)
Currently translated at 100.0% (257 of 257 strings)
Co-authored-by: Piotr Drąg <piotrdrag@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pl/
Translation: systemd/main
Luca Boccassi [Thu, 28 Nov 2024 10:58:20 +0000 (10:58 +0000)]
sysupdate: add missing full stop in the polkit message (#35391)
Follow-up for
e55e7a5a613712dc9a94d40a1fea1f02d359961f .
Yu Watanabe [Thu, 28 Nov 2024 09:17:50 +0000 (18:17 +0900)]
po: update translations
Yu Watanabe [Thu, 28 Nov 2024 09:17:33 +0000 (18:17 +0900)]
po: update Japanese translation
Yu Watanabe [Thu, 28 Nov 2024 09:13:29 +0000 (18:13 +0900)]
sysupdate: add missing full stop to the polkit message
Follow-up for
e55e7a5a613712dc9a94d40a1fea1f02d359961f .
Luca Boccassi [Wed, 27 Nov 2024 21:11:45 +0000 (21:11 +0000)]
meson: update version
Luca Boccassi [Wed, 27 Nov 2024 21:11:33 +0000 (21:11 +0000)]
NEWS: update date
Luca Boccassi [Wed, 27 Nov 2024 21:08:18 +0000 (21:08 +0000)]
TEST-67-INTEGRITY: several fixes (#35366)
Fixes #35363.
Luca Boccassi [Wed, 27 Nov 2024 20:58:04 +0000 (20:58 +0000)]
Chores for RC3 (#35383)
Luca Boccassi [Wed, 27 Nov 2024 19:26:41 +0000 (19:26 +0000)]
nsresourced: log about correct errno (#35386)
Split out from #35242
Yu Watanabe [Wed, 27 Nov 2024 16:44:23 +0000 (01:44 +0900)]
network/queue: do not increase reference counter when remove request is not queued
Fixes a bug introduced by
ef45f5c8d0bfbeda2a57b28bba9831f044b23b21 .
Fixes #35164.
Mike Yuan [Wed, 27 Nov 2024 17:28:12 +0000 (18:28 +0100)]
nsresourced: log about correct errno in userns_destroy_cgroup()
Mike Yuan [Wed, 27 Nov 2024 17:37:46 +0000 (18:37 +0100)]
cgroup-util: use RET_NERRNO where appropriate
Yu Watanabe [Wed, 27 Nov 2024 15:10:36 +0000 (00:10 +0900)]
TEST-67-INTEGRITY: blkid should not provide the underlying loopback block device
Fixes #35363.
Yu Watanabe [Tue, 26 Nov 2024 15:06:39 +0000 (00:06 +0900)]
TEST-67-INTEGRITY: modernize test code
- make udevd generate debugging logs for loopback and DM devices,
- insert 'udevadm wait' at several places to make the device processed
by udevd,
- cleanup generated integritysetup service before moving to next
algorithm,
- drop unnecessary exit on command failure,
- also test data splitting mode for all algorithms.
Lennart Poettering [Wed, 27 Nov 2024 09:20:21 +0000 (10:20 +0100)]
nspawn: make sure --private-users-ownership=no and =off work the same way
We usually want to use "extended booleans" for cases like this, i.e.
that "off", "no" and "0" can be used interchangably for turning
something off.
Lennart Poettering [Wed, 27 Nov 2024 10:00:58 +0000 (11:00 +0100)]
sysext: coding style fixes & fix a memory leak
Follow-up for:
bbec1c87d3bf8d14eeb1ee3b4df973a53cca2e58
Luca Boccassi [Wed, 27 Nov 2024 15:14:18 +0000 (15:14 +0000)]
po: update translations
ninja -C build systemd-update-po
Luca Boccassi [Wed, 27 Nov 2024 14:51:03 +0000 (14:51 +0000)]
hwdb: update
ninja -C build update-hwdb
Luca Boccassi [Wed, 27 Nov 2024 14:49:45 +0000 (14:49 +0000)]
NEWS: update contributors list
Yu Watanabe [Wed, 27 Nov 2024 15:16:29 +0000 (00:16 +0900)]
Minor follow-ups for recent PRs (#35381)
Lennart Poettering [Wed, 27 Nov 2024 09:19:35 +0000 (10:19 +0100)]
service: don't second guess invocation mode again
let's just check the debug invocation boolean, and not recheck the
restart mode again. It's mostly redundant (because the boolean should
not have been become true if the restart mode was not set accordingly).
Moreover, i think we might want to eventually allow a manual way to
enable debug invocation mode, and hence this pointless checking would
become a problem.
Also, we never check the restart mode again in other cases, hence we
shouldn't here either.
Lennart Poettering [Wed, 27 Nov 2024 09:21:23 +0000 (10:21 +0100)]
nspawn: improve error message when we cannot look into a container tree due to perms
Lennart Poettering [Wed, 27 Nov 2024 09:17:36 +0000 (10:17 +0100)]
tests: fix access mode of root inode of throw-away container images
Otherwise the root inode will typically have what mkdtemp sets up, which
is something like 0700, which is weird and somewhat broken when trying
to look into containers from unpriv users.
Lennart Poettering [Wed, 27 Nov 2024 09:26:04 +0000 (10:26 +0100)]
nspawn: don't try to unregister a machine we never registered
When registering we condition this on "arg_register". Let's do the same
when unregistering, otherwise we might end up trying to unregister a
machine we never registered.
Mike Yuan [Wed, 27 Nov 2024 13:47:32 +0000 (14:47 +0100)]
shared/bootspec: mark _to_string funcs as _const_
Addresses https://github.com/systemd/systemd/pull/34959#discussion_r1860451777
Mike Yuan [Wed, 27 Nov 2024 13:44:22 +0000 (14:44 +0100)]
shared/bootspec: use FOREACH_ELEMENT where appropriate, avoid unneeded memzero()
Mike Yuan [Wed, 27 Nov 2024 13:43:30 +0000 (14:43 +0100)]
shared/bootspec: move boot_entry_addons_done() up, drop separate prototype
Follow-up for
e2501a851e10f5279862b2bccbdd9184572cce6a
Mike Yuan [Wed, 27 Nov 2024 13:33:23 +0000 (14:33 +0100)]
basic/fileio: minor coding style cleanup
Follow-up for
bbec1c87d3bf8d14eeb1ee3b4df973a53cca2e58
Lennart Poettering [Wed, 27 Nov 2024 09:15:41 +0000 (10:15 +0100)]
man: split systemd.conf(5) into multiple sections
No changes in wording, let's just make a very long man page a bit more
digestable by adding sections, and then reordering settings to fit into
them.
Lennart Poettering [Wed, 27 Nov 2024 09:15:28 +0000 (10:15 +0100)]
Update TODO
Luca Boccassi [Wed, 27 Nov 2024 10:55:32 +0000 (10:55 +0000)]
bootspec fixups (#34959)
Zbigniew Jędrzejewski-Szmek [Wed, 27 Nov 2024 08:50:41 +0000 (09:50 +0100)]
ukify: Switch to JSON HWID description format (#35208)
Fixes #35176
Adrian Vovk [Tue, 1 Oct 2024 20:54:22 +0000 (22:54 +0200)]
bootspec: Look at /loader/addons in XBOOTLDR
The bootspec util-lib's handling of global addons didn't previously
match the behavior of sd-stub, and this commit corrects that.
First, bootspec didn't load global addons from the XBOOTLDR dir, but the
stub does. So, bootspec now enumerates addons in XBOOTLDR, not just ESP
Second, the stub only loads resources (including addons) from the
partition that it was found on. Thus, we must keep track of which
partition the global addons come from, and which partition each boot
entry comes from. In other words: global addons found on the ESP will
NOT apply to UKIs found in XBOOTLDR, and bootspec now reflects that.
Adrian Vovk [Wed, 30 Oct 2024 19:38:49 +0000 (15:38 -0400)]
bootspec: Fixup loading of local addons for UKIs
Follow-up for
59b3df9
Adrian Vovk [Tue, 1 Oct 2024 20:53:02 +0000 (22:53 +0200)]
bootspec: Fixup memory leak
This would previously leak memory: the array was deleted but contents
inside of the array were not
Adrian Vovk [Tue, 1 Oct 2024 20:29:47 +0000 (22:29 +0200)]
sd-stub: Fixup typo & measurement order
A previous commit accidentally reversed the measurement order of the
confext initrds and sysext initrds via a minor typo. This commit fixes
the typo and restores the original measurement order
Follow-up:
ac32323
gerblesh [Thu, 14 Nov 2024 19:12:40 +0000 (19:12 +0000)]
sysext: set SELinux context for hierarchies and workdir
Yu Watanabe [Tue, 26 Nov 2024 13:29:36 +0000 (22:29 +0900)]
man: several more assorted fixes
Continuation of
4ebbb5bfe88ac3d793c395472648660c33251546 .
Closes #35307.
Luca Boccassi [Tue, 26 Nov 2024 16:12:56 +0000 (16:12 +0000)]
machine: increase timeouts in attempt to fix #35115 (#35117)
An attempt to fix https://github.com/systemd/systemd/issues/35115
Lennart Poettering [Wed, 20 Nov 2024 12:13:41 +0000 (13:13 +0100)]
sd-varlink: fix bug when enqueuing messages with fds asynchronously
When determining the poll events to wait for we need to take the queue
of pending messages that carry fds into account. Otherwise we might end
up not waking up if such an fd-carrying message is enqueued
asynchronously (i.e. not from a dispatch callback).
Winterhuman [Tue, 26 Nov 2024 13:41:49 +0000 (13:41 +0000)]
man/systemd-system.conf: Correct "struct" to "strict" (#35364)
Luca Boccassi [Mon, 25 Nov 2024 22:31:01 +0000 (22:31 +0000)]
cryptsetup: convert pkcs11/fido2 to iovec for key handling
key-data might be NULL. Fixes crash:
0 0x0000559c62120530 in attach_luks_or_plain_or_bitlk (cd=0x559c6b192830, name=0x7ffd57981dc4 "root", token_type=TOKEN_FIDO2, key_file=0x0, key_data=0x0, passwords=0x0, flags=524296, until=0)
at ../src/cryptsetup/cryptsetup.c:2234
pass_volume_key = false
r =
1469577760
__func__ = '\000' <repeats 29 times>
1 0x0000559c6212279c in run (argc=6, argv=0x7ffd5797fe98) at ../src/cryptsetup/cryptsetup.c:2597
discovered_key_data = {iov_base = 0x0, iov_len = 0}
key_data = 0x0
token_type = TOKEN_FIDO2
destroy_key_file = 0x0
flags = 524296
until = 0
passphrase_type = PASSPHRASE_NONE
volume = 0x7ffd57981dc4 "root"
source = 0x7ffd57981dc9 "/dev/disk/by-uuid/
8372fb39 -9ba4-461a-a618-
07dcaae66280 "
status = CRYPT_INACTIVE
tries = 0
key_file = 0x0
config = 0x7ffd57981e05 "luks,discard,fido2-device=auto,x-initrd.attach"
use_cached_passphrase = true
try_discover_key = true
discovered_key_fn = 0x7ffd5797fa70 "root.key"
passwords = 0x0
cd = 0x559c6b192830
verb = 0x7ffd57981dbd "attach"
r = 0
__func__ = "\000\000\000"
2 0x0000559c621231e6 in main (argc=6, argv=0x7ffd5797fe98) at ../src/cryptsetup/cryptsetup.c:2674
r = 32553
__func__ = "\000\000\000\000"
Follow-up for
53b6c99018f918a5d2c9000ac5fe3a2440115ea7
Abderrahim Kitouni [Tue, 26 Nov 2024 10:55:33 +0000 (11:55 +0100)]
updatectl: fix DBus method signature for SetFeatureEnabled
The signature was changed to 'sit' in sysupdated during review, but updatectl
kept using 'sbt'