Luca Boccassi [Sun, 16 Jun 2024 10:16:21 +0000 (11:16 +0100)]
mkosi: enable unprivileged user ns for integration tests
Ubuntu disables them by default in Noble, ship a sysctl to turn them back on
so that tests can use them
(cherry picked from commit
4cfcde024f34b3e5f682364d4e0c6185ef07d467)
Mike Yuan [Sat, 15 Jun 2024 15:27:33 +0000 (17:27 +0200)]
man,units: drop "temporary" from description of systemd-tmpfiles
Historically, systemd-tmpfiles was designed to manager temporary
files, but nowadays it has become a generic tool for managing
all kinds of files. To avoid user confusion, let's remove "temporary"
from the tool's description.
As discussed in #33349
(cherry picked from commit
b5c8cc0a3b8e4e2fea0539d6420a76b524ea5735)
Nick Rosbrook [Fri, 14 Jun 2024 21:31:22 +0000 (17:31 -0400)]
man: add a bit of a warning to systemd-tmpfiles --purge
Mention that by default, /home is managed by tmpfiles.d/home.conf, and
recommend that users run systemd-tmpfiles --dry-run --purge first to
see exactly what will be removed.
(cherry picked from commit
9ebcac3b5125a8b0b11f371731ea167cd4684adc)
Cristian Rodríguez [Thu, 13 Jun 2024 15:59:28 +0000 (11:59 -0400)]
fundamental: declare flex array updated for gcc15 and clang 19
Silly workaround that:
- allowed flexible arrays in unions
- allowed flexible arrays in otherwise empty structs
Is no longer needed since https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=
adb1c8a0f167c3a1f7593d75f5a10eb07a5d741a
(GCC15) or clang 19 https://github.com/llvm/llvm-project/commit/
14ba782a87e16e9e15460a51f50e67e2744c26d9
(cherry picked from commit
3c2f2146f50c75662987541719bedc4aee9df939)
Lennart Poettering [Tue, 4 Jun 2024 09:02:34 +0000 (11:02 +0200)]
analyze: show pcrs also in sha384 bank
SHA384 is pretty much the bank we actually *want* to use, since it's
faster to calculate than SHA256, hence at the very least, start
considering.
(cherry picked from commit
acaca5ab250a51be6ba07768bee80bf0f7b462fa)
Lennart Poettering [Wed, 12 Jun 2024 16:31:56 +0000 (18:31 +0200)]
CODING_STYLE: document "reterr_" return parameters
In some recent PRs (e.g. #32628) I started to systematically name return
parameters that shall only be initialized on failure (because they carry
additional error meta information, such as the line/column number of
parse failures or so). Let's make this official in the coding style.
(cherry picked from commit
7811864b08393eda5ff92145ea2776180d9b28ee)
David Tardon [Wed, 12 Jun 2024 12:35:34 +0000 (14:35 +0200)]
shell-completion: only offer devices for completion
This skips directories and other stuff like /dev/core, /dev/initctl or
/dev/log.
(cherry picked from commit
bde35f4a91663ebb854330f582baeef0f9adcbfb)
Luca Boccassi [Tue, 11 Jun 2024 22:09:30 +0000 (23:09 +0100)]
NEWS: note that new stable releases will be in the main repo
(cherry picked from commit
40d637bace4041f081088673cb230669c1e34faf)
Daan De Meyer [Mon, 3 Jun 2024 10:35:29 +0000 (12:35 +0200)]
repart: Use CRYPT_ACTIVATE_PRIVATE
Let's skip udev device scanning when activating a LUKS volume in
systemd-repart as we don't depend on any udev symlinks and don't
expect anything except repart to access the volume.
Suggested by https://github.com/systemd/systemd/issues/33129#issuecomment-
2143390941.
(cherry picked from commit
726fc7ae696510b04c24810f691d34f5d20529d6)
Frantisek Sumsal [Wed, 12 Jun 2024 10:09:25 +0000 (12:09 +0200)]
test: dump a simple summary at the end of TEST-02-UNITTEST
Let's dump a list of skipped tests and logs from failed tests at the end
of TEST-02-UNITTEST to make debugging fails in CI slightly less painful.
(cherry picked from commit
2ac0e52f29eb5f0040882fc46bcfa369893577f3)
Daan De Meyer [Sun, 2 Jun 2024 14:24:52 +0000 (16:24 +0200)]
repart: Use crypt_reencrypt_run() if available
crypt_reencrypt() is deprecated, so let's look for and prefer
crypt_reencrypt_run() if it is available.
(cherry picked from commit
b99b2941276a74878a23470b36c75b0c21dbdd4a)
Ronan Pigott [Fri, 8 Mar 2024 20:40:08 +0000 (13:40 -0700)]
resolved: permit dnssec rrtype questions when we aren't validating
This check introduced in
91adc4db33f6 is intended to spare us from
encountering broken resolver behavior we don't want to deal with.
However if we aren't validating we more than likely don't know the state
of the upstream resolver's support for dnssec. Let's let clients try
these queries if they want.
This brings the behavior of sd-resolved in-line with previouly stated
change in the meaning of DNSSEC=no, which now means "don't validate"
rather than "don't validate, because the upstream resolver is declared to
be dnssec-unaware".
Fixes:
9c47b334445a ("resolved: enable DNS proxy mode if client wants DNSSEC")
(cherry picked from commit
364c948707afa097f6ad177b61c2b51a86c0089a)
Daan De Meyer [Fri, 17 May 2024 14:20:11 +0000 (16:20 +0200)]
tpm2-setup: Don't fail if we can't access the TPM due to authorization failure
The TPM might be password/pin protected for various reasons even if
there is no SRK yet. Let's handle those cases gracefully instead of
failing the unit as it is enabled by default.
(cherry picked from commit
d6518003f8ebbfb6f85dbf227736ae05b0961199)
q66 [Thu, 6 Jun 2024 11:45:48 +0000 (13:45 +0200)]
strbuf: use GREEDY_REALLOC to grow the buffer
This allows us to reserve a bunch of capacity ahead of time,
improving the performance of hwdb significantly thanks to not
having to reallocate so many times.
Before:
```
$ sudo time valgrind --leak-check=full ./systemd-hwdb update
==113297== Memcheck, a memory error detector
==113297== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.
==113297== Using Valgrind-3.23.0 and LibVEX; rerun with -h for copyright info
==113297== Command: ./systemd-hwdb update
==113297==
==113297==
==113297== HEAP SUMMARY:
==113297== in use at exit: 0 bytes in 0 blocks
==113297== total heap usage: 1,412,640 allocs, 1,412,640 frees, 117,920,009,195 bytes allocated
==113297==
==113297== All heap blocks were freed -- no leaks are possible
==113297==
==113297== For lists of detected and suppressed errors, rerun with: -s
==113297== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
132.44user 21.15system 2:35.61elapsed 98%CPU (0avgtext+0avgdata 228560maxresident)k
0inputs+25296outputs (0major+6886930minor)pagefaults 0swaps
```
After:
```
$ sudo time valgrind --leak-check=full ./systemd-hwdb update
==112572== Memcheck, a memory error detector
==112572== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.
==112572== Using Valgrind-3.23.0 and LibVEX; rerun with -h for copyright info
==112572== Command: ./systemd-hwdb update
==112572==
==112572==
==112572== HEAP SUMMARY:
==112572== in use at exit: 0 bytes in 0 blocks
==112572== total heap usage: 1,320,113 allocs, 1,320,113 frees, 70,614,501 bytes allocated
==112572==
==112572== All heap blocks were freed -- no leaks are possible
==112572==
==112572== For lists of detected and suppressed errors, rerun with: -s
==112572== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
21.94user 0.19system 0:22.23elapsed 99%CPU (0avgtext+0avgdata 229876maxresident)k
0inputs+25264outputs (0major+57275minor)pagefaults 0swaps
```
Co-authored-by: Yu Watanabe <watanabe.yu+github@gmail.com>
(cherry picked from commit
621b10fe2c3203c537996e84c7c89b0ff994ad93)
Daan De Meyer [Mon, 10 Jun 2024 10:59:58 +0000 (12:59 +0200)]
rules: Limit the number of device units generated for serial ttys
As per the suggestion in https://github.com/systemd/systemd/issues/33242.
This reduces the number of /dev/ttySXX device units generated in
mkosi from 32 to 4.
(cherry picked from commit
dc38f9addd04c34d1fd743efc407bdebb3573d05)
Yu Watanabe [Tue, 11 Jun 2024 15:48:56 +0000 (00:48 +0900)]
sd-dhcp-server: clear buffer before receive
I do not think this is necessary, but all other places in
libsystemd-network we clear buffer before receive. Without this,
Coverity warns about use-of-uninitialized-values.
Let's silence Coverity.
Closes CID#
1469721.
(cherry picked from commit
40f9fa0af4c3094d93e833e62f7e301cd453da62)
Lennart Poettering [Wed, 8 May 2024 08:38:11 +0000 (10:38 +0200)]
hostnamed: don't allow hostnamed to exit on idle if varlink connections are still ongoing
And while we are at it, ongoing PK authorizations are also a reason to
block exit on idle.
(cherry picked from commit
ac908152b3b43a49f793d225c075423422cd3e33)
Zbigniew Jędrzejewski-Szmek [Wed, 5 Jun 2024 09:28:21 +0000 (11:28 +0200)]
man/systemd: reorder content a bit
Section "Description" didn't actually say what systemd does. And we had a giant
"Concepts" section that actually described units types and other details about
them. So let's move the basic description of functionality to "Description" and
rename the following section to "Units".
The link to the Original Design Document is moved to "See Also", it is of
historical interest mostly at this point.
The only actual change is that when talking about API filesystems, /dev is also
mentioned. (I think /sys+/proc+/dev are the canonical set and should be always
listed on one breath.)
(cherry picked from commit
f11aaf7dfb295de429b1567282b19caaba036bba)
Luca Boccassi [Tue, 11 Jun 2024 22:04:12 +0000 (23:04 +0100)]
Create CNAME
Luca Boccassi [Tue, 11 Jun 2024 21:42:06 +0000 (22:42 +0100)]
Finalize NEWS and version for v256
Luca Boccassi [Tue, 11 Jun 2024 17:30:29 +0000 (18:30 +0100)]
Update hwdb
ninja -C build update-hwdb
Lennart Poettering [Mon, 10 Jun 2024 16:58:54 +0000 (18:58 +0200)]
tpm2-util: tighten rules on the nvindex handle range we allocate from
Let's follow the conventions set by "Registry of Reserved TPM 2.0 Handles
and Localities" and only allocate nvindex currently not assigned to any
vendor.
For details see:
https://trustedcomputinggroup.org/resource/registry/
Section 2.2
Tobias Jakobi [Thu, 6 Jun 2024 21:17:00 +0000 (23:17 +0200)]
hwdb: add keyboard mappings for the Ayaneo Kun face buttons
See comment in hwdb file for details.
Yu Watanabe [Tue, 11 Jun 2024 17:34:11 +0000 (02:34 +0900)]
Zbigniew Jędrzejewski-Szmek [Thu, 6 Jun 2024 17:12:17 +0000 (19:12 +0200)]
man: document that separate /usr/local/ must not be used for config
Since we document /usr/local/lib/systemd/ and other paths for various things,
add notes that this is not supported if /usr/local is a separate partition. In
systemd.unit, I tried to add the footnote in the table where
/usr/local/lib/systemd/ is listed, but that get's rendered as '[sup]a[/sup]'
with a mangled footnote at the bottom of the table :( .
Also, split paragraphs in one place where the subject changes without any
transition.
Follow-up for
02f35b1c905ac63ba62f94efebf858412e961fc1.
Replaces https://github.com/systemd/systemd/pull/33231.
Zbigniew Jędrzejewski-Szmek [Tue, 11 Jun 2024 10:19:39 +0000 (12:19 +0200)]
bus-unit-util: extend the bus call timeout for UnitFreezer
Follow-up for
1d617b35fef5f7783287965f766c8bb85e932b8e.
Should fix https://github.com/systemd/systemd/issues/33269.
From the logs in the bug:
Jun 10 22:55:37 systemd-logind[909]: The system will suspend now!
Jun 10 22:55:37 ModemManager[996]: <msg> [sleep-monitor-systemd] system is about to suspend
...
Jun 10 22:55:48 systemd-sleep[422408]: Failed to freeze unit 'user.slice': Connection timed out
Jun 10 22:55:48 systemd-sleep[422408]: Performing sleep operation 'suspend'...
The delay is ~11 s, consistent with the patch that set the timeout to 10 s.
Looks like this is not enough. It's the freeze operation that fails, but
thawing might be slow too, so just bump the timeout again.
Daan De Meyer [Thu, 6 Jun 2024 20:59:36 +0000 (22:59 +0200)]
chase: Tighten "." and "./" check
Currently the check also succeeds if the input path starts with a dot, whereas
we only want it to succeed for "." and "./". Tighten the check and add a test.
Yu Watanabe [Tue, 11 Jun 2024 08:41:28 +0000 (17:41 +0900)]
test-network: wait a while for addresses to be dropped
Hopefully fixes the following failure:
```
======================================================================
FAIL: test_ipv6_token_prefixstable (__main__.NetworkdRATests.test_ipv6_token_prefixstable)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/systemd/tests/testdata/test-network/systemd-networkd-tests.py", line 5705, in test_ipv6_token_prefixstable
self.assertNotIn('2002:da8:1:0:b47e:7975:fc7a:7d6e/64', output) # the 1st prefixstable
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: '2002:da8:1:0:b47e:7975:fc7a:7d6e/64' unexpectedly found in
'19: veth99@veth-peer: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000\n
inet6 2002:da8:1:0:b47e:7975:fc7a:7d6e/64 scope global tentative dynamic mngtmpaddr noprefixroute \n
valid_lft 2100sec preferred_lft 1000sec\n
inet6 2002:da8:1:0:da5d:e50a:43fd:5d0f/64 scope global dynamic mngtmpaddr noprefixroute \n
valid_lft 2100sec preferred_lft 1000sec\n
inet6 fe80::1034:56ff:fe78:9abc/64 scope link proto kernel_ll \n
valid_lft forever preferred_lft forever'
----------------------------------------------------------------------
```
Zbigniew Jędrzejewski-Szmek [Tue, 11 Jun 2024 08:41:44 +0000 (10:41 +0200)]
man/systemd-soft-reboot.service: upgrade drop-in to unit file for slice
Follow-up for
d91c7c91bf5de3b12cc2b29dd8b5ad49f29448ef.
Closes https://github.com/systemd/systemd/issues/33260.
Yu Watanabe [Tue, 11 Jun 2024 06:44:20 +0000 (15:44 +0900)]
shell-completion: update bash completion for networkctl
Yu Watanabe [Tue, 11 Jun 2024 06:19:56 +0000 (15:19 +0900)]
shell-completion: update bash-completion for udevadm
- Add missing options.
- Show device nodes when supported.
Closes #33265.
Yu Watanabe [Tue, 11 Jun 2024 06:49:04 +0000 (15:49 +0900)]
Yu Watanabe [Tue, 11 Jun 2024 06:50:12 +0000 (15:50 +0900)]
login: re-used -> reused
Suggested by Fossies.
Luca Boccassi [Mon, 10 Jun 2024 20:57:04 +0000 (21:57 +0100)]
Merge pull request #33264 from bluca/mkosi_dlopen_install
mkosi: install dlopen optional dependencies for debian/ubuntu builds
Luca Boccassi [Mon, 10 Jun 2024 03:06:39 +0000 (04:06 +0100)]
mkosi: install dlopen optional dependencies for debian/ubuntu builds
Luca Boccassi [Mon, 10 Jun 2024 13:17:10 +0000 (14:17 +0100)]
mkosi: update to latest
Mike Gilbert [Fri, 7 Jun 2024 16:28:41 +0000 (12:28 -0400)]
user-util: fix fgetxxent_sane on musl
musl's implementation does not set errno to ENOENT when the end of file
is reached. It returns NULL and leaves errno unchanged.
Luca Boccassi [Sun, 9 Jun 2024 19:14:45 +0000 (20:14 +0100)]
mkosi.prepare: do not install build dependencies with NO_BUILD
Luca Boccassi [Sun, 9 Jun 2024 21:08:41 +0000 (22:08 +0100)]
NEWS: fix typo
Luca Boccassi [Sat, 8 Jun 2024 22:29:56 +0000 (23:29 +0100)]
Merge pull request #33241 from DaanDeMeyer/noble
ci: Switch to Ubuntu 24.04
Daan De Meyer [Fri, 7 Jun 2024 16:54:17 +0000 (18:54 +0200)]
mkosi: Stop using tools tree
Noble has all the tooling we need so let's stop using a tools tree
and just install the dependencies we need on the host system.
Daan De Meyer [Fri, 7 Jun 2024 20:32:08 +0000 (22:32 +0200)]
mkosi: Replace sysusers.d with useradd for test user
sysusers.d is not intended for regular users, so let's use useradd
instead.
Daan De Meyer [Fri, 7 Jun 2024 08:55:53 +0000 (10:55 +0200)]
ci: Switch to Ubuntu 24.04
Daan De Meyer [Fri, 7 Jun 2024 16:50:54 +0000 (18:50 +0200)]
mkosi: Update to latest
Daan De Meyer [Fri, 7 Jun 2024 15:21:48 +0000 (17:21 +0200)]
presets: Don't enable systemd-homed-firstboot.service by default
Enabling this service by default means every CI image without a
regular user now gets stuck on first boot due to the password prompt
from systemd-homed-firstboot.service. Let's not enable the service
by default but instead require users to enable it explicitly if they
want its behavior.
Fixes #33249
Daan De Meyer [Fri, 7 Jun 2024 13:10:58 +0000 (15:10 +0200)]
dev-setup: Follow /dev/console symlinks when locking /dev/console
systemd-nspawn sets up /dev/console as a symlink to a pty, so let's
make sure we follow the symlink when trying to lock /dev/console so
we don't fail with ELOOP.
Luca Boccassi [Thu, 6 Jun 2024 21:10:23 +0000 (22:10 +0100)]
man: note that templated surviving units need a drop-in for their slice
As reported on the mailing list, this is non-obvious, so document it.
https://lists.freedesktop.org/archives/systemd-devel/2024-June/050351.html
Luca Boccassi [Fri, 7 Jun 2024 10:18:26 +0000 (11:18 +0100)]
Merge pull request #33237 from bluca/dlopen_deps
mkosi: enable noble-backports for ubuntu and update debian packaging commit
Luca Boccassi [Thu, 6 Jun 2024 22:01:10 +0000 (23:01 +0100)]
mkosi: update debian packaging commit id
Luca Boccassi [Thu, 6 Jun 2024 22:00:44 +0000 (23:00 +0100)]
mkosi: enable noble-backports for ubuntu
Required to get the new dh-dlopenlibdeps package
Luca Boccassi [Thu, 6 Jun 2024 19:39:50 +0000 (20:39 +0100)]
Update version and finalize NEWS for 256~rc4
Zbigniew Jędrzejewski-Szmek [Thu, 6 Jun 2024 11:30:09 +0000 (13:30 +0200)]
run: do not pass the pty slave fd to transient service in a machine
Follow-up for
28459ba1f4df824d5ef7f7d1a9acb6953ea24045
The pty path returned by OpenMachinePTY() cannot be opened from outside
the machine, hence let's use the plain Standard{Input,Output,Error}=tty
in such a case. This means if --machine= is specified, #32916 would occur.
A comprehensive fix requires a new dbus method in machined, which shall
be material for v257.
See also: https://github.com/systemd/systemd/pull/33216#discussion_r1628020429
Replaces #33216
Co-authored-by: Mike Yuan <me@yhndnzj.com>
Luca Boccassi [Thu, 6 Jun 2024 19:37:11 +0000 (20:37 +0100)]
Merge pull request #33232 from bluca/chores
Chores for RC4
Daan De Meyer [Thu, 6 Jun 2024 15:29:51 +0000 (17:29 +0200)]
mkosi: Stop skipping pkcs11 test on opensuse
A fix was made to the softhsm package so the test now passes.
Luca Boccassi [Thu, 6 Jun 2024 16:57:47 +0000 (17:57 +0100)]
NEWS: update contributors
Luca Boccassi [Thu, 6 Jun 2024 16:56:12 +0000 (17:56 +0100)]
Update syscalls tables
ninja -C build update-syscall-tables update-syscall-header
Luca Boccassi [Thu, 6 Jun 2024 16:54:03 +0000 (17:54 +0100)]
Update hwdb
ninja -C build update-hwdb
Zbigniew Jędrzejewski-Szmek [Thu, 6 Jun 2024 16:35:46 +0000 (18:35 +0200)]
Revert "network: add "mac" to alternatives name policy by default" (#33227)
This reverts commit
0f5a529217f1327f020ab54deed09e6fae1f1fef.
As discussed in https://github.com/systemd/systemd/issues/33104,
that patch caused problems in Debian which has a udev drop-in with
[Match]
Path=*-usb-*
[Link]
NamePolicy=mac
The rename fails:
eth0: Policy *mac* yields "enx00*".
eth0: /usr/lib/udev/rules.d/80-net-setup-link.rules:11 NAME 'enx00*'
eth0: /usr/lib/udev/rules.d/99-systemd.rules:69 RUN '/usr/lib/systemd/systemd-sysctl --prefix=/net/ipv4/conf/$name --prefix=/net/ipv4/neigh/$
eth0: sd-device: Created database file '/run/udev/data/n9' for '/devices/pci0000:00/0000:00:1c.4/0000:02:00.0/0000:03:01.0/0000:05:00.0/0000:
eth0: Failed to rename network interface 9 from 'eth0' to 'enx00*': File exists
eth0: sd-device: Created database file '/run/udev/data/n9' for '/devices/pci0000:00/0000:00:1c.4/0000:02:00.0/0000:03:01.0/0000:05:00.0/0000:
eth0: Failed to process device, ignoring: File exists
Two network interfaces have the same MAC and it's not marked NET_ADDR_STOLEN.
In this case the conflict is very visible because it causes the rename to fail,
but it would also occur in other cases, for alternative names.
A patch has been submitted for r8152 to properly set NET_ADDR_STOLEN:
https://lore.kernel.org/linux-usb/
20240605153340.25694-1-gmazyland@gmail.com/T/#u
Let's revert this now to avoid a regression. We can try again after the kernel
issue is resolved.
Closes https://github.com/systemd/systemd/issues/33104.
Daan De Meyer [Thu, 6 Jun 2024 16:01:00 +0000 (18:01 +0200)]
Merge pull request #33218 from DaanDeMeyer/initrd-modules
mkosi: Include fewer modules in the initramfs
Luca Boccassi [Thu, 6 Jun 2024 15:34:20 +0000 (16:34 +0100)]
Merge pull request #33189 from bluca/fscrypt_flush
homed: flush fscrypt key on lock/deactivate
Daan De Meyer [Wed, 5 Jun 2024 16:22:22 +0000 (18:22 +0200)]
mkosi: Include fewer modules in the initramfs
Let's only use mkosi's default list of modules instead of all of
them.
Daan De Meyer [Wed, 5 Jun 2024 16:57:31 +0000 (18:57 +0200)]
mkosi: Update to latest
Luca Boccassi [Tue, 4 Jun 2024 02:17:42 +0000 (03:17 +0100)]
homed: flush fscrypt key on lock/deactivate
The fscrypt key is added to the user keyring, and needs to be flushed out too.
Fixes https://github.com/systemd/systemd/issues/33138
Luca Boccassi [Wed, 5 Jun 2024 23:14:37 +0000 (00:14 +0100)]
mkosi: do a sparse checkout of debian/ubuntu packaging repo
The repository on Salsa includes the full upstream sources, which means
they are duplicated, taking extra space and showing duplicated grep results.
But we only need the debian/ subfolder, so do a sparse clone and checkout.
Luca Boccassi [Tue, 4 Jun 2024 12:23:30 +0000 (13:23 +0100)]
util: add keyring_describe helper and move to basic
So that it can be used from libsystemd. No external dependencies.
Yu Watanabe [Mon, 3 Jun 2024 20:29:59 +0000 (05:29 +0900)]
network/ndisc: use router lifetime as one for redirect route
Previously, we did not set lifetime for redirect route, and redirect
routes were removed only when received a RA from the target address.
Thus, routes that redirect on-link addresses were never removed.
RFCs mention nothing about the lifetime of redirection. But the previous
implementation does not pass the IPv6 Core Conformance Tests.
This makes
- remember all received RAs and manage them by the sender address
(previously, remembered only one with the highest preference),
- then use the router lifetime as one for redirect route,
- remove redirect route also when the router corresponds to the sender
address is dropped (previously, considered only target address).
Note, even if we recieve a new RA, we do not update existing redirect
routes. The lifetime of the redirect route is updated only when a new
Redirect message is received.
Closes #32527.
Jörg Behrmann [Wed, 5 Jun 2024 15:08:57 +0000 (17:08 +0200)]
man: document /usr/local/lib in search paths
Luca Boccassi [Thu, 6 Jun 2024 09:22:15 +0000 (10:22 +0100)]
Merge pull request #33198 from keszybz/update-distro-hash
Add helper script to update distro packaging hashes
Zbigniew Jędrzejewski-Szmek [Thu, 6 Jun 2024 08:01:46 +0000 (10:01 +0200)]
mkosi: update fedora commit reference
*
1f94b56cee Partially backport PR #33016 to fix crashes in KDE 6.3.0
Zbigniew Jędrzejewski-Szmek [Thu, 6 Jun 2024 08:01:43 +0000 (10:01 +0200)]
mkosi: update debian commit reference
*
5b9607385d debian/tests/storage: without scsi_debug, skip test
*
8a195a6327 debian/extra: use a dropin to configure Nice=-1 on systemd-journald.service
*
5436d49288 debian/extra: use a drop-in resolved.conf to configure Cache=no-negative
*
596a99d2d3 debian/extra: set ManagedOOMSwap=auto on -.slice
*
07ba81b14d LimitCORE: restore default hard limit to infinity
*
df3a9a91e8 Restart managers on libc-upgrade dpkg trigger
Zbigniew Jędrzejewski-Szmek [Tue, 4 Jun 2024 13:25:03 +0000 (15:25 +0200)]
mkosi: set -o nounset for scripts
Those scripts are written with the expectation that all input variables are set
and will not behave correctly if something is ommitted. In particular, the
non-chrooted scripts (mkosi.clean, mkosi.sync) might wreak havoc if called
without the full environment.
Zbigniew Jędrzejewski-Szmek [Tue, 4 Jun 2024 13:10:15 +0000 (15:10 +0200)]
tools/update-distro-hash: add a helper script to sync submodule
hanjinpeng [Wed, 5 Jun 2024 17:25:28 +0000 (01:25 +0800)]
po: update and correction translation (Chinese (Traditional) (zh_TW))
Daan De Meyer [Wed, 5 Jun 2024 17:01:27 +0000 (19:01 +0200)]
Revert "mkosi: Don't install wireguard-tools on Debian"
wireguard-tools was added back to debian testing.
This reverts commit
8c335463d9fe6c2e2f3d9584d7c26871800065e2.
Daan De Meyer [Wed, 5 Jun 2024 15:51:57 +0000 (17:51 +0200)]
mkosi: Disable scratch device by default
We include scratch space in the rootfs image itself so we don't have
need for the scratch device so let's disable it by default.
Luca Boccassi [Wed, 5 Jun 2024 16:41:55 +0000 (17:41 +0100)]
Merge pull request #33197 from poettering/cryptsetup-fallback-tweak
cryptsetup: unset an unlock path on each unlock retry
Daan De Meyer [Mon, 3 Jun 2024 08:40:35 +0000 (10:40 +0200)]
core: Fix CPUQuotaPerSecUSec unit file serialization
CPUQuota= can deal with float percentages perfectly fine these days
(up to two places after the dot), so let's take that into account
when serializing the value to the transient unit file so we don't lose
precision when specifying e.g. "CPUQuota=0.5%".
Kamil Szczęk [Wed, 5 Jun 2024 09:21:23 +0000 (11:21 +0200)]
json: use secure un{base64,hex}mem for sensitive variants
While tracing a LUKS code path in homework, I've noticed that we don't
erase buffers when doing unbase64 or unhex on JSON variants, even if the
variant is marked as sensitive.
Yu Watanabe [Wed, 5 Jun 2024 08:59:28 +0000 (17:59 +0900)]
network/route: fix condition in route_can_update()
An existing route with lifetime can be always updated with a new
finite lifetime. As the comment in the code says, we cannot disable the
lifetime. So, the condition must be '==', rather than '!='.
Fixes #33210.
hanjinpeng [Wed, 5 Jun 2024 07:44:40 +0000 (09:44 +0200)]
po: Translated using Weblate (Chinese (Simplified) (zh_CN))
Currently translated at 100.0% (233 of 233 strings)
Co-authored-by: hanjinpeng <hanjinpeng127@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/zh_CN/
Translation: systemd/main
Luca Boccassi [Tue, 4 Jun 2024 22:06:27 +0000 (23:06 +0100)]
cryptsetup: check keyring cache passphrase at least once
The first try will be on the TPM2, so in practice this was always skipped
as it happens only on the first try. Use a different bool to track this.
Lennart Poettering [Tue, 4 Jun 2024 11:53:55 +0000 (13:53 +0200)]
cryptsetup: unset an unlock path on each unlock retry
If we couldn't unlock a device with the chosen unlock path, let's not
fall back to the lowest one right away, but only flush out one path, and
try the next.
Fixes: #30425
Follow-up-for: #30185
Alternative-to: #33183
David Seifert [Tue, 4 Jun 2024 15:15:14 +0000 (17:15 +0200)]
libpasswdqc: add missing `#include "dlfcn-util.h"`
Luca Boccassi [Tue, 4 Jun 2024 15:37:53 +0000 (16:37 +0100)]
Merge pull request #33199 from DaanDeMeyer/optimization
mkosi: Build with -O0 by default
Edson Juliano Drosdeck [Tue, 4 Jun 2024 11:35:14 +0000 (08:35 -0300)]
Fix key toggle touchpad and programmable buttom for Positivo N14AP7
Daan De Meyer [Tue, 4 Jun 2024 14:03:45 +0000 (16:03 +0200)]
mkosi: Stop sourcing /etc/makepkg.conf
We don't need this anymore since we now just do delayed evaluation
of $CFLAGS in /etc/makepkg.conf and it imports $CFLAGS into the
script environment which messes everything up.
Daan De Meyer [Tue, 4 Jun 2024 13:53:06 +0000 (15:53 +0200)]
mkosi: Build with -O0 by default
This was accidentally removed in https://github.com/systemd/systemd/pull/33193
Luca Boccassi [Tue, 4 Jun 2024 12:38:00 +0000 (13:38 +0100)]
Merge pull request #33193 from DaanDeMeyer/fortify
mkosi: Disable FORTIFY_SOURCE when building without optimizations or with sanitizers
Luca Boccassi [Tue, 4 Jun 2024 10:32:27 +0000 (11:32 +0100)]
Merge pull request #33192 from DaanDeMeyer/packaging
mkosi: Various opensuse improvements
Daan De Meyer [Tue, 4 Jun 2024 10:27:29 +0000 (12:27 +0200)]
mkosi: Build Arch Linux image with -D_FORTIFY_SOURCE=3
_FORTIFY_SOURCE requires optimizations to be enabled so we set -O2
as well.
Daan De Meyer [Sat, 1 Jun 2024 10:54:49 +0000 (12:54 +0200)]
mkosi: Drop $OPTIMIZATION variable
Let's instead just use $CFLAGS to override the optimization level.
Daan De Meyer [Tue, 4 Jun 2024 09:04:05 +0000 (11:04 +0200)]
mkosi: Use __meson_verbose in opensuse build script
OpenSUSE Tumbleweed now ships meson 1.4.0 which ships the new
__meson_verbose macro.
Daan De Meyer [Tue, 4 Jun 2024 09:00:53 +0000 (11:00 +0200)]
mkosi: Use meson_extra_configure_options for opensuse
This is now available so let's use it.
Daan De Meyer [Tue, 4 Jun 2024 09:00:38 +0000 (11:00 +0200)]
mkosi: Update opensuse commit to latest
Luna Jernberg [Tue, 4 Jun 2024 05:35:58 +0000 (07:35 +0200)]
po: Translated using Weblate (Swedish)
Currently translated at 100.0% (233 of 233 strings)
Co-authored-by: Luna Jernberg <bittin@reimu.nl>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/sv/
Translation: systemd/main
Pierre GRASSER [Tue, 4 Jun 2024 05:35:58 +0000 (07:35 +0200)]
po: Translated using Weblate (French)
Currently translated at 100.0% (233 of 233 strings)
Co-authored-by: Pierre GRASSER <pierre.grasser@proton.me>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/fr/
Translation: systemd/main
Luca Boccassi [Mon, 3 Jun 2024 21:48:11 +0000 (22:48 +0100)]
Merge pull request #33173 from yuwata/test-network
test-network: several cleanups
Yu Watanabe [Mon, 3 Jun 2024 09:04:55 +0000 (18:04 +0900)]
test-network: introduce a .network file to protect existing interfaces
Yu Watanabe [Mon, 3 Jun 2024 08:49:26 +0000 (17:49 +0900)]
test-network: show PID and Invocation ID of networkd
Then, we can easily find relevant journal entry on failure.
This is especially useful when the test is running with --no-journal.
Yu Watanabe [Mon, 3 Jun 2024 08:43:43 +0000 (17:43 +0900)]
test-network: flush stream buffer and journals before/after running test