]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
20 months agoci: explicitly change oom-{score}-adj before running tests 31657/head
Frantisek Sumsal [Wed, 6 Mar 2024 14:21:10 +0000 (15:21 +0100)] 
ci: explicitly change oom-{score}-adj before running tests

For some reason root in GH actions is able to _decrease_ its oom score
even after dropping all capabilities (including CAP_SYS_RESOURCE), until
the oom score is changed explicitly after sudo:

$ systemd-detect-virt
microsoft
$ sudo su -
~# capsh --drop=all -- -c 'capsh --print; grep -H . /proc/self/oom*; choom -p $$ -n -101'
Current: =
Bounding set =
Ambient set =
Current IAB: !cap_chown,!cap_dac_override,!cap_dac_read_search,...,!cap_sys_resource,...,!cap_checkpoint_restore
Securebits: 00/0x0/1'b0
 secure-noroot: no (unlocked)
 secure-no-suid-fixup: no (unlocked)
 secure-keep-caps: no (unlocked)
 secure-no-ambient-raise: no (unlocked)
uid=0(root) euid=0(root)
gid=0(root)
groups=0(root)
Guessed mode: UNCERTAIN (0)
/proc/self/oom_adj:8
/proc/self/oom_score:1000
/proc/self/oom_score_adj:500
pid 22180's OOM score adjust value changed from 500 to -101
~# choom -p $$ -n 500
pid 22027's OOM score adjust value changed from 500 to 500
~# capsh --drop=all -- -c 'capsh --print; grep -H . /proc/self/oom*; choom -p $$ -n -101'
Current: =
Bounding set =
Ambient set =
...
uid=0(root) euid=0(root)
gid=0(root)
groups=0(root)
Guessed mode: UNCERTAIN (0)
/proc/self/oom_adj:8
/proc/self/oom_score:1000
/proc/self/oom_score_adj:500
choom: failed to set score adjust value: Permission denied

I have no idea what's going on, but it breaks
exec-oomscoreadjust-negative.service from test-execute when running
unprivileged.

20 months agoci: make the build dir accessible when running w/o privileges
Frantisek Sumsal [Wed, 6 Mar 2024 14:04:22 +0000 (15:04 +0100)] 
ci: make the build dir accessible when running w/o privileges

Otherwise the unprivileged part of test-execute gets silently skipped:

/* test_run_tests_unprivileged */
Successfully forked off '(test-execute-unprivileged)' as PID 20998.
...
pin_callout_binary: build dir binary: /home/runner/work/systemd/systemd/build/systemd-executor
pin_callout_binary: open(/home/runner/work/systemd/systemd/build/systemd-executor)=-13
Failed to pin executor binary: No such file or directory
(test-execute-unprivileged): manager_new, skipping tests: No such file or directory
(test-execute-unprivileged) succeeded.

20 months agoPORTABLE_SERVICES.md: Improve grammar
Christian Wesselhoeft [Tue, 5 Mar 2024 22:26:01 +0000 (15:26 -0700)] 
PORTABLE_SERVICES.md: Improve grammar

20 months agomeson/man: allow man pages to use multiple conditions
Zbigniew Jędrzejewski-Szmek [Tue, 5 Mar 2024 13:41:17 +0000 (17:41 +0400)] 
meson/man: allow man pages to use multiple conditions

This way the man pages are installed only when the corresponding binary is
installed. The conditions in man pages and man/rules/meson.build are adjusted to
match the conditions for units in units/meson.build.

20 months agoukify: convert certificate to public key before embedding in .pcrpkey
Luca Boccassi [Mon, 4 Mar 2024 23:12:26 +0000 (23:12 +0000)] 
ukify: convert certificate to public key before embedding in .pcrpkey

Follow-up for 419b25ddcac39cf967555c7a2eaa274fbf1ad03c

20 months agoMerge pull request #31642 from weblate/weblate-systemd-main
Frantisek Sumsal [Wed, 6 Mar 2024 09:40:41 +0000 (10:40 +0100)] 
Merge pull request #31642 from weblate/weblate-systemd-main

Translations update from Fedora Weblate

20 months agotest: use 'ahost' instead of 'hosts' where applicable
Frantisek Sumsal [Tue, 5 Mar 2024 17:19:17 +0000 (18:19 +0100)] 
test: use 'ahost' instead of 'hosts' where applicable

