]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
11 months agoci: Implement coverage on top of mkosi 35407/head
Daan De Meyer [Tue, 4 Jun 2024 08:54:22 +0000 (10:54 +0200)] 
ci: Implement coverage on top of mkosi

11 months agotest-execute: Make /coverage writable in DynamicUser= tests
Daan De Meyer [Tue, 3 Dec 2024 13:45:43 +0000 (14:45 +0100)] 
test-execute: Make /coverage writable in DynamicUser= tests

DynamicUser=yes implies ProtectSystem=yes, so let's explicitly make
sure the coverage directory is writable in these tests.

11 months agotest-execute: Don't make rootfs read-only if we're collecting coverage
Daan De Meyer [Tue, 3 Dec 2024 14:08:11 +0000 (15:08 +0100)] 
test-execute: Don't make rootfs read-only if we're collecting coverage

The test needs to be able to write coverage data to the rootfs so don't
make / read-only.

11 months agotest: Skip TEST-38-FREEZER if coverage is enabled
Daan De Meyer [Mon, 2 Dec 2024 17:05:26 +0000 (18:05 +0100)] 
test: Skip TEST-38-FREEZER if coverage is enabled

The test freezes regularly when run with coverage so let's skip it
if coverage is enabled.

11 months agocreds-util: Improve one log message
Daan De Meyer [Sat, 30 Nov 2024 15:32:38 +0000 (16:32 +0100)] 
creds-util: Improve one log message

11 months agotest-creds: Migrate to new assertion macros
Daan De Meyer [Sat, 30 Nov 2024 12:19:39 +0000 (13:19 +0100)] 
test-creds: Migrate to new assertion macros

11 months agomkosi: update to latest
Daan De Meyer [Fri, 29 Nov 2024 11:21:52 +0000 (12:21 +0100)] 
mkosi: update to latest

