Commit Graph
83068 Commits
Author SHA1 Message Date
Yu Watanabe 1edc81aa13 TEST-10-MOUNT: make cleanup function run on error 2025-07-25 04:54:42 +09:00
Yu Watanabe 8002f0cf27 TEST-60-MOUNT-RATELIMIT: use reload to make new config applied 2025-07-25 04:54:42 +09:00
Yu Watanabe 62c3f42deb test: move testcase_dependencies() to TEST-10-MOUNT
TEST-60-MOUNT_RATELIMIT is run on nspawn by default, and currently run
on vm only on arch mkosi. Let's move the test case to new TEST-10-MOUNT,
which always run on vm.
2025-07-25 04:54:42 +09:00
Yu Watanabe 1227795362 integration-test: mention TEST_SAVE_JOURNAL in README 2025-07-25 04:54:42 +09:00
Yu Watanabe 8269396078 integration-test: show journalctl command for showing saved journal when TEST_SAVE_JOURNAL=1 2025-07-25 04:54:38 +09:00
Matteo Croce afef98ecf8 NEWS: document BPF delegate options
Document the new BPF delegate options, AKA BPF tokens.
2025-07-25 03:06:36 +09:00
joo es 7ca0182fba po: Translated using Weblate (Arabic)
Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: joo es <jonnyse@users.noreply.translate.fedoraproject.org>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/ar/
Translation: systemd/main
2025-07-25 01:28:35 +09:00
Temuri Doghonadze 7f72277877 po: Translated using Weblate (Georgian)
Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: Temuri Doghonadze <temuri.doghonadze@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/ka/
Translation: systemd/main
2025-07-25 01:28:35 +09:00
Américo Monteiro 01bb233195 po: Translated using Weblate (Portuguese)
Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: Américo Monteiro <a_monteiro@gmx.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pt/
Translation: systemd/main
2025-07-25 01:28:35 +09:00
Piotr Drąg 25c3bbec93 po: Translated using Weblate (Polish)
Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: Piotr Drąg <piotrdrag@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pl/
Translation: systemd/main
2025-07-25 01:28:35 +09:00
Léane GRASSER 2f186c9dcc po: Translated using Weblate (French)
Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: Léane GRASSER <leane.grasser@proton.me>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/fr/
Translation: systemd/main
2025-07-25 01:28:35 +09:00
Luca Boccassi c1fb58cc48 vmspawn: add machine types for m68k/sparc64 and default to 'none' if unknown
Qemu has a 'none' machine that can be used for very basic booting
on weird arches, just default to that unless otherwise specified
2025-07-24 17:11:14 +01:00
Luca Boccassi 50095c51fc tpm2-clear: build only if bootloader/openssl are enabled
The tpm2-clear units are only installed if tpm/bootloader/ssl are
enabled. The tpm2-setup binary/units are built and installed only
if tpm/bootloader/ssl are enabled.
Do the same for the tpm2-clear binary to keep it consistent.
2025-07-24 17:10:17 +01:00
Yaping Li 603916702d test-memstream-util.c: Migrate to new assertion macros
We recently added a new set of assertion macros such as ASSERT_GE, ASSERT_OK, ASSERT_EQ, ... which show not
only the expression that failed but also the values of the arguments of the expression. Let's use them.
2025-07-24 20:45:35 +09:00
Luca Boccassi 486fa5ece6 LICENSES/README: update file paths after moves
Follow-up for 1a60b97524
2025-07-24 20:44:19 +09:00
Luca Boccassi 28eec22f2f Fix typos found by Lintian 2025-07-24 11:38:47 +02:00
Zbigniew Jędrzejewski-Szmek 91085f308f NEWS: add description for DHCPv6 SIP feature
Also move the description of IPv4DuplicateAddressDetectionTimeoutSec=
to the section about systemd-networkd. The change of the timeout doesn't
have to be described as "incompatible". It's more of a bugfix, the previous
timeout was just strangely large and hopefully nobody relied on this detail
of implementation.