As explained in [0] the 'hosts' database uses deprecated
gethostbyname2() which uses AF_INET6 instead of AF_UNSPEC for IPv6
lookups which is broken and makes the test fail with disabled IPv6.

[0] https://github.com/systemd/systemd/pull/28136#issuecomment-1974901039

20 months agopo: Translated using Weblate (Georgian) 31642/head
Temuri Doghonadze [Tue, 5 Mar 2024 21:36:03 +0000 (22:36 +0100)] 
po: Translated using Weblate (Georgian)

Currently translated at 100.0% (233 of 233 strings)

Co-authored-by: Temuri Doghonadze <temuri.doghonadze@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/ka/
Translation: systemd/main

20 months agopo: Translated using Weblate (Ukrainian)
Yuri Chornoivan [Tue, 5 Mar 2024 21:36:02 +0000 (22:36 +0100)] 
po: Translated using Weblate (Ukrainian)

Currently translated at 100.0% (233 of 233 strings)

Co-authored-by: Yuri Chornoivan <yurchor@ukr.net>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/uk/
Translation: systemd/main

20 months agopo: Translated using Weblate (Swedish)
Göran Uddeborg [Tue, 5 Mar 2024 21:36:02 +0000 (22:36 +0100)] 
po: Translated using Weblate (Swedish)

Currently translated at 100.0% (233 of 233 strings)

Co-authored-by: Göran Uddeborg <goeran@uddeborg.se>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/sv/
Translation: systemd/main

20 months agohwdb: Add touchpad toggle mapping for Kvadra LE14U/LE15U
Vasiliy Kovalev [Tue, 5 Mar 2024 07:01:04 +0000 (10:01 +0300)] 
hwdb: Add touchpad toggle mapping for Kvadra LE14U/LE15U

Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org>
20 months agobasic: remove spuriously doubled newline and leftover separator
Mike Yuan [Tue, 5 Mar 2024 19:29:12 +0000 (03:29 +0800)] 
basic: remove spuriously doubled newline and leftover separator

Follow-up for 3fc72d54132151c131301fc7954e0b44cdd3c860

20 months agoMerge pull request #31550 from teknoraver/dlopen_compress
Daan De Meyer [Tue, 5 Mar 2024 19:16:19 +0000 (20:16 +0100)] 
Merge pull request #31550 from teknoraver/dlopen_compress

Dynamically load compression libraries

20 months agoMerge pull request #31640 from DaanDeMeyer/mkosi
Daan De Meyer [Tue, 5 Mar 2024 19:13:00 +0000 (20:13 +0100)] 
Merge pull request #31640 from DaanDeMeyer/mkosi

Mkosi fixes

20 months agotest: bump the timeout for test-execute subtests if running w/ QEMU
Frantisek Sumsal [Tue, 5 Mar 2024 12:24:18 +0000 (13:24 +0100)] 
test: bump the timeout for test-execute subtests if running w/ QEMU

Bump the timeout for test-execute subtests if running with plain QEMU
(as part of TEST-02-UNITTESTS), since we might start hitting the default
2m timeout with some more involved subtests, especially when the AWS
region we're running in is under heavy load. I see this regularly in the
CentOS Stream 9 nightly cron job with exec-dynamicuser-statedir.service
which has a lot of ExecStart's.

20 months agomkosi: Use specifier to refer to the output directory 31640/head
Daan De Meyer [Tue, 5 Mar 2024 18:42:18 +0000 (19:42 +0100)] 
mkosi: Use specifier to refer to the output directory

Otherwise the output directory cannot be configured by users.

20 months agomkosi: Allow users to configure the build and cache directory
Daan De Meyer [Tue, 5 Mar 2024 18:41:50 +0000 (19:41 +0100)] 
mkosi: Allow users to configure the build and cache directory

20 months agomkosi: Set minimum version
Daan De Meyer [Tue, 5 Mar 2024 18:41:06 +0000 (19:41 +0100)] 
mkosi: Set minimum version

This will only be taken into account by newer mkosi versions but it'll
at least save some pain from running on a too old version.

20 months agoresolved: remove entry from cache when goodbye packet received
Vishal Chillara Srinivas [Mon, 20 Nov 2023 06:33:28 +0000 (12:03 +0530)] 
resolved: remove entry from cache when goodbye packet received

RFC6762 10.1 says that queriers receiving a Multicast DNS response with a TTL
of zero SHOULD record a TTL of 1 and then delete the record one second later.

Added a timer event to trigger a callback to clean-up the cache one second after
a goodbye packet is received. The callback also checks for any cache entries
expiring within the next one second and schedules follow-up cleanup callbacks
accordingly.

