Yu Watanabe [Fri, 1 Nov 2024 21:03:09 +0000 (06:03 +0900)]
network: introduce manager_serialize()/deserialize()
Currently, only configuration sources and providers of addresses and
routes are serialized/deserialized.
This should mostly not change behavior, as dynamic (except for DHCPv4)
configurations will be dropped before stopping networkd, and for DHCPv4
protocol, we have already had another logic to handle DHCPv4
configurations.
Preparation for later commits.
Lennart Poettering [Fri, 8 Nov 2024 22:06:44 +0000 (23:06 +0100)]
namespace-util: pin pid via pidfd during namespace_open()
Luca Boccassi [Wed, 13 Nov 2024 14:06:21 +0000 (14:06 +0000)]
network/ndisc: fix removal of unnecessary routes (#35128)
Follow-up for
972f1d17ab461a51142a142609dd3ec50bae8440.
This fixes the logic of removing unnecessary routes configured by the
previously received RAs. Previously, we wrongly handled existing routes
could be updated, and unexpected routes would be kept.
Yu Watanabe [Wed, 13 Nov 2024 01:09:05 +0000 (10:09 +0900)]
sd-boot/sd-stub: two log message fixes (#35143)
Fixes: #35033
Fixes: #35100
Yu Watanabe [Wed, 13 Nov 2024 01:08:29 +0000 (10:08 +0900)]
audit-util: return -ENODATA from audit_{session|loginuid}_from_pid() if invoked in a container (#35072)
The auditing subsystem is still not virtualized for containers, hence
the two values don't really make sense inside them, they will just leak
information from outside into the container. Hence don't make use of the
data if we detect we are run inside of a container.
This has visible effects: logind will no longer try to reuse the
auditing session ids as its own session ids when run inside a container.
While are at it, modernize the calls in more ways:
1. switch to pidref behaviour, all but one of our uses are using pidref
anyway already.
2. use read_virtual_file() + proc_mounted()
3. reasonably distinguish ENOENT errors when reading the process proc
files: distinguish the case where /proc is not mounted, from the case
where the process is already gone, from where auditing is not enabled in
the kernel build.
Lennart Poettering [Tue, 12 Nov 2024 21:18:05 +0000 (22:18 +0100)]
ptyfwd: ellipsize overly long window titles
Apparently some terminal emulators have problems with overly long
titles, hence truncate them at some safe length (128).
Also, when parsing ANSI sequences ourselves accept longer sequences
(192), after all we should be fine when parsing our own title sequences.
Fixes: #35104
Mike Yuan [Tue, 12 Nov 2024 18:30:38 +0000 (19:30 +0100)]
various: check meson feature flag early
Prompted by https://github.com/systemd/systemd/pull/35110#discussion_r1835885340
Lennart Poettering [Tue, 12 Nov 2024 22:17:41 +0000 (23:17 +0100)]
pe: use PE_SECTION_VECTOR_IS_SET() macro where appropriate
Lennart Poettering [Tue, 12 Nov 2024 22:15:17 +0000 (23:15 +0100)]
pe: remove unnecessary log message about DT/HWID
Fixes: #35100
Lennart Poettering [Tue, 12 Nov 2024 22:22:39 +0000 (23:22 +0100)]
efi: don't log if EFI RNG isn't ready
Apparently this happens IRL on some systems, let's handle this
gracefully and don't log.
Fixes: #35033
Lennart Poettering [Tue, 12 Nov 2024 13:18:31 +0000 (14:18 +0100)]
run0: when changing privileges to non-root, do not show superhero emoji
Let's show an idcard logo instead, to indicate that we changed ids.
Lennart Poettering [Tue, 12 Nov 2024 14:22:31 +0000 (15:22 +0100)]
dbus-manager: add missing word 'unit' to PK message
Lennart Poettering [Tue, 12 Nov 2024 22:08:45 +0000 (23:08 +0100)]
tree-wide: remove some dead code (#35137)
Lennart Poettering [Thu, 7 Nov 2024 13:54:21 +0000 (14:54 +0100)]
process-util: more gracefully handle oom adjust parsing/setting
Who knows what kind of mount shenanigans people employ, let's gracefully
handle parse failures of proc files, like we alway do otherwsie.
Lennart Poettering [Thu, 7 Nov 2024 16:49:34 +0000 (17:49 +0100)]
audit-util: modernize use_audit() a bit
Use ERRNO_IS_xyz() macros where appropriate.
Also, reduce indentation a bit by inverted early check.
And log in more error codepaths.
Lennart Poettering [Thu, 7 Nov 2024 13:48:57 +0000 (14:48 +0100)]
audit-util: return -ENODATA from audit_{session|loginuid}_from_pid() if invoked in a container
The auditing subsystem is still not virtualized for containers, hence the two
values don't really make sense inside them, they will just leak
information from outside into the container. Hence don't make use of the
data if we detect we are run inside of a container.
This has visible effects: logind will no longer try to reuse the
auditing session ids as its own session ids when run inside a container.
While are at it, modernize the calls in more ways:
1. switch to pidref behaviour, all but one of our uses are using pidref
anyway already.
2. use read_virtual_file() + proc_mounted()
3. reasonable distinguish ENOENT errors when reading the process proc
files: distinguish the case where /proc is not mounted, from the case
where the process is already gone, from where auditing is not enabled
in the kernel build.
Davide Cavalca [Tue, 12 Nov 2024 04:49:36 +0000 (20:49 -0800)]
mkosi: ruff is not available on all distros
Refactor to only install ruff where it is available
Maanya Goenka [Tue, 12 Nov 2024 18:00:23 +0000 (10:00 -0800)]
TODO: Fix typo (#35138)
Replace confex with confext
Lennart Poettering [Mon, 11 Nov 2024 16:49:32 +0000 (17:49 +0100)]
nspawn: fix indentation of run_container() parameter list
Lennart Poettering [Fri, 8 Nov 2024 22:07:00 +0000 (23:07 +0100)]
mntwork: shorten code
Lennart Poettering [Mon, 11 Nov 2024 16:19:26 +0000 (17:19 +0100)]
dissect-image: remove dead code
Lennart Poettering [Fri, 8 Nov 2024 11:14:52 +0000 (12:14 +0100)]
mountfsd: drop unused variable
Antonio Alvarez Feijoo [Tue, 12 Nov 2024 15:18:30 +0000 (16:18 +0100)]
sbsign: remove unused --no-pager option
Davide Cavalca [Tue, 12 Nov 2024 04:44:50 +0000 (20:44 -0800)]
mkosi: Install tpm2-tss-devel to tools for CentOS and Fedora instead of tss2-devel
tss2-devel is the IBM TPM stack, we want the Intel TPM stack, so let's
use the correct package.
Yu Watanabe [Tue, 12 Nov 2024 09:23:47 +0000 (18:23 +0900)]
Fix man page links broken due to incorrect volume numbers (#35122)
Yu Watanabe [Tue, 12 Nov 2024 07:04:16 +0000 (16:04 +0900)]
test-network: several cleanups
- fix verifiers in test_router_preference() to make them actually check
if unnecessary routes are removed,
- stop radv in test_ndisc_vs_static_route() before checking if the static
route is preserved even when the router sends a RA with zero lifetime,
- make verifiers in NetworkdIPv6PrefixTests stricter.
Yu Watanabe [Mon, 11 Nov 2024 17:11:12 +0000 (02:11 +0900)]
network/ndisc: restore the original preference and priority before checking if existing route can be updated
Follow-up for
972f1d17ab461a51142a142609dd3ec50bae8440.
This fixes the logic of removing unnecessary routes configured by the
previously received RAs. Previously, we wrongly handled existing routes
could be updated, and unexpected routes would be kept.
Yu Watanabe [Mon, 11 Nov 2024 19:31:55 +0000 (04:31 +0900)]
network/ndisc: introduce ndisc_route_prepare() and ndisc_router_route_prepare()
These applies common parameters to the route to be requested or removed.
No functional change, just refactoring and preparation for later
commits.
Yu Watanabe [Mon, 11 Nov 2024 17:06:21 +0000 (02:06 +0900)]
network/ndisc: several cleanups for ndisc_remove_route()
- drop unnecessary call of ndisc_set_route_priority() at the beginning,
as it is called later in the loop below,
- use RET_GATHER() and remove all possible routes even if failed.
Yu Watanabe [Mon, 11 Nov 2024 17:03:44 +0000 (02:03 +0900)]
network/ndisc: introduce route_is_bound_to_link() helper function and use it where applicable
No functional change, and preparation for later commits.
Antonio Alvarez Feijoo [Tue, 12 Nov 2024 07:29:28 +0000 (08:29 +0100)]
man/systemd-keyutil: fix rendering typo
Štěpán Němec [Mon, 11 Nov 2024 19:31:43 +0000 (20:31 +0100)]
man/systemd.special: fix a typo
Štěpán Němec [Mon, 11 Nov 2024 19:10:00 +0000 (20:10 +0100)]
man: fix incorrect volume numbers in internal man page references
Some ambiguity (e.g., same-named man pages in multiple volumes)
makes it impossible to fully automate this, but the following
Python snippet (run inside the man/ directory of the systemd repo)
helped to generate the sed command lines (which were subsequently
manually reviewed, run and the false positives reverted):
from pathlib import Path
import lxml
from lxml import etree as ET
man2vol: dict[str, str] = {}
man2citerefs: dict[str, list] = {}
for file in Path(".").glob("*.xml"):
tree = ET.parse(file, lxml.etree.XMLParser(recover=True))
meta = tree.find("refmeta")
if meta is not None:
title = meta.findtext("refentrytitle")
if title is not None:
vol = meta.findtext("manvolnum")
if vol is not None:
man2vol[title] = vol
citerefs = list(tree.iter("citerefentry"))
if citerefs:
man2citerefs[title] = citerefs
for man, refs in man2citerefs.items():
for ref in refs:
title = ref.findtext("refentrytitle")
if title is not None:
has = ref.findtext("manvolnum")
try:
should_have = man2vol[title]
except KeyError: # Non-systemd man page reference? Ignore.
continue
if has != should_have:
print(
f"sed -i '\\|<citerefentry><refentrytitle>{title}"
f"</refentrytitle><manvolnum>{has}</manvolnum>"
f"</citerefentry>|s|<manvolnum>{has}</manvolnum>|"
f"<manvolnum>{should_have}</manvolnum>|' {man}.xml"
)
Yu Watanabe [Mon, 11 Nov 2024 16:07:43 +0000 (01:07 +0900)]
network: forget IPv4 non-local routes when an interface went down (#35099)
Fixes #35047.
Lennart Poettering [Mon, 11 Nov 2024 15:09:07 +0000 (16:09 +0100)]
Introduce systemd-keyutil to do various key/certificate operations (#35095)
Let's gather generic key/certificate operations in a new tool
systemd-keyutil instead of spreading them across various special purpose
tools.
Fixes #35087
Yu Watanabe [Fri, 8 Nov 2024 13:55:20 +0000 (22:55 +0900)]
test-network: add test case for issue #35047
Yu Watanabe [Mon, 11 Nov 2024 04:00:10 +0000 (13:00 +0900)]
network/nexthop: also forget IPv4 nexthops when an interface went down
Similar to the previous commit, but for nexthop.
Yu Watanabe [Fri, 8 Nov 2024 13:07:53 +0000 (22:07 +0900)]
network/route: forget IPv4 non-local routes when an interface went down
When an interface went down, IPv4 non-local routes are removed by the
kernel without any notifications. Let's forget the routes in that case.
Fixes #35047.
Yu Watanabe [Mon, 11 Nov 2024 03:26:48 +0000 (12:26 +0900)]
network/nexthop: forget dependent routes without trying to remove
When a nexthop is removed, routes depend on the removed nexthop are
already removed. It is not necessary to remove them, as already
commented. Let's forget them without trying to remove.
Yu Watanabe [Mon, 11 Nov 2024 04:51:49 +0000 (13:51 +0900)]
network/nexthop: do not remove depending nexthops when a nexthop is removed
Previously, when a nexthop is removed, depending nexthops were removed, but
that's not necessary, as the kernel keeps them, at least with v6.11.
Yu Watanabe [Mon, 11 Nov 2024 07:05:54 +0000 (16:05 +0900)]
network/route: update reference of the route from nexthop
Follow-up for
6f09031e4d04727cc72164fefcbc763e37556493.
The function has been introduced by the commit, but it has never been used...
Luca Boccassi [Mon, 11 Nov 2024 12:59:31 +0000 (12:59 +0000)]
network: further rework for reconfiguring interfaces (#35059)
Follow-ups for #35035.
Split-out of #34989.
Fixes #35092.
Yu Watanabe [Mon, 11 Nov 2024 09:36:26 +0000 (18:36 +0900)]
Split src/partition (#35110)
Gabriel Elyas [Mon, 11 Nov 2024 08:36:51 +0000 (09:36 +0100)]
po: Translated using Weblate (Portuguese (Brazil))
Currently translated at 96.1% (247 of 257 strings)
Co-authored-by: Gabriel Elyas <gabrielelyas@protonmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pt_BR/
Translation: systemd/main
Zbigniew Jędrzejewski-Szmek [Sun, 10 Nov 2024 13:05:08 +0000 (14:05 +0100)]
Rename src/partition to src/repart
Yu Watanabe [Wed, 6 Nov 2024 18:26:39 +0000 (03:26 +0900)]
network: make 'networkctl reconfigure' work safely even when KeepConfiguration=dhcp or yes
Previously, even if KeepConfiguration=dhcp or yes is specified in the
new .network file, dynamic configurations like DHCP address and routes
were dropped when 'networkctl reconfigure INTERFACE' is invoked.
If the setting is specified, let's gracefully handle the dynamic
configurations. Then, 'networkctl reconfigure' can be also used for
an interface that has critical connections.
Yu Watanabe [Wed, 6 Nov 2024 18:02:54 +0000 (03:02 +0900)]
network: drop static configs later
Follow-up for
dd6d53a8dc58c5e6e310b09ba7f7a22600a87ba9.
Unnecessary static configs will be anyway dropped later in
link_configure() -> link_drop_unmanaged_config(). Hence, even if we are
reconfiguring an interface cleanly, it is not necessary to drop static
configs here.
Yu Watanabe [Thu, 7 Nov 2024 00:16:06 +0000 (09:16 +0900)]
network/dhcp-pd: do not remove unreachable route when reconfiguring non-upstream interface
Unreachable routes are not owned by any interfaces, and its ifindex is
zero. Previously, if a non-upstream interface is reconfigured, all routes
including unreachable routes configured by the upstream interface are
removed.
This makes unreachable routes are always handled by the upstream interface,
and only removed when the delegated prefixes are changed or lost.
Yu Watanabe [Thu, 7 Nov 2024 01:13:37 +0000 (10:13 +0900)]
network: reorder dropping dynamic configuration
Follow-up for
451c2baf30f50b95d73e648058c7c2348dbf0c31.
Yu Watanabe [Thu, 7 Nov 2024 00:52:03 +0000 (09:52 +0900)]
test-network: reconfigure interface cleanly to drop previous DHCP lease and friends
Follow-up for
451c2baf30f50b95d73e648058c7c2348dbf0c31.
With the commits, reloading .network files does not release previously
acquired DHCP lease and friends if possible.
On graceful reconfigure triggered by the reload, the interface may
acquire a new DHCPv4 lease earlier than DHCPv6 lease. In that case,
the check will fail as it is done with the new DHCPv4 lease and old
DHCPv6 lease, which does not contain any IPv6 DNS servers or so.
So, when switching from no -> yes, we need to wait a new lease with DNS
servers or so. To achieve that, we need to clean reconfigure the interface.
Yu Watanabe [Thu, 7 Nov 2024 00:52:03 +0000 (09:52 +0900)]
network: reset 'configured' flags even if we keep DHCP lease and friends on reconfigure
Follow-up for
451c2baf30f50b95d73e648058c7c2348dbf0c31.
With the commits, reloading .network files does not release previously
acquired DHCP lease and friends if possible. If previously a DHCP client
was configured as not requesting DNS servers or so, then the previously
acquired lease might not contain any DNS servers. In that case, if the
new .network file enables UseDNS=, then the interface should enter the
configured state after a new lease is acquired. To achieve that, we need
to reset the flags.
With this change, the workaround applied to the test by the commit
451c2baf30f50b95d73e648058c7c2348dbf0c31 can be dropped.
Yu Watanabe [Thu, 7 Nov 2024 03:00:38 +0000 (12:00 +0900)]
network: drop unnecessary size specifier
It does not save any memory usage but increase code complexity.
Yu Watanabe [Fri, 8 Nov 2024 11:38:42 +0000 (20:38 +0900)]
netwrok: call link_drop_unmanaged_config() earlier in link_configure()
Otherwise, even if a link enters the configuring state at the beginning
of link_configure(), link_check_ready() may be called before
link_drop_unmanaged_config() is called, and the link may enter the
configured state.
Fixes #35092.
Zbigniew Jędrzejewski-Szmek [Sun, 10 Nov 2024 13:01:34 +0000 (14:01 +0100)]
Move growfs+makefs to src/growfs/
Those two programs are used together and it makes sense to keep them
together. makefs is smaller, so name the directory after growfs.
Yu Watanabe [Sun, 10 Nov 2024 02:19:10 +0000 (11:19 +0900)]
Various multi-dt fixes and CHID test (#35056)
Part of #34158
12paper [Sun, 10 Nov 2024 02:13:39 +0000 (03:13 +0100)]
login: fix session_kill(..., KILL_LEADER,...) (#35105)
`loginctl kill-session --kill-whom=leader <N>` (or the D-Bus equivalent)
doesn't work because logind ends up calling `KillUnit(..., "main", ...)`
on a scope unit and these don't have a `MainPID` property. Here, I just
make it send a signal to the `Leader` directly.
Valentin David [Sat, 9 Nov 2024 12:56:34 +0000 (13:56 +0100)]
ukify: Fix broken assert when building a signed addon
An assert always expected a kernel when signature key was present in command
line. That prevented building signed addons.
Fixes #35041
Weblate Translation Memory [Sat, 9 Nov 2024 20:14:00 +0000 (21:14 +0100)]
po: Translated using Weblate (German)
Currently translated at 93.7% (241 of 257 strings)
Co-authored-by: Weblate Translation Memory <noreply-mt-weblate-translation-memory@weblate.org>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/de/
Translation: systemd/main
Ettore Atalan [Sat, 9 Nov 2024 20:14:00 +0000 (21:14 +0100)]
po: Translated using Weblate (German)
Currently translated at 93.7% (241 of 257 strings)
Co-authored-by: Ettore Atalan <atalanttore@googlemail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/de/
Translation: systemd/main
Mike Yuan [Fri, 8 Nov 2024 18:28:24 +0000 (19:28 +0100)]
meson.build: add a few features to summary
Luca Boccassi [Fri, 8 Nov 2024 23:21:29 +0000 (23:21 +0000)]
sysupdate: Bug fixes for target enumeration (#35052)
Fixes a couple of bugs with systemd-sysupdated's target enumeration. See
commit messages for details.
<!-- devel-freezer =
{"comment-id":"
2460494553","freezing-tag":"v257-rc1"} -->
Lidong Zhong [Thu, 7 Nov 2024 06:41:11 +0000 (14:41 +0800)]
udev: skipping empty udev rules file while collecting the stats
To keep align with the logic used in udev_rules_parse_file(), we also
should skip the empty udev rules file while collecting the stats during
manager reload. Otherwise all udev rules files will be parsed again whenever
reloading udev manager with an empty udev rules file. It's time consuming
and the following uevents will fail with timeout.
Lennart Poettering [Fri, 8 Nov 2024 10:50:15 +0000 (11:50 +0100)]
uid-classification: properly classify *all* container UIDs
A bit confusingly CONTAINER_UID_BASE_MAX is just the maximum *base* UID
for a container. Thus, with the usual 64K UID assignments, the last
actual container UID is CONTAINER_UID_BASE_MAX+0xFFFF.
To make this less confusing define CONTAINER_UID_MIN/MAX that add the
missing extra space.
Also adjust two uses where this was mishandled so far, due to this
confusion.
With this change the UID ranges we default to should properly match what
is documented on https://systemd.io/UIDS-GIDS/.
Zbigniew Jędrzejewski-Szmek [Fri, 8 Nov 2024 16:17:37 +0000 (17:17 +0100)]
News and f41 and formatting (#35078)
Daan De Meyer [Fri, 8 Nov 2024 10:34:21 +0000 (11:34 +0100)]
Introduce systemd-keyutil to do various key/certificate operations
Let's gather generic key/certificate operations in a new tool
systemd-keyutil instead of spreading them across various special
purpose tools.
Fixes #35087
Zbigniew Jędrzejewski-Szmek [Thu, 7 Nov 2024 15:47:48 +0000 (16:47 +0100)]
man: drop whitespace from final <programlisting> lines
In the troff output, this doesn't seem to make any difference. But in the
html output, the whitespace is sometimes preserved, creating an additional
gap before the following content. Drop it everywhere to avoid this.
Yu Watanabe [Thu, 7 Nov 2024 18:56:46 +0000 (03:56 +0900)]
mount-util: make path_get_mount_info() work arbitrary inode
Follow-up for
d49d95df0a260aaca9a3fdd1e6ce535592a53bca.
Replaces
9a032ec55a9820a0424309670fe551c99203e5f1.
Fixes #35075.
Franck Bui [Thu, 7 Nov 2024 15:37:13 +0000 (16:37 +0100)]
test: install integration-test-setup.sh in testdata/
integration-test-setup.sh is an auxiliary script that tests rely on at
runtime. As such, install the script in testdata/.
Follow-up for
af153e36ae67c242251951c12d6d6b6ae4783845.
Lennart Poettering [Fri, 8 Nov 2024 09:10:11 +0000 (10:10 +0100)]
update TODO
Lennart Poettering [Fri, 8 Nov 2024 08:21:25 +0000 (09:21 +0100)]
fs-util: add comment about XO_NOCOW
Ryan Wilson [Fri, 8 Nov 2024 00:30:57 +0000 (16:30 -0800)]
Fix PrivatePIDs=yes integration test for kernels with no /proc/scsi
anonymix007 [Wed, 6 Nov 2024 20:12:07 +0000 (23:12 +0300)]
fundamental: Fix buffer size in get_chid
NUL byte should not be hashed
anonymix007 [Wed, 6 Nov 2024 20:10:50 +0000 (23:10 +0300)]
fundamental: Fix iteration count in chid_calculate
anonymix007 [Wed, 6 Nov 2024 20:09:27 +0000 (23:09 +0300)]
fundamental: move string includes from chid-fundamental.c to header
anonymix007 [Wed, 6 Nov 2024 20:06:32 +0000 (23:06 +0300)]
test: Add chid-fundamental test
Lennart Poettering [Thu, 7 Nov 2024 14:19:13 +0000 (15:19 +0100)]
sd-varlink: allow that method handles call sd_varlink_close()
It's fine if a method handler closes the connection, deal with it
gracefully.
Daan De Meyer [Thu, 7 Nov 2024 20:51:00 +0000 (21:51 +0100)]
tree-wide: Introduce --certificate-source= option (#35057)
This allows loading the X.509 certificate from an OpenSSL provider
instead of a file system path. This allows loading certficates directly
from hardware tokens instead of having to export them to a file on
disk first.
<!-- devel-freezer =
{"comment-id":"
2460915782","freezing-tag":"v257-rc1"} -->
anonymix007 [Wed, 6 Nov 2024 20:05:08 +0000 (23:05 +0300)]
fundamental: Add userspace efi_guid_equal
anonymix007 [Wed, 6 Nov 2024 20:04:18 +0000 (23:04 +0300)]
boot: Fix .dtbauto section number for error reporting
anonymix007 [Wed, 6 Nov 2024 20:03:12 +0000 (23:03 +0300)]
boot: Fix overflow check for FDT_PROP in devicetree_get_compatible
anonymix007 [Wed, 6 Nov 2024 20:02:02 +0000 (23:02 +0300)]
boot: Drop const modifier for smbios_fields and fix smbios_info_done
Daan De Meyer [Wed, 6 Nov 2024 17:09:37 +0000 (18:09 +0100)]
ukify: Introduce --certificate-provider= option
This translates to --certificate-source=provider:<provider> for
signing tools invoked by ukify.
Daan De Meyer [Thu, 7 Nov 2024 13:44:44 +0000 (14:44 +0100)]
measure: Add pcrpkey verb
This verb writes a public key to stdout extracted from either a public key
path, from a certificate (path or provider) or from a private key (path,
engine, provider). We'll use this in ukify to get rid of the use of the
python cryptography module to convert a private key or certificate to a
public key.
Daan De Meyer [Wed, 6 Nov 2024 17:08:26 +0000 (18:08 +0100)]
tree-wide: Introduce --certificate-source= option
This allows loading the X.509 certificate from an OpenSSL provider
instead of a file system path. This allows loading certficates directly
from hardware tokens instead of having to export them to a file on
disk first.
Daan De Meyer [Wed, 6 Nov 2024 17:07:11 +0000 (18:07 +0100)]
openssl-util: Set expected object type to private keys
Configures the store to only try to fetch private keys and nothing
else.
Daan De Meyer [Wed, 6 Nov 2024 17:05:54 +0000 (18:05 +0100)]
bootctl: Validate private key path
Daan De Meyer [Thu, 7 Nov 2024 16:29:44 +0000 (17:29 +0100)]
mkosi: Add pytest to tools
Yu Watanabe [Thu, 7 Nov 2024 19:13:45 +0000 (04:13 +0900)]
Split and rename src/boot (#35068)
Vursc [Thu, 7 Nov 2024 15:13:56 +0000 (15:13 +0000)]
hwdb: fix broken numpad paren keys on Lenovo Thinkbook 16 G6+ 2024
Zbigniew Jędrzejewski-Szmek [Thu, 7 Nov 2024 15:40:53 +0000 (16:40 +0100)]
man: update Fedora links to F41
Zbigniew Jędrzejewski-Szmek [Thu, 7 Nov 2024 15:00:08 +0000 (16:00 +0100)]
NEWS: add specific versions in key codes entry
This should be easier for folks to consume.
Refs:
https://lists.x.org/archives/xorg-announce/2024-October/003543.html
https://lists.x.org/archives/xorg-announce/2024-October/003544.html
Anselm Schueler [Thu, 7 Nov 2024 13:26:31 +0000 (14:26 +0100)]
po: Translated using Weblate (German)
Currently translated at 89.8% (231 of 257 strings)
Co-authored-by: Anselm Schueler <mail@anselmschueler.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/de/
Translation: systemd/main
Zbigniew Jędrzejewski-Szmek [Thu, 7 Nov 2024 14:15:51 +0000 (15:15 +0100)]
github: adjust version number in templates
Most people are probably on stable releases, but we don't want to update the
minor version all the time, so just specify 256.x as a hint to fill in the
full version.
Zbigniew Jędrzejewski-Szmek [Thu, 7 Nov 2024 11:45:28 +0000 (12:45 +0100)]
Rename src/boot/efi to just src/boot
I very much dislike the approach in which we were mixing Linux and UEFI C code
in the same subdirectory. No code was shared between two environments. This
layout was created in
e7dd673d1e0acfe5420599588c559fd85a3a9e8f, with the
justification of "being more consistent with the rest of systemd", but I don't
see how it's supposed to be so.
Originally, when the C code was just a single bootctl.c file, this wasn't so
bad. But over time the userspace code grew quite a bit. With the moves done in
previuos commits, the intermediate subdirectory is now empty except for the
efi/ subdir, and this additional subdirectory level doesn't have a good
justification. The components is called "systemd-boot", not "systemd-efi", and
we can remove one level of indentation.
Zbigniew Jędrzejewski-Szmek [Thu, 7 Nov 2024 11:37:45 +0000 (12:37 +0100)]
Move systemd-sbsign to its own source subdirectory
It's already two files, and I expect that more will come. It's nicer to give
its own subdirectory to maintain consistent structure.
Zbigniew Jędrzejewski-Szmek [Thu, 7 Nov 2024 11:37:45 +0000 (12:37 +0100)]
Move systemd-measure to its own source subdirectory
We have other subdirectories with just a single C file. And I expect
that systemd-measure will only grow over time, adding new functionality.
It's nicer to give its own subdirectory to maintain consistent structure.
Zbigniew Jędrzejewski-Szmek [Thu, 7 Nov 2024 11:28:42 +0000 (12:28 +0100)]
Move bless-boot components to their own source subdirectory
Zbigniew Jędrzejewski-Szmek [Thu, 7 Nov 2024 11:24:40 +0000 (12:24 +0100)]
Move bootctl to its own source subdirectory
It's been split into a bunch of files and deserves its own subdirectory
similarly to systemctl.
Luca Boccassi [Thu, 7 Nov 2024 00:01:01 +0000 (00:01 +0000)]
man: fix typos flagged by Lintian
Yu Watanabe [Thu, 7 Nov 2024 09:50:23 +0000 (18:50 +0900)]
Translations update from Fedora Weblate (#35060)