Also, reword to say that MPLSRouting= just controls enablement, nothing more.
2025-07-24 09:01:12 +02:00
Zbigniew Jędrzejewski-Szmek 806efaf223 NEWS: some typos and whitespace fixes 2025-07-24 09:00:57 +02:00
Yaping Li 741444797f test-unit-serialize.c: Migrate to new assertion macros
We recently added a new set of assertion macros such as ASSERT_GE, ASSERT_OK, ASSERT_EQ, ... which show not
only the expression that failed but also the values of the arguments of the expression. Let's use them.
2025-07-24 07:27:58 +09:00
Cosima Neidahl f950919251 meson: Detect ELF ABI version for bpf build on ppc64 (#38307)
On 64-bit POWER, there are multiple versions of the ELF ABI in use.

- little-endian powerpc64 is ELFv2
- big-endian powerpc64 is
  - ELFv2 when using musl
  - either ELFv1 or ELFv2 when using glibc

Previously, the BPF build was hard-coding `-D_CALL_ELF=2`, which is
ELFv2. This makes the build fail on ELFv1, similarly to the original
issue that necessitated the addition of this flag on powerpc64le.

To fix this:

1. Use ELFv1 as the default (when `_CALL_ELF` is not defined, this is
the assumption that should be made about the ABI version).
2. Check if the C compiler has `_CALL_ELF` defined, and if it does,
override the default with that.
That's technically not the *correct* compiler in this situation, but I'm
unsure how to get a compiler object for the BPF one from Meson to do the
`*_define('_CALL_ELF')` checks with, and they *should* both be targeting
the same ABI version anyway.
3. Add the ABI version to the `_CALL_ELF` definition for the BPF
compiler flags.

This makes a BPF-enabled build succeed on powerpc64 w/ ELFv1 glibc.
2025-07-24 05:42:13 +09:00
Yu Watanabe 349d1240a0 po: update Japanese translations 2025-07-24 03:02:57 +09:00
Weblate a4fdb84205 po: Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/
Translation: systemd/main
2025-07-24 03:00:42 +09:00
Yu Watanabe 2a860e8a8d Revert "po: update Japanese translations"
This reverts commit 59af98ab20.

The commit conflicts with Weblate's one. Tentatively revert the commit to
resolve the conflict.
2025-07-24 02:58:07 +09:00
Yu Watanabe 59af98ab20 po: update Japanese translations 2025-07-24 02:29:57 +09:00
Luca Boccassi 4c7ec40e4e Chores for RC1 (#38300) 2025-07-23 17:54:25 +01:00
luc-salles 53b1d3fd48 Fix Positivo K116J search key and www shortcut 2025-07-23 17:53:33 +01:00
Zbigniew Jędrzejewski-Szmek 5d9d774c8a network: several follow-ups for recent changes (#38298) 2025-07-23 17:16:17 +02:00
Luca Boccassi dc5ea654fe meson: update version numbers for v258~rc1 2025-07-23 15:39:21 +01:00
Luca Boccassi f98eafbd68 po: update systemd-pot
ninja -C build systemd-pot
2025-07-23 15:39:21 +01:00
Luca Boccassi 53a3d148d7 hwdb: update
ninja -C build update-hwdb
2025-07-23 14:32:21 +01:00
Luca Boccassi 59bd5e7436 NEWS: add time/place 2025-07-23 14:32:21 +01:00
Luca Boccassi 2c771f8033 NEWS: update contributors list 2025-07-23 14:25:25 +01:00
Yu Watanabe 5bd37b352c network/state-file: coding style fixlet
Follow-up for 168ad243cc.
2025-07-23 22:24:19 +09:00
Yu Watanabe 5489a9c409 network/state-file: ignore any errors in sd_dhcp6_lease_get_dnr()
Follow-up for 168ad243cc.

For consistency with other places.
2025-07-23 22:24:19 +09:00
Yu Watanabe 2924a6c927 network/json: ignore -ENODATA and any failures from sd_dhcp_lease_get_sip()
Addresses https://github.com/systemd/systemd/pull/38269#discussion_r2225375899.

Follow-up for 238c427aa9.
2025-07-23 22:24:19 +09:00
Luca Boccassi 7199811942 NEWS: fix wrong path for sd-stub global extensions directory 2025-07-23 14:22:08 +01:00
Zbigniew Jędrzejewski-Szmek 1fe7ebe8c2 stub: check if security override is available before using it (#38295)
Avoids fallback that requires it if it is not available. Can be dropped
once support for shim < 16 is no longer needed

Follow-up for 23d56ae890
2025-07-23 15:16:01 +02:00
Zbigniew Jędrzejewski-Szmek f1d3241346 NEWS: add new entries
The section for systemd-vmspawn is grouped with systemd-nspawn
and systemd-machined, and systemd-analyze gets a new section of
its own.
2025-07-23 15:15:20 +02:00
Zbigniew Jędrzejewski-Szmek e62ff1856c NEWS: adjust style
For meson options, say '-Dfoo=' to make them visually different.
Adjust grammar and punctuation in various places.
Break very long lines where feasible.
2025-07-23 15:15:20 +02:00
Yu Watanabe fa32f4cd75 meson: crypt.h must always exist
We require at least crypt_r() exists, and it is provided since glibc-2.0
(and dropped in glibc-2.39) or by libxcrypt, and the function is
provided in crypt.h regardless it is provided by glibc or libxcrypt.
Hence, we cannot fallback to unistd.h.

This makes the condition about crypt.h more strict, and stop compilation
earlier when crypt.h does not exist.
2025-07-23 22:13:20 +09:00
Mike Yuan a6da6c9050 networkctl-config-file: validate args are valid filenames
... as opposed to full paths

Fixes #38288
2025-07-23 22:11:42 +09:00
Luca Boccassi 5115710528 stub: check if security override is available before using it
Avoids fallback that requires it if it is not available. Can
be dropped once support for shim < 16 is no longer needed

Follow-up for 23d56ae890
2025-07-23 10:29:19 +01:00
Zbigniew Jędrzejewski-Szmek dcccbe049c tree-wide: several fixlets for log message and comment (#38263) 2025-07-23 10:17:33 +02:00
Zbigniew Jędrzejewski-Szmek 15b0b6cd71 getty-generator: fine-grained execution control (#38258)
Closes #37928.
2025-07-23 09:58:27 +02:00
Luca Boccassi 23d56ae890 stub: restore compatibility for shim (< 16.0) -> UKI case
It is possible to boot directly a UKI from shim, and Fedora Cloud Base UKI
does exactly this.
This used to work fine until https://github.com/systemd/systemd/pull/37372
which broke compatibility when shim < 16.0 (no loader protocol override) is
used. Shim 15.8 is still in use in several distributions, and will be for
a long time.

Restore a part of the previous implementation, and if running with secure
boot enabled, and with shim but < 16.0, apply a security override.

Follow-up for cab9c7b5a4

Fixes https://github.com/systemd/systemd/issues/38104
2025-07-23 09:54:09 +02:00
Yaping Li 0ccc31d964 test-user-record.c: Migrate to new assertion MACROs
We recently added a new set of assertion macros such as ASSERT_GE, ASSERT_OK, ASSERT_EQ, ... which show not
only the expression that failed but also the values of the arguments of the expression. Let's use them.
2025-07-23 09:36:46 +09:00
Yaping Li e89f865157 test-web-util.c: Use ASSERT_FALSE() instead of ASSERT_TRUE() where appropriate 2025-07-23 09:36:00 +09:00
James Hilliard 28575ac014 meson: prepend sys_root to bpf isystem
These sort of absolute include paths are generally unsafe when cross compiling.
2025-07-23 08:49:02 +09:00
Yu Watanabe 36c3862789 TEST-81-GENERATORS: add test cases for systemd.getty_auto=console and friends 2025-07-23 08:35:51 +09:00
Allison KarlitskayaandYu Watanabe 3a883e89bc getty-generator: add support for fine-grained control of execution modes
This makes the systemd.getty_auto= kernel command line option and the
$SYSTEMD_GETTY_AUTO environment variable takes the list of classes of
services: credential, container, console, builtin.

This also add getty.auto credential that can take the same value as the
kernel command line option.

Closes #37928.

Co-authored-by: Yu Watanabe <watanabe.yu+github@gmail.com>
2025-07-23 08:35:51 +09:00