20 months agoMerge pull request #31631 from mrc0mmand/mkosi-addons
Luca Boccassi [Tue, 5 Mar 2024 14:16:49 +0000 (14:16 +0000)] 
Merge pull request #31631 from mrc0mmand/mkosi-addons

mkosi: fix UKI addons test

20 months agoextract-word: update remaining calls to `extract_many_words`
Antonio Alvarez Feijoo [Tue, 5 Mar 2024 07:50:07 +0000 (08:50 +0100)] 
extract-word: update remaining calls to `extract_many_words`

Follow-up to 4f49512695f8214c55c206b3c2f583dc7b309e1b

20 months agosd-netlink: allow to call rtnl_get_link_info() without iftype and flags
Yu Watanabe [Tue, 5 Mar 2024 07:22:09 +0000 (16:22 +0900)] 
sd-netlink: allow to call rtnl_get_link_info() without iftype and flags

20 months agomkosi: make shellcheck happy 31631/head
Frantisek Sumsal [Tue, 5 Mar 2024 11:41:30 +0000 (12:41 +0100)] 
mkosi: make shellcheck happy

20 months agoUpdate TODO file 31550/head
Matteo Croce [Fri, 1 Mar 2024 17:25:07 +0000 (18:25 +0100)] 
Update TODO file

Update the line about dynamically load compression libraries.

20 months agodynamically load compression libraries
Matteo Croce [Tue, 27 Feb 2024 20:28:14 +0000 (21:28 +0100)] 
dynamically load compression libraries

Dynamically load liblz4, libzstd and liblzma with dlopen().
This helps to reduce the size of the initrd image when these libraries
are not really needed.

20 months agomove dlfcn-util into basic
Matteo Croce [Tue, 27 Feb 2024 06:36:46 +0000 (07:36 +0100)] 
move dlfcn-util into basic

I'm going to dlopen_many_sym_or_warn() in src/basic/compress.c, this
will introduce a circular dependency because libshared already depends
from libbasic.
To avoid this, move dlfcn-util.c from libshared to libbasic.

20 months agoRevert "mkosi: Don't fail on systemd-vconsole-setup.service failure for now"
Frantisek Sumsal [Tue, 5 Mar 2024 11:18:40 +0000 (12:18 +0100)] 
Revert "mkosi: Don't fail on systemd-vconsole-setup.service failure for now"

This doesn't seem to fail anymore.

This reverts commit 84c7929cd461f6f1cc2c44c69877b9fd0676c794.

20 months agoRevert "mkosi: Disable cmdline addon test for now"
Frantisek Sumsal [Tue, 5 Mar 2024 10:51:52 +0000 (11:51 +0100)] 
Revert "mkosi: Disable cmdline addon test for now"

Let's see if this finally works.

This reverts commit e167a8283d5964ca0f903b3e362ab7e48a1ed2ab.

20 months agomkosi: fix UKI addons test
Frantisek Sumsal [Tue, 5 Mar 2024 10:49:30 +0000 (11:49 +0100)] 
mkosi: fix UKI addons test

The test hasn't been working for a while, since there's no /efi or /boot
in $DESTDIR.

Resolves: #31618

20 months agotest: check for kernel.apparmor_restrict_unprivileged_userns
Nick Rosbrook [Mon, 4 Mar 2024 20:43:57 +0000 (15:43 -0500)] 
test: check for kernel.apparmor_restrict_unprivileged_userns

Some tests in test-execute are already skipped if we do not have
unprivileged user namespaces. Extend this check to look for an apparmor
specific sysctl indicating that unprivileged userns creation is
restricted.

20 months agoFixing bad link to Debian packages tests
Max Gautier [Tue, 5 Mar 2024 09:58:29 +0000 (10:58 +0100)] 
Fixing bad link to Debian packages tests

20 months agoMerge pull request #31597 from keszybz/option-P-for-machinectl-and-timedatectl
Zbigniew Jędrzejewski-Szmek [Tue, 5 Mar 2024 06:11:40 +0000 (10:11 +0400)] 
Merge pull request #31597 from keszybz/option-P-for-machinectl-and-timedatectl

Option -P for machinectl and timedatectl

20 months agofuzz: dump LLDP neighbors JSON too
Evgeny Vereshchagin [Sun, 3 Mar 2024 21:04:39 +0000 (21:04 +0000)] 
fuzz: dump LLDP neighbors JSON too