11 months agomkosi: extend DefaultTimeoutStopSec= when running on sanitizers (#35420)
Luca Boccassi [Fri, 29 Nov 2024 21:48:29 +0000 (21:48 +0000)] 
mkosi: extend DefaultTimeoutStopSec= when running on sanitizers (#35420)

Hopefully fixes #35335.

11 months agomkosi: move setting for journald to mkosi.extra 35420/head
Yu Watanabe [Fri, 29 Nov 2024 19:31:45 +0000 (04:31 +0900)] 
mkosi: move setting for journald to mkosi.extra

11 months agomkosi: extend DefaultTimeoutStopSec= when running on sanitizers
Yu Watanabe [Fri, 29 Nov 2024 19:06:24 +0000 (04:06 +0900)] 
mkosi: extend DefaultTimeoutStopSec= when running on sanitizers

Hopefully fixes #35335.

11 months agomkosi: install correct package for mypy
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.

11 months agoAnother tweak for the preparation of removal of sysvinit compat (#35414)
Luca Boccassi [Fri, 29 Nov 2024 15:34:34 +0000 (15:34 +0000)] 
Another tweak for the preparation of removal of sysvinit compat (#35414)

11 months agomeson: install README.logs independently of HAVE_SYSV_COMPAT 35414/head
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.

11 months agoRevert "link README.logs from tmpfiles.d/legacy.conf only if available"
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.

11 months agopo: Translated using Weblate (Georgian)
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

11 months agopo: Translated using Weblate (Ukrainian)
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

11 months agopo: Translated using Weblate (Turkish)
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

11 months agopo: Translated using Weblate (Swedish)
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

11 months agopo: Translated using Weblate (Korean)
김인수 [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

11 months agopo: Translated using Weblate (Indonesian)
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

11 months agopo: Translated using Weblate (French)
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

11 months agomkosi: Simplify sanitizer setup
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.

11 months agoTypo fix in man/systemd.resource-control
SuhailAhmedVelorum [Thu, 28 Nov 2024 16:46:32 +0000 (22:16 +0530)] 
Typo fix in man/systemd.resource-control

11 months agoexecute: free syscall_log hashmap when done
David Tardon [Thu, 28 Nov 2024 12:33:55 +0000 (13:33 +0100)] 
execute: free syscall_log hashmap when done

Fixes #35394

11 months agocatalog: update Polish translation
Piotr Drąg [Thu, 28 Nov 2024 11:22:32 +0000 (12:22 +0100)] 
catalog: update Polish translation

Includes changes up to e1f9d3c84b66d1b86adaae4c7aebf89514685d51

11 months agopo: Translated using Weblate (Polish)
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

11 months agosysupdate: add missing full stop in the polkit message (#35391)
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.

11 months agopo: update translations 35391/head
Yu Watanabe [Thu, 28 Nov 2024 09:17:50 +0000 (18:17 +0900)] 
po: update translations

11 months agopo: update Japanese translation
Yu Watanabe [Thu, 28 Nov 2024 09:17:33 +0000 (18:17 +0900)] 
po: update Japanese translation

11 months agosysupdate: add missing full stop to the polkit message
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.

11 months agomeson: update version v257-rc3
Luca Boccassi [Wed, 27 Nov 2024 21:11:45 +0000 (21:11 +0000)] 
meson: update version

11 months agoNEWS: update date
Luca Boccassi [Wed, 27 Nov 2024 21:11:33 +0000 (21:11 +0000)] 
NEWS: update date

11 months agoTEST-67-INTEGRITY: several fixes (#35366)
Luca Boccassi [Wed, 27 Nov 2024 21:08:18 +0000 (21:08 +0000)] 
TEST-67-INTEGRITY: several fixes (#35366)

Fixes #35363.

11 months agoChores for RC3 (#35383)
Luca Boccassi [Wed, 27 Nov 2024 20:58:04 +0000 (20:58 +0000)] 
Chores for RC3 (#35383)

11 months agonsresourced: log about correct errno (#35386)
Luca Boccassi [Wed, 27 Nov 2024 19:26:41 +0000 (19:26 +0000)] 
nsresourced: log about correct errno (#35386)

Split out from #35242

11 months agonetwork/queue: do not increase reference counter when remove request is not queued
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.

11 months agonsresourced: log about correct errno in userns_destroy_cgroup() 35386/head
Mike Yuan [Wed, 27 Nov 2024 17:28:12 +0000 (18:28 +0100)] 
nsresourced: log about correct errno in userns_destroy_cgroup()

11 months agocgroup-util: use RET_NERRNO where appropriate
Mike Yuan [Wed, 27 Nov 2024 17:37:46 +0000 (18:37 +0100)] 
cgroup-util: use RET_NERRNO where appropriate

11 months agoTEST-67-INTEGRITY: blkid should not provide the underlying loopback block device 35366/head
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.

11 months agoTEST-67-INTEGRITY: modernize test code
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.

11 months agonspawn: make sure --private-users-ownership=no and =off work the same way
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.

11 months agosysext: coding style fixes & fix a memory leak
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

11 months agopo: update translations 35383/head
Luca Boccassi [Wed, 27 Nov 2024 15:14:18 +0000 (15:14 +0000)] 
po: update translations

ninja -C build systemd-update-po

11 months agohwdb: update
Luca Boccassi [Wed, 27 Nov 2024 14:51:03 +0000 (14:51 +0000)] 
hwdb: update

ninja -C build update-hwdb

11 months agoNEWS: update contributors list
Luca Boccassi [Wed, 27 Nov 2024 14:49:45 +0000 (14:49 +0000)] 
NEWS: update contributors list

11 months agoMinor follow-ups for recent PRs (#35381)
Yu Watanabe [Wed, 27 Nov 2024 15:16:29 +0000 (00:16 +0900)] 
Minor follow-ups for recent PRs (#35381)

11 months agoservice: don't second guess invocation mode again
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.

11 months agonspawn: improve error message when we cannot look into a container tree due to perms
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

11 months agotests: fix access mode of root inode of throw-away container images
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.

11 months agonspawn: don't try to unregister a machine we never registered
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.

11 months agoshared/bootspec: mark _to_string funcs as _const_ 35381/head
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

11 months agoshared/bootspec: use FOREACH_ELEMENT where appropriate, avoid unneeded memzero()
Mike Yuan [Wed, 27 Nov 2024 13:44:22 +0000 (14:44 +0100)] 
shared/bootspec: use FOREACH_ELEMENT where appropriate, avoid unneeded memzero()

11 months agoshared/bootspec: move boot_entry_addons_done() up, drop separate prototype
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

11 months agobasic/fileio: minor coding style cleanup
Mike Yuan [Wed, 27 Nov 2024 13:33:23 +0000 (14:33 +0100)] 
basic/fileio: minor coding style cleanup

Follow-up for bbec1c87d3bf8d14eeb1ee3b4df973a53cca2e58

11 months agoman: split systemd.conf(5) into multiple sections
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.

11 months agoUpdate TODO
Lennart Poettering [Wed, 27 Nov 2024 09:15:28 +0000 (10:15 +0100)] 
Update TODO

11 months agobootspec fixups (#34959)
Luca Boccassi [Wed, 27 Nov 2024 10:55:32 +0000 (10:55 +0000)] 
bootspec fixups (#34959)

11 months agoukify: Switch to JSON HWID description format (#35208)
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

11 months agobootspec: Look at /loader/addons in XBOOTLDR 34959/head
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.

11 months agobootspec: Fixup loading of local addons for UKIs
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

11 months agobootspec: Fixup memory leak
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

11 months agosd-stub: Fixup typo & measurement order
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

11 months agosysext: set SELinux context for hierarchies and workdir
gerblesh [Thu, 14 Nov 2024 19:12:40 +0000 (19:12 +0000)] 
sysext: set SELinux context for hierarchies and workdir

11 months agoman: several more assorted fixes
Yu Watanabe [Tue, 26 Nov 2024 13:29:36 +0000 (22:29 +0900)] 
man: several more assorted fixes

Continuation of 4ebbb5bfe88ac3d793c395472648660c33251546.
Closes #35307.

11 months agomachine: increase timeouts in attempt to fix #35115 (#35117)
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

11 months agosd-varlink: fix bug when enqueuing messages with fds asynchronously
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).

11 months agoman/systemd-system.conf: Correct "struct" to "strict" (#35364)
Winterhuman [Tue, 26 Nov 2024 13:41:49 +0000 (13:41 +0000)] 
man/systemd-system.conf: Correct "struct" to "strict" (#35364)

11 months agocryptsetup: convert pkcs11/fido2 to iovec for key handling
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

11 months agoupdatectl: fix DBus method signature for SetFeatureEnabled
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'

11 months agoRevert "Revert "man: use MIT-0 license for example codes in daemon(7)""
Yu Watanabe [Tue, 26 Nov 2024 10:47:41 +0000 (19:47 +0900)] 
Revert "Revert "man: use MIT-0 license for example codes in daemon(7)""

This reverts commit 7a9d0abe4df81a020e2e457405f8509b2afb7c04.

11 months agoRevert "man: use MIT-0 license for example codes in daemon(7)"
Luca Boccassi [Tue, 26 Nov 2024 10:43:19 +0000 (10:43 +0000)] 
Revert "man: use MIT-0 license for example codes in daemon(7)"

This reverts commit 6046cc3660810efcc6fe50b1c850ea642218245b.

11 months agoman: use MIT-0 license for example codes in daemon(7)
Yu Watanabe [Tue, 26 Nov 2024 09:21:29 +0000 (18:21 +0900)] 
man: use MIT-0 license for example codes in daemon(7)

This page contains many short example codes. I do not think we should
add SPDX-License-Identifier for all codes.

Closes #35356.

11 months agoman: assorted fixes (#35326)
Luca Boccassi [Mon, 25 Nov 2024 15:02:08 +0000 (15:02 +0000)] 
man: assorted fixes (#35326)

Closes #35307.

11 months agotest: Use env in testsuite readme
Daan De Meyer [Mon, 25 Nov 2024 14:47:51 +0000 (15:47 +0100)] 
test: Use env in testsuite readme

Let's make sure we use env when we're setting environment variables
to rely less on shell specifics.

11 months agocore/device: ignore ID_PROCESSING udev property on enumerate (#35332)
Zbigniew Jędrzejewski-Szmek [Mon, 25 Nov 2024 13:21:36 +0000 (14:21 +0100)] 
core/device: ignore ID_PROCESSING udev property on enumerate (#35332)

Fixes #35329.

11 months agoCheck inode number to see if we are in init namespace (#35306)
Zbigniew Jędrzejewski-Szmek [Mon, 25 Nov 2024 13:13:36 +0000 (14:13 +0100)] 
Check inode number to see if we are in init namespace (#35306)

This is a more comprehensive fix compared to #35273. Also adds a minimal
test only.

Based on Luca's #35273 but generalizes the code a bit.

In v258 we really should get rid of the old heuristics around userns and
cgroupns detection, but given we are late in the v257 cycle this keeps
them in.

11 months agotest: Dump coredumps from journal in the integration test wrapper
Daan De Meyer [Fri, 22 Nov 2024 21:51:45 +0000 (22:51 +0100)] 
test: Dump coredumps from journal in the integration test wrapper

Fixes #35277

11 months agonetworkd-test.py: disable IPv6AcceptRA= if not necessary
Yu Watanabe [Mon, 25 Nov 2024 07:15:44 +0000 (16:15 +0900)] 
networkd-test.py: disable IPv6AcceptRA= if not necessary

To speed up the test. Otherwise, it takes about few seconds interfaces
to enter the configured state. And may networkd-wait-online timeouts.

11 months agoTEST-17: add reproducer for issue #35329 35332/head
Yu Watanabe [Sun, 24 Nov 2024 04:57:37 +0000 (13:57 +0900)] 
TEST-17: add reproducer for issue #35329

Without the previous commit, the test case will fail.

11 months agocore/device: ignore ID_PROCESSING udev property on enumerate
Yu Watanabe [Sun, 24 Nov 2024 04:19:27 +0000 (13:19 +0900)] 
core/device: ignore ID_PROCESSING udev property on enumerate

This partially reverts the commit 405be62f05d76f1845f347737b5972158c79dd3e
"tree-wide: refuse enumerated device with ID_PROCESSING=1".

Otherwise, when systemd-udev-trigger.service is (re)started just before
daemon-reexec, which can be easily happen on systemd package update, then
udev database files for many devices may have ID_PROCESSING=1 property,
thus devices may not be enumerated on daemon-reexec. That causes many
units especially mount units being deactivated after daemon-reexec.

Fixes #35329.

11 months agotest: mask tmpfiles.d file shipped by selinux policy package in containers
Luca Boccassi [Sat, 23 Nov 2024 13:28:03 +0000 (13:28 +0000)] 
test: mask tmpfiles.d file shipped by selinux policy package in containers

This tmpfiles.d wants to write to sysfs, which is read-only in containers,
so systemd-tmpfiles --create fails in TEST-22-TMPFILES when ran in nspawn
if the selinux policy package is instealled. Mask it, as it's not our
config file, we don't need it in the test.

11 months agomkosi: Use shared extra tree between initrd and main image
Daan De Meyer [Sun, 24 Nov 2024 18:19:52 +0000 (19:19 +0100)] 
mkosi: Use shared extra tree between initrd and main image

Let's share more between initrd and main system and use a shared
extra tree to achieve that.

11 months agomkosi: Make sure mkosi.clangd always runs on the host
Daan De Meyer [Sun, 24 Nov 2024 22:19:01 +0000 (23:19 +0100)] 
mkosi: Make sure mkosi.clangd always runs on the host

If the editor that invokes mkosi.clangd is a flatpak, let's make sure
that mkosi is run on the host and not in the flatpak sandbox since it
won't be installed there.

11 months agoVarious mkosi and integration test fixes (#35336)
Luca Boccassi [Sun, 24 Nov 2024 18:10:03 +0000 (18:10 +0000)] 
Various mkosi and integration test fixes (#35336)

11 months agotest: Lint integration-test-wrapper.py 35336/head
Daan De Meyer [Sat, 23 Nov 2024 11:54:02 +0000 (12:54 +0100)] 
test: Lint integration-test-wrapper.py

11 months agotest: Fix typing errors in integration-test-wrapper.py
Daan De Meyer [Sat, 23 Nov 2024 12:01:00 +0000 (13:01 +0100)] 
test: Fix typing errors in integration-test-wrapper.py

11 months agotest: Format integration-test-wrapper.py
Daan De Meyer [Sat, 23 Nov 2024 11:59:32 +0000 (12:59 +0100)] 
test: Format integration-test-wrapper.py

11 months agoukify: Fix typing error
Daan De Meyer [Sat, 23 Nov 2024 13:04:27 +0000 (14:04 +0100)] 
ukify: Fix typing error

11 months agoMove mypy.ini and ruff.toml to top level
Daan De Meyer [Sat, 23 Nov 2024 11:58:47 +0000 (12:58 +0100)] 
Move mypy.ini and ruff.toml to top level

This allows reusing them for integration-test-wrapper.py as well.

11 months agointegration-test-wrapper: Remove unneeded format strings
Daan De Meyer [Fri, 22 Nov 2024 21:37:34 +0000 (22:37 +0100)] 
integration-test-wrapper: Remove unneeded format strings

11 months agomkosi: Add github CLI to tools
Daan De Meyer [Sun, 24 Nov 2024 09:50:02 +0000 (10:50 +0100)] 
mkosi: Add github CLI to tools

11 months agomkosi: Add dnf and dnf5 to sanitizer workaround list
Daan De Meyer [Sat, 23 Nov 2024 23:03:50 +0000 (00:03 +0100)] 
mkosi: Add dnf and dnf5 to sanitizer workaround list

11 months agomkosi: Install clangd everywhere
Daan De Meyer [Sat, 23 Nov 2024 22:33:54 +0000 (23:33 +0100)] 
mkosi: Install clangd everywhere

11 months agomkosi: Use bash to execute command -v
Daan De Meyer [Sat, 23 Nov 2024 21:29:56 +0000 (22:29 +0100)] 
mkosi: Use bash to execute command -v

command is only an executable on Fedora due to a downstream patch,
on Arch for example it's only a builtin so we have to use bash to
execute command -v to get proper results on Arch.

11 months agomkosi: Add shellcheck to tools
Daan De Meyer [Sat, 23 Nov 2024 21:29:31 +0000 (22:29 +0100)] 
mkosi: Add shellcheck to tools

11 months agomkosi: update to latest
Daan De Meyer [Sat, 23 Nov 2024 15:11:36 +0000 (16:11 +0100)] 
mkosi: update to latest

11 months agoNEWS: add blurb thanking Nick Owens
Vito Caputo [Sun, 24 Nov 2024 05:54:56 +0000 (21:54 -0800)] 
NEWS: add blurb thanking Nick Owens

Nick's largely responsible for nerd-sniping me into fixing #34516
and did most of the testing.

11 months agohwdb: add entry for Chuwi Hi10 X1 (#35331)
白一百 [Sun, 24 Nov 2024 07:30:33 +0000 (15:30 +0800)] 
hwdb: add entry for Chuwi Hi10 X1 (#35331)

https://www.chuwi.com/product/items/chuwi-hi10-x1.html
Rotated -90 degrees in the Z axis.

11 months agocurl-util: do not configure new io event source when the event loop is already dead
Yu Watanabe [Sat, 23 Nov 2024 16:05:47 +0000 (01:05 +0900)] 
curl-util: do not configure new io event source when the event loop is already dead

Similar to c5ecf0949460dd0bf3211db128a385ce6375252e, but for io event source.

Fixes #35322.

11 months agoman: update documentation about basic .netdev file handling 35326/head
Yu Watanabe [Sat, 23 Nov 2024 15:46:47 +0000 (00:46 +0900)] 
man: update documentation about basic .netdev file handling

Follow-up for #34909 and later PRs.