to make sure all the fields are in more or less good shape.

It's a follow-up to https://github.com/systemd/systemd/pull/31583

20 months agoMerge pull request #31582 from bluca/fix_hostnamed_ci
Luca Boccassi [Mon, 4 Mar 2024 20:37:52 +0000 (20:37 +0000)] 
Merge pull request #31582 from bluca/fix_hostnamed_ci

test: fix test-loopback and test-resolved-stream on Ubuntu 24.04

20 months agostat-util: generalize is_* and verify_* handling
Mike Yuan [Sat, 2 Mar 2024 09:41:29 +0000 (17:41 +0800)] 
stat-util: generalize is_* and verify_* handling

20 months agoresolved,pcrlock: make a bunch of varlink introspection structures static
Lennart Poettering [Mon, 4 Mar 2024 09:11:53 +0000 (10:11 +0100)] 
resolved,pcrlock: make a bunch of varlink introspection structures static

Not sure why gcc doesn't warn that these have no "extern" definition,
but also aren't static...

20 months agoresolved: mention the Varlink interface of resolved
Lennart Poettering [Mon, 4 Mar 2024 10:34:09 +0000 (11:34 +0100)] 
resolved: mention the Varlink interface of resolved

This is ready from prime-time, hence mention it.

20 months agoresolvectl: output nice error message if we can't JSONify RR
Lennart Poettering [Mon, 4 Mar 2024 09:00:05 +0000 (10:00 +0100)] 
resolvectl: output nice error message if we can't JSONify RR

Some RR types we don't have a mapping to JSON for. Handle this
reasonably.

20 months agovarlink: allow strings for integer varlink IDL fields
Lennart Poettering [Mon, 4 Mar 2024 10:23:38 +0000 (11:23 +0100)] 
varlink: allow strings for integer varlink IDL fields

This is a follow-up for 67a3028555c58cea152cd8b8e863a643eb147a97: also
allow strings as integer during IDL validation of JSON records.

20 months agoMerge pull request #31619 from weblate/weblate-systemd-main
Frantisek Sumsal [Mon, 4 Mar 2024 19:29:34 +0000 (20:29 +0100)] 
Merge pull request #31619 from weblate/weblate-systemd-main

Translations update from Fedora Weblate

20 months agoman/systemd-debug-generator: be consistent on '=' for boolean options
Mike Yuan [Mon, 4 Mar 2024 18:19:58 +0000 (02:19 +0800)] 
man/systemd-debug-generator: be consistent on '=' for boolean options

20 months agopo: Translated using Weblate (Turkish) 31619/head
Oğuz Ersen [Mon, 4 Mar 2024 16:32:52 +0000 (17:32 +0100)] 
po: Translated using Weblate (Turkish)

Currently translated at 100.0% (233 of 233 strings)

Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/tr/
Translation: systemd/main

20 months agopo: Translated using Weblate (Polish)
Piotr Drąg [Mon, 4 Mar 2024 16:32:52 +0000 (17:32 +0100)] 
po: Translated using Weblate (Polish)

Currently translated at 100.0% (233 of 233 strings)

Co-authored-by: Piotr Drąg <piotrdrag@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pl/
Translation: systemd/main

20 months agopo: Translated using Weblate (Korean)
김인수 [Mon, 4 Mar 2024 16:32:52 +0000 (17:32 +0100)] 
po: Translated using Weblate (Korean)

Currently translated at 100.0% (233 of 233 strings)

Co-authored-by: 김인수 <simmon@nplob.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/ko/
Translation: systemd/main

20 months agoupdate TODO
Lennart Poettering [Mon, 4 Mar 2024 16:30:15 +0000 (17:30 +0100)] 
update TODO

20 months agotest: fix test-resolved-stream unit test failure 31582/head
Luca Boccassi [Sun, 3 Mar 2024 18:14:31 +0000 (18:14 +0000)] 
test: fix test-resolved-stream unit test failure

On Noble setting this ioctl fails:

1570s  819/1330 systemd:resolve / test-resolved-stream  FAIL 0.14s   killed by signal 6 SIGABRT
1570s Successfully forked off '(usernstest)' as PID 27737.
1570s Skipping PR_SET_MM, as we don't have privileges.
1570s (usernstest) succeeded.
1570s Assertion 'ioctl(socket_fd, SIOCSIFFLAGS, &req) >= 0' failed at src/resolve/test-resolved-stream.c:372, function try_isolate_network(). Aborting.

Ignore the result.

20 months agotest: fix test-loopback failure when lacking privileges
Luca Boccassi [Sun, 3 Mar 2024 18:15:26 +0000 (18:15 +0000)] 
test: fix test-loopback failure when lacking privileges

Setting up the loopback might fail due to lack of privileges, as it
happens when running unit tests in the Noble CI environment. Skip
the test when it happens.

1584s  862/1330 systemd:test / test-loopback   FAIL  0.01s   exit status 1
1584s /* test_loopback_setup */
1584s Failed to configure loopback network device, ignoring: Operation not permitted
1584s loopback: Operation not permitted

20 months agoMerge pull request #31600 from YHNdnzj/fd-poll
Mike Yuan [Mon, 4 Mar 2024 14:28:00 +0000 (22:28 +0800)] 
Merge pull request #31600 from YHNdnzj/fd-poll

core/service: several trivial cleanups for fdstore

20 months agoMerge pull request #31615 from poettering/hostname-method-missing
Luca Boccassi [Mon, 4 Mar 2024 14:09:40 +0000 (14:09 +0000)] 
Merge pull request #31615 from poettering/hostname-method-missing

hostnamectl: deal gracefully when talking to old hostnamed

20 months agomachinectl: add -P 31597/head
Zbigniew Jędrzejewski-Szmek [Sat, 2 Mar 2024 11:25:22 +0000 (12:25 +0100)] 
machinectl: add -P

20 months agotimedatectl: add -P
Zbigniew Jędrzejewski-Szmek [Sat, 2 Mar 2024 11:17:54 +0000 (12:17 +0100)] 
timedatectl: add -P

20 months agohostnamectl: gracefully handle old hostnamed replies to GetHardwareSerial() 31615/head
Lennart Poettering [Mon, 4 Mar 2024 12:04:20 +0000 (13:04 +0100)] 
hostnamectl: gracefully handle old hostnamed replies to GetHardwareSerial()

Old versions of hostnamed used to propagate ENODEV/ENOENT as-is. Bad
idea. This was fixed in 171ddae1a122e9c97b4ef12ccb2d29e1ba7a318a, but
let's handle this gracefully in hostnamectl.

20 months agohostnamectl: properly initialize the two timestamp fields before doing bus call
Lennart Poettering [Mon, 4 Mar 2024 12:02:57 +0000 (13:02 +0100)] 
hostnamectl: properly initialize the two timestamp fields before doing bus call

Otherwise if talking to an old hostnamed (which doesn't have these
fields) we'd assume the timestamp is valid even though it isn't and show
garbage.

20 months agopo: Update translation files
Weblate [Mon, 4 Mar 2024 11:27:23 +0000 (12:27 +0100)] 
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

20 months agoMerge pull request #31607 from mrc0mmand/update-translation-strings
Luca Boccassi [Mon, 4 Mar 2024 11:35:53 +0000 (11:35 +0000)] 
Merge pull request #31607 from mrc0mmand/update-translation-strings

po: update translation strings

20 months agodocs: update translation-related instructions 31607/head
Frantisek Sumsal [Mon, 4 Mar 2024 09:11:34 +0000 (10:11 +0100)] 
docs: update translation-related instructions

Just making them consistent with the rest of the doc.

20 months agopo: update translation strings
Frantisek Sumsal [Mon, 4 Mar 2024 09:07:54 +0000 (10:07 +0100)] 
po: update translation strings

Resolves: #31603

20 months agotest: explicitly set TERM=linux for TEST-69-SHUTDOWN
Frantisek Sumsal [Sun, 3 Mar 2024 16:15:23 +0000 (17:15 +0100)] 
test: explicitly set TERM=linux for TEST-69-SHUTDOWN

sulogin from the latest util-linux started falling back to vt102 instead
of linux, which makes screen sad (because we install only the linux
terminfo into the test image) and expect trips over the unexpected
warning. Let's just explicitly set TERM=linux before invoking screen to
avoid this.

+ make -C TEST-69-SHUTDOWN setup run
...
INFO:test-shutdown:log in and start screen
root
root
Last login: Sun Mar  3 13:19:31 from 18.191.105.60
-bash-5.2# screen
screen
Cannot find terminfo entry for 'vt102'.
-bash-5.2# ERROR:test-shutdown:Timeout exceeded.

20 months agokernel-install: Add kernel version to title (#31581)
Guilhem Lettron [Sun, 3 Mar 2024 12:36:57 +0000 (13:36 +0100)] 
kernel-install: Add kernel version to title (#31581)

When using uki, kernel installations always have the same name in
systemd-boot menu.

Signed-off-by: Guilhem Lettron <guilhem@barpilot.io>
20 months agoman/sd_notify: be explicit that FDPOLL= is not a global setting 31600/head
Mike Yuan [Sun, 3 Mar 2024 10:37:36 +0000 (18:37 +0800)] 
man/sd_notify: be explicit that FDPOLL= is not a global setting

"submitted" is already used in the description of FDNAME=.
Let's use that instead of "stored" for FDPOLL= too, to make
it more clear that it's a per-submission/per-fdset setting.

20 months agocore/service: use extract_many_words at one more place
Mike Yuan [Sun, 3 Mar 2024 10:28:21 +0000 (18:28 +0800)] 
core/service: use extract_many_words at one more place

20 months agoextract-word: modernize extract_many_words
Mike Yuan [Sun, 3 Mar 2024 10:13:52 +0000 (18:13 +0800)] 
extract-word: modernize extract_many_words

20 months agocore/service: minor cleanup for service_add_fd_store
Mike Yuan [Sun, 3 Mar 2024 09:56:57 +0000 (17:56 +0800)] 
core/service: minor cleanup for service_add_fd_store

20 months agoMerge pull request #31594 from YHNdnzj/logind-seat-basename
Luca Boccassi [Sat, 2 Mar 2024 22:07:22 +0000 (22:07 +0000)] 
Merge pull request #31594 from YHNdnzj/logind-seat-basename

logind: several coding style cleanups

20 months agohostnamed: use sd_bus_reply_method_return() to shorten code a bit
Lennart Poettering [Sat, 2 Mar 2024 18:39:13 +0000 (19:39 +0100)] 
hostnamed: use sd_bus_reply_method_return() to shorten code a bit

20 months agodocs/UEFI_SECURITY: minor tweaks to the text
Zbigniew Jędrzejewski-Szmek [Sat, 2 Mar 2024 10:26:38 +0000 (11:26 +0100)] 
docs/UEFI_SECURITY: minor tweaks to the text

Oxford comma, some mistakes in counts, and splitting of long sentences.

20 months agoresolved: explicitly disconnect all left-over TCP connections when coming back from...
Lennart Poettering [Fri, 1 Mar 2024 20:46:46 +0000 (21:46 +0100)] 
resolved: explicitly disconnect all left-over TCP connections when coming back from suspend

Fixes: #13730 (original reporter's log shows the TCP connection needed
to time out first)

20 months agopo: add false positives to POTFILES.skip
Piotr Drąg [Sat, 2 Mar 2024 15:06:15 +0000 (16:06 +0100)] 
po: add false positives to POTFILES.skip

Scripts used to detect files that should be in POTFILES.in, like
intltool-update -m used on https://l10n.gnome.org/module/systemd/,
falsely detect these files as containing translations. Avoid this
behavior by putting the files in POTFILES.skip.

20 months agologind-{session,seat}: get rid of basename() in _new() 31594/head
Mike Yuan [Sat, 2 Mar 2024 15:46:00 +0000 (23:46 +0800)] 
logind-{session,seat}: get rid of basename() in _new()

20 months agologind-device: remove unneeded 'struct'
Mike Yuan [Sat, 2 Mar 2024 15:44:14 +0000 (23:44 +0800)] 
logind-device: remove unneeded 'struct'

20 months agologind: place 'ret' param at last
Mike Yuan [Sat, 2 Mar 2024 15:43:39 +0000 (23:43 +0800)] 
logind: place 'ret' param at last

20 months agoMerge pull request #31587 from yuwata/udev-rps-follow-ups
Luca Boccassi [Sat, 2 Mar 2024 11:47:44 +0000 (11:47 +0000)] 
Merge pull request #31587 from yuwata/udev-rps-follow-ups

udev: follow-ups for RPS setting

20 months agoMerge pull request #31586 from YHNdnzj/progress-bar-minor-followup
Yu Watanabe [Sat, 2 Mar 2024 06:31:29 +0000 (15:31 +0900)] 
Merge pull request #31586 from YHNdnzj/progress-bar-minor-followup

shared/pretty-print: minor follow-up for progress bar

20 months agoMerge pull request #31583 from yuwata/sd-lldp-json-follow-up
Yu Watanabe [Sat, 2 Mar 2024 06:31:00 +0000 (15:31 +0900)] 
Merge pull request #31583 from yuwata/sd-lldp-json-follow-up

sd-lldp: fix assignment of capabilities in JSON output

20 months agotest-network: wait for the interface being processed by udevd 31587/head
Yu Watanabe [Sat, 2 Mar 2024 05:48:33 +0000 (14:48 +0900)] 
test-network: wait for the interface being processed by udevd

Otherwise, even if the interface is available, the requested config may
not be applied to the interface yet.

This also merges multiple tests for RPS setting. Hopefully the
performance of the test is improved.

20 months agotest-network: introduce udevadm() and friends
Yu Watanabe [Sat, 2 Mar 2024 05:34:49 +0000 (14:34 +0900)] 
test-network: introduce udevadm() and friends

20 months agoudev/net: fix ReceivePacketSteeringCPUMask=disable assignment
Yu Watanabe [Sat, 2 Mar 2024 05:45:44 +0000 (14:45 +0900)] 
udev/net: fix ReceivePacketSteeringCPUMask=disable assignment

Follow-up for 0f30bf5886f839984df545df74e9658daf3533d2.

If 'mask' is newly allocated, previously the value was ignored.

20 months agofuzz-lldp-rx: fuzz lldp_rx_build_neighbors_json() 31583/head
Yu Watanabe [Sat, 2 Mar 2024 04:50:50 +0000 (13:50 +0900)] 
fuzz-lldp-rx: fuzz lldp_rx_build_neighbors_json()

Addresses https://github.com/systemd/systemd/pull/31583#discussion_r1509882453.

20 months agotest-network: check enabled capabilities in LLDP neighbors
Yu Watanabe [Sat, 2 Mar 2024 04:44:20 +0000 (13:44 +0900)] 
test-network: check enabled capabilities in LLDP neighbors

Addresses https://github.com/systemd/systemd/pull/31583#discussion_r1509880349.

20 months agosd-lldp: fix assignment of capabilities in JSON output
Yu Watanabe [Sat, 2 Mar 2024 02:08:18 +0000 (11:08 +0900)] 
sd-lldp: fix assignment of capabilities in JSON output

Follow-up for 329146a9ac73ac3f91b80f318e3037041488087c.

20 months agoshared/pretty-print: use strrepa where appropriate 31586/head
Mike Yuan [Sat, 2 Mar 2024 03:33:29 +0000 (11:33 +0800)] 
shared/pretty-print: use strrepa where appropriate

20 months agoshared/pretty-print: print color sequence only when needed
Mike Yuan [Sat, 2 Mar 2024 03:45:02 +0000 (11:45 +0800)] 
shared/pretty-print: print color sequence only when needed

Follow-up for 71cb203a6ea6de409c6b9c042feda2ff655101e9

20 months agoman: fix typo
Yu Watanabe [Sat, 2 Mar 2024 02:57:36 +0000 (11:57 +0900)] 
man: fix typo

Follow-up for 419b25ddcac39cf967555c7a2eaa274fbf1ad03c.

20 months agohashmap: reorder fields to pack structure better
Lennart Poettering [Fri, 1 Mar 2024 20:43:21 +0000 (21:43 +0100)] 
hashmap: reorder fields to pack structure better

When building with ENABLE_DEBUG_HASHMAP we can pack the hashmap iterator
structure a bit better.

Fixes: #31558
20 months agoMerge pull request #31507 from poettering/import-modernize
Lennart Poettering [Fri, 1 Mar 2024 22:42:32 +0000 (23:42 +0100)] 
Merge pull request #31507 from poettering/import-modernize

importd: various modernizations

20 months agoMerge pull request #31571 from poettering/hostnamed-show-more
Lennart Poettering [Fri, 1 Mar 2024 22:42:10 +0000 (23:42 +0100)] 
Merge pull request #31571 from poettering/hostnamed-show-more

hostnamectl: show product uuid/hardware serial in regular output, plus various fixes

20 months agoMerge pull request #31274 from bluca/measure_engine
Lennart Poettering [Fri, 1 Mar 2024 22:41:25 +0000 (23:41 +0100)] 
Merge pull request #31274 from bluca/measure_engine

repart/measure/ukify: add support for OpenSSL engines/providers

20 months agoresolve: skip IP_UNICAST_IF for local sockets
Ronan Pigott [Fri, 1 Mar 2024 04:42:43 +0000 (21:42 -0700)] 
resolve: skip IP_UNICAST_IF for local sockets

SO_BINDTODEVICE was used during connect() to fix an issue where
IP_UNICAST_IF was improperly ignored for route lookups made by connect
in linux. This has since been resolved upstream [1][2], but as a result
we must apply the local socket excpetion to IP_UNICAST_IF as well.

The SO_BINDTODEVICE is no longer necessary, but left in place for 5.x
kernels.

[1] https://lore.kernel.org/all/20220829111554.GA1771@debian/
[2] https://lore.kernel.org/all/20221208145437.GA75680@debian/

20 months agoMerge pull request #31567 from YHNdnzj/service-unused-param
Lennart Poettering [Fri, 1 Mar 2024 21:39:27 +0000 (22:39 +0100)] 
Merge pull request #31567 from YHNdnzj/service-unused-param

core/service: remove unused function param and minor cleanup

20 months agoMerge pull request #31565 from YHNdnzj/safe_dlclose
Lennart Poettering [Fri, 1 Mar 2024 21:39:11 +0000 (22:39 +0100)] 
Merge pull request #31565 from YHNdnzj/safe_dlclose

dlfcn-util: use safe_dlclose for dlclosep

20 months agohostnamectl: display product uuid + hardware serial in regular status output 31571/head
Lennart Poettering [Fri, 1 Mar 2024 13:43:20 +0000 (14:43 +0100)] 
hostnamectl: display product uuid + hardware serial in regular status output

hostnamed provides this, hence hostnamectl should show it

20 months agohostnamed: add explicit BUS_ERROR_NO_HARDWARE_SERIAL error
Lennart Poettering [Fri, 1 Mar 2024 13:46:27 +0000 (14:46 +0100)] 
hostnamed: add explicit BUS_ERROR_NO_HARDWARE_SERIAL error

For the very similar case of the product UUID we have its own error
BUS_ERROR_NO_PRODUCT_UUID if we have no UUID. Let's mirror this for the
hardware serial, and expose the same, to keep things nicely symmteric.

20 months agohostnamed: do some validation of the hw serial before we return it
Lennart Poettering [Fri, 1 Mar 2024 13:46:00 +0000 (14:46 +0100)] 
hostnamed: do some validation of the hw serial before we return it

Let's make sure the serial contains not control chars, and is UTF-8
clean. In particular the latter matters as D-Bus shouldn't kick us
from the bus.

20 months agohostnamed: in get_hardware_firmware_data() don't dup a string if we shan't return it
Lennart Poettering [Fri, 1 Mar 2024 13:45:37 +0000 (14:45 +0100)] 
hostnamed: in get_hardware_firmware_data() don't dup a string if we shan't return it

20 months agohostnamed: our base indentation is 8 spaces, not 9 spaces
Lennart Poettering [Fri, 1 Mar 2024 13:44:27 +0000 (14:44 +0100)] 
hostnamed: our base indentation is 8 spaces, not 9 spaces

No idea what was going on here...

20 months agobus-util: add generic parser for extracting id128 values from bus messages
Lennart Poettering [Fri, 1 Mar 2024 13:47:52 +0000 (14:47 +0100)] 
bus-util: add generic parser for extracting id128 values from bus messages

20 months agoupdate TODO 31507/head
Lennart Poettering [Tue, 27 Feb 2024 14:05:26 +0000 (15:05 +0100)] 
update TODO

20 months agotest: add integration test for importctl
Lennart Poettering [Fri, 23 Feb 2024 21:50:30 +0000 (22:50 +0100)] 
test: add integration test for importctl

(these are explicit tests, on top of the existing machinectl tests that
are now chainload importctl)

20 months agoman: document new importctl/importd functionality
Lennart Poettering [Tue, 27 Feb 2024 08:39:57 +0000 (09:39 +0100)] 
man: document new importctl/importd functionality

This also replaces the Fedora download example with another one from
Ubuntu, since Fedora's images these days no longer qualify as DDIs, they
have no distinctive partition type UUIDs set for multiple of their
partitions, hence the images cannot be booted. A bit sad. Let's provide
a command that just works in its place.

20 months agoimportd: add command to list downloaded images
Lennart Poettering [Tue, 27 Feb 2024 10:08:49 +0000 (11:08 +0100)] 
importd: add command to list downloaded images

It's a bit weird we allow importing/pulling/exporting images, but we
have no scheme for showing what#s already downloaded. Hence let's add
this, it's easy to add after all.