]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
18 months agosd-event: increase test-event timeout to 120s
Radoslav Kolev [Tue, 14 May 2024 07:39:29 +0000 (10:39 +0300)] 
sd-event: increase test-event timeout to 120s

The test-event test seems to be taking quite a bit more time than
the other 'simple tests', which usually complete in < 1s. In case
of a slower or loaded machine the default 30s timeout is not enough.

18 months agoman: fix typo
Yu Watanabe [Tue, 14 May 2024 09:12:05 +0000 (18:12 +0900)] 
man: fix typo

Follow-up for 7df0297ac5aa784209d4c719c87fdd707a9f34cf.

18 months agodlfcn-util: fix typo
Yu Watanabe [Tue, 14 May 2024 09:10:42 +0000 (18:10 +0900)] 
dlfcn-util: fix typo

Follow-up for 2f6bd11c1a0147f6bd24bce3ed00c3d91c0884e6.

18 months agoTODO: fix typo
Yu Watanabe [Tue, 14 May 2024 09:08:23 +0000 (18:08 +0900)] 
TODO: fix typo

Follow-up for 84bdf71592be032fa4100fb7b0ed0a9345942ece.

18 months agobootctl: fix crash when parsing addon without .cmdline section
Luca Boccassi [Mon, 13 May 2024 23:26:55 +0000 (00:26 +0100)] 
bootctl: fix crash when parsing addon without .cmdline section

Follow-up for 706ca67d3074b2a405ee8fe5de307416e4915b9f

18 months agoupdate TODO
Lennart Poettering [Mon, 13 May 2024 22:40:13 +0000 (16:40 -0600)] 
update TODO

18 months agonetwork: IPv6 Compliance RFC4862: Address Lifetime Expiry (Hosts Only) [v6LC.3.2.2]
Matt Muggeridge [Mon, 13 May 2024 20:30:22 +0000 (06:30 +1000)] 
network: IPv6 Compliance RFC4862: Address Lifetime Expiry (Hosts Only) [v6LC.3.2.2]

RFC 4862 Section 5.5.3, bullet e, sub-bullet 3 applies to existing
addresses, i.e. when address_get() returns success. If the address is
new (i.e. address_get() fails), then we should not be adding 2 hours to
the lifetime_valid_usec. Instead, use the valid_lifetime from the RA's
Prefix Information Option.

This change allows v6LC.3.2.2 to pass. Also verified all v6LC3.2.* tests
pass. This covers all the v6LC tests from Group2: Router Advertisement
Processing and Address Lifetime.

Fixes #32652.

18 months agonetwork: IPv6 Compliance: Router Advertisement Processing, Reachable Time [v6LC.2...
Matt Muggeridge [Mon, 13 May 2024 21:50:51 +0000 (07:50 +1000)] 
network: IPv6 Compliance: Router Advertisement Processing, Reachable Time [v6LC.2.2.15] (#32792)

Previously, RA option fields were being ignored when the Router Lifetime
value was zero. Remove this logic to be compliant with RFC4861.

Extract from: https://www.ietf.org/rfc/rfc4861.html#section-4.2, p.21,
first paragraph:

    The Router Lifetime applies only to
    the router's usefulness as a default router; it
    does not apply to information contained in other
    message fields or options.

This affected IPv6 Conformance test:
    v6LC.2.2.15: Router Advertisement Processing, Reachable Time.

Fixes #31842.

Co-authored-by: Matt Muggeridge <Matt.Muggeridge@hpe.com>
18 months agocurl-glue: catch libcurl attempting to change timeout handler when we destroy a curl...
Lennart Poettering [Sat, 11 May 2024 11:45:44 +0000 (13:45 +0200)] 
curl-glue: catch libcurl attempting to change timeout handler when we destroy a curl context on exit

If we destroy both an event loop and a curl contect object at the same
time, then we get into this weird situation where curl wants us to
reconfigure a timout event source right before destruction, which
sd-event will refuse however, since it is already being shutdown.

Hence, catch that and simply don't bother adjusting the timeout, since
we cannot get back from there anyway.

18 months agomachined: return recognizable error when we try to register the same machine name...
Lennart Poettering [Sat, 11 May 2024 17:54:54 +0000 (19:54 +0200)] 
machined: return recognizable error when we try to register the same machine name twice

18 months agocore/service: remove unnecessary reset of notify_access_override
Mike Yuan [Thu, 9 May 2024 16:29:37 +0000 (00:29 +0800)] 
core/service: remove unnecessary reset of notify_access_override

This already gets reset in service_enter_dead()
and service_start().

18 months agovarlink: rename vsockCid → vSockCid field
Lennart Poettering [Sat, 11 May 2024 17:52:19 +0000 (19:52 +0200)] 
varlink: rename vsockCid → vSockCid field

18 months agohwdb: ASRock LED Controller classified incorrectly as joystick due to buttons and...
KayJay7 [Mon, 13 May 2024 13:49:07 +0000 (15:49 +0200)] 
hwdb: ASRock LED Controller classified incorrectly as joystick due to buttons and axis (#32775)

The function `builtin-input_id` incorrectly identifies the ASRock LED Controller
as an input device due to the presence of buttons and axis. To fix this we add
a new rule in `hwdb.d/60-input-id.hwdb`.
The properties have been set to empty instead of `0` because some programs
might check if the value is set at all instead of checking its value, as discussed
in #32773.

The device has no real keys. The devices is controlled by i2c interface and some
settings in UEFI, and it provides an header to connect LED strips and similar devices.
I suppose it's possible that ASRock intended to connect devices with buttons for
controlling LEDs to it, but: (i) the controller itself does not have key, (ii) to my
knowledge no such device exists. So I think we can unset that property as well.
On a sidenote, unsetting those properties does not affect the i2c interface,
OpenRGB still interacts normally with the device.

Fixes #32773.

18 months agoTEST-38-FREEZER: Relax regex a little
Daan De Meyer [Mon, 13 May 2024 11:27:14 +0000 (13:27 +0200)] 
TEST-38-FREEZER: Relax regex a little

The state might be "freezing-by-parent" as well so let's take that
into account.

Fixes #32746

18 months agohwdb: ID_INPUT_XYZ allows an empty string
Yu Watanabe [Mon, 13 May 2024 10:50:04 +0000 (19:50 +0900)] 
hwdb: ID_INPUT_XYZ allows an empty string

This is for making CIs for #32775 green.

18 months agoMerge pull request #32758 from yuwata/journal-ratelimit
Luca Boccassi [Mon, 13 May 2024 13:16:40 +0000 (15:16 +0200)] 
Merge pull request #32758 from yuwata/journal-ratelimit

journal: modernize journal ratelimiting

18 months agobuild(deps): bump pkg/arch from `b13e94a` to `b578e90`
dependabot[bot] [Mon, 13 May 2024 10:00:34 +0000 (10:00 +0000)] 
build(deps): bump pkg/arch from `b13e94a` to `b578e90`

Bumps pkg/arch from `b13e94a` to `b578e90`.

---
updated-dependencies:
- dependency-name: pkg/arch
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
18 months agobuild(deps): bump pkg/debian from `7cc898c` to `824c52f`
dependabot[bot] [Mon, 13 May 2024 10:00:39 +0000 (10:00 +0000)] 
build(deps): bump pkg/debian from `7cc898c` to `824c52f`

Bumps pkg/debian from `7cc898c` to `824c52f`.

---
updated-dependencies:
- dependency-name: pkg/debian
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
18 months agoman: add v257 tag
Yu Watanabe [Mon, 13 May 2024 10:26:14 +0000 (19:26 +0900)] 
man: add v257 tag

Even though v256-final is not released yet, let's v257 tag now to make
not PRs for v257 conflict with each other.

18 months agojournal-rate-limit: replace in-house management of JournalRateLimitGroup with Ordered... 32758/head
Yu Watanabe [Sat, 11 May 2024 12:09:44 +0000 (21:09 +0900)] 
journal-rate-limit: replace in-house management of JournalRateLimitGroup with OrderedHashmap

No functional change, just refactoring.

18 months agohwdb: updated Librem 11 accelerometer (#32772)
zeroskyx [Sun, 12 May 2024 17:46:19 +0000 (19:46 +0200)] 
hwdb: updated Librem 11 accelerometer (#32772)

18 months agohwdb: update Dere N12 / Juno Tablet 3 accelerometer (#32765)
mburucuyapy [Sun, 12 May 2024 17:45:36 +0000 (13:45 -0400)] 
hwdb: update Dere N12 / Juno Tablet 3 accelerometer (#32765)

18 months agopo: Translated using Weblate (Hindi)
Scrambled 777 [Sun, 12 May 2024 07:35:56 +0000 (09:35 +0200)] 
po: Translated using Weblate (Hindi)

Currently translated at 100.0% (233 of 233 strings)

Co-authored-by: Scrambled 777 <weblate.scrambled777@simplelogin.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/hi/
Translation: systemd/main

18 months agojournal-rate-limit: split out journal_ratelimit_group_acquire()
Yu Watanabe [Sat, 11 May 2024 12:05:56 +0000 (21:05 +0900)] 
journal-rate-limit: split out journal_ratelimit_group_acquire()

No functional change, just refactoring.

18 months agojournal-rate-limit: introduce cleanup function for JournalRateLimitGroup
Yu Watanabe [Sat, 11 May 2024 11:44:53 +0000 (20:44 +0900)] 
journal-rate-limit: introduce cleanup function for JournalRateLimitGroup

This also makes journal_ratelimit_group_new() use structured initializer.

18 months agojournal-rate-limit: rename variables
Yu Watanabe [Sat, 11 May 2024 11:41:07 +0000 (20:41 +0900)] 
journal-rate-limit: rename variables

'r' is usually used for storing return value.

18 months agojournal-rate-limit: use FOREACH_ELEMENT() and usec_add()
Yu Watanabe [Sat, 11 May 2024 11:30:30 +0000 (20:30 +0900)] 
journal-rate-limit: use FOREACH_ELEMENT() and usec_add()

18 months agojournal-rate-limit: make journal_ratelimit_group_free() return NULL
Yu Watanabe [Sat, 11 May 2024 11:28:26 +0000 (20:28 +0900)] 
journal-rate-limit: make journal_ratelimit_group_free() return NULL

To make it follow our recent coding style.

18 months agojournal-rate-limit: add trailing comma in table
Yu Watanabe [Sat, 11 May 2024 09:56:57 +0000 (18:56 +0900)] 
journal-rate-limit: add trailing comma in table

18 months agotest: introduce test cases for journal_ratelimit_test()
Yu Watanabe [Sun, 12 May 2024 01:31:41 +0000 (10:31 +0900)] 
test: introduce test cases for journal_ratelimit_test()

18 months agotree-wide: use LOG_PRI() and LOG_FAC()
Yu Watanabe [Sat, 11 May 2024 12:25:07 +0000 (21:25 +0900)] 
tree-wide: use LOG_PRI() and LOG_FAC()

18 months agodebug-generator: Allow specifying name of unit-dropin credential
Daan De Meyer [Sat, 11 May 2024 14:42:24 +0000 (16:42 +0200)] 
debug-generator: Allow specifying name of unit-dropin credential

A fixed name is too rigid, let's give users the ability to define
custom drop-in names which at the same time also allows defining
multiple dropins per unit.

We use ~ as the separator because:
- ':' is not allowed in credential names
- '=' is used to separate credential from value in mkosi's --credential
  argument.
- '-' is commonly used in filenames
- '@' already has meaning as the unit template specifier which might be
  confusing when adding dropins for template units

18 months agoMerge pull request #32755 from yuwata/test-network-cleanups
Luca Boccassi [Fri, 10 May 2024 20:06:39 +0000 (22:06 +0200)] 
Merge pull request #32755 from yuwata/test-network-cleanups

test-network: several cleanups

18 months agotest-network: simplify and unify waiting loop 32755/head
Yu Watanabe [Fri, 10 May 2024 17:00:21 +0000 (02:00 +0900)] 
test-network: simplify and unify waiting loop

Also,
- drop unused fail_assert arguments,
- use wait_links() and check_networkd_log() in wait_activated().

18 months agotest-network: make link_exists() take multiple arguments
Yu Watanabe [Fri, 10 May 2024 16:58:06 +0000 (01:58 +0900)] 
test-network: make link_exists() take multiple arguments

This also improves performance of test_delete_links().

18 months agoFix Positivo N14EPE and N15EPE key toggle touchpad and search key
Lucas Salles [Fri, 10 May 2024 13:59:52 +0000 (10:59 -0300)] 
Fix Positivo N14EPE and N15EPE key toggle touchpad and search key

18 months agolibcrypt-util: fix wrong errno value assignment
Yu Watanabe [Fri, 10 May 2024 12:06:24 +0000 (21:06 +0900)] 
libcrypt-util: fix wrong errno value assignment

Follow-up for 9de324c3c919f20fd49e1d25579f5a66cac0eaa0.

18 months agoMerge pull request #32747 from YHNdnzj/tmpfiles-ret-gather
Luca Boccassi [Fri, 10 May 2024 13:04:30 +0000 (15:04 +0200)] 
Merge pull request #32747 from YHNdnzj/tmpfiles-ret-gather

tmpfiles: some cleanups/follow-up

18 months agoMerge pull request #32748 from yuwata/test-network-improvements
Daan De Meyer [Fri, 10 May 2024 12:31:03 +0000 (14:31 +0200)] 
Merge pull request #32748 from yuwata/test-network-improvements

test-network: several more improvements

18 months agotest-network: check existence of kernel bug 32748/head
Yu Watanabe [Fri, 10 May 2024 11:38:06 +0000 (20:38 +0900)] 
test-network: check existence of kernel bug

This adds checks for the kernel bug caused by
https://github.com/torvalds/linux/commit/3ddc2231c8108302a8229d3c5849ee792a63230d,
it will be fixed by
https://patchwork.kernel.org/project/netdevbpf/patch/20240510072932.2678952-1-edumazet@google.com/

18 months agotest-network: introduce --no-journal option
Yu Watanabe [Fri, 10 May 2024 11:18:57 +0000 (20:18 +0900)] 
test-network: introduce --no-journal option

This should be useful when the test run as a service, e.g.
running on a mkosi image.

18 months agoMerge pull request #32738 from yuwata/trivial-cleanups
Mike Yuan [Fri, 10 May 2024 11:07:42 +0000 (19:07 +0800)] 
Merge pull request #32738 from yuwata/trivial-cleanups

Trivial follow-ups for recent changes

18 months agoNEWS: update for latest changes
Luca Boccassi [Fri, 10 May 2024 11:05:36 +0000 (12:05 +0100)] 
NEWS: update for latest changes

18 months agoMerge pull request #32491 from yuwata/journalctl-fix-boot
Luca Boccassi [Fri, 10 May 2024 11:00:22 +0000 (13:00 +0200)] 
Merge pull request #32491 from yuwata/journalctl-fix-boot

journalctl: several fixes and cleanups for --boot= option handling

18 months agotmpfiles: use RET_GATHER more, add missing assertions 32747/head
Mike Yuan [Wed, 8 May 2024 09:54:54 +0000 (17:54 +0800)] 
tmpfiles: use RET_GATHER more, add missing assertions

Note that item_do() now aborts on OOM, since it's
pretty pointless to iterate further if memory allocation
doesn't work.

18 months agotmpfiles: don't compare errno with negative value
Mike Yuan [Fri, 10 May 2024 10:16:31 +0000 (18:16 +0800)] 
tmpfiles: don't compare errno with negative value

Follow-up for 677430b3c7fcd1b352eb66f19b8746741459b91a

18 months agotmpfiles: clean up hardlinks_vulnerable a bit
Mike Yuan [Fri, 10 May 2024 09:53:44 +0000 (17:53 +0800)] 
tmpfiles: clean up hardlinks_vulnerable a bit

dangerous_hardlinks() -> hardlinks_protected(),
and the meaning of the function is now in line
with fs.protected_hardlinks value.

Plus, We ship 50-default.conf where the sysctl
is enabled. Mention it in the comment.

18 months agoMerge pull request #32741 from yuwata/network-dhcp4-route-to-dns
Luca Boccassi [Fri, 10 May 2024 10:40:30 +0000 (12:40 +0200)] 
Merge pull request #32741 from yuwata/network-dhcp4-route-to-dns

network/dhcp4: fix assignment of routes to DNS or NTP servers

18 months agoMerge pull request #32739 from yuwata/vmspawn-journal-forward
Luca Boccassi [Fri, 10 May 2024 10:37:56 +0000 (12:37 +0200)] 
Merge pull request #32739 from yuwata/vmspawn-journal-forward

vmspawn: fix journal forwarding

18 months agomkosi: Update centos submodule to latest
Daan De Meyer [Fri, 10 May 2024 08:51:43 +0000 (10:51 +0200)] 
mkosi: Update centos submodule to latest

18 months agoMerge pull request #32743 from yuwata/test-network-for-mkosi
Luca Boccassi [Fri, 10 May 2024 09:27:14 +0000 (11:27 +0200)] 
Merge pull request #32743 from yuwata/test-network-for-mkosi

test-network: several improvements for running with mkosi

18 months agocore/unit: use FOREACH_ELEMENT() to add dependencies for journal namespace instances 32738/head
Yu Watanabe [Fri, 10 May 2024 01:21:48 +0000 (10:21 +0900)] 
core/unit: use FOREACH_ELEMENT() to add dependencies for journal namespace instances

Follow-up for 06c0f569e94cc7406886079d241f1c1f82711937.

18 months agotest: wait for network interface reconfigured after updating config
Yu Watanabe [Fri, 10 May 2024 05:21:10 +0000 (14:21 +0900)] 
test: wait for network interface reconfigured after updating config

Otherwise, at this stage, the interface may be in e.g. initialized or
pending state, and the drop-in file introduced by the previous command
may not be registered to the state file for the interface.

Fixes #32685.

18 months agotest-network: do not fail when /etc/protocols does not exist 32743/head
Yu Watanabe [Fri, 10 May 2024 06:15:22 +0000 (15:15 +0900)] 
test-network: do not fail when /etc/protocols does not exist

Also this makes several checks more strict.

18 months agotest-network: do not fail test_macvlan() with old kernel or ip command
Yu Watanabe [Fri, 10 May 2024 05:36:38 +0000 (14:36 +0900)] 
test-network: do not fail test_macvlan() with old kernel or ip command

18 months agotest-network: do not fail if macvlan module is not available
Yu Watanabe [Fri, 10 May 2024 05:33:38 +0000 (14:33 +0900)] 
test-network: do not fail if macvlan module is not available

18 months agonetwork/dhcp4: do not set gateway if DNS server or friends is in the acquired prefix 32741/head
Yu Watanabe [Fri, 10 May 2024 03:49:50 +0000 (12:49 +0900)] 
network/dhcp4: do not set gateway if DNS server or friends is in the acquired prefix

Previously, even if a DNS server is in the acquired prefix, the route to the
server might have gateway address.
This makes the prefix route, which is always configured, is also handled
as same as static routes, and do not use any gateway if the prefix route
is the most suitable route to access the destination.
The same change is also applied to route to NTP servers and semi-static
routes.

Fixes a regression introduced by 0ce86f5eeb0921b44a9782260a8c88aafb15ffde.

Fixes #32715.

18 months agotest: add basic tests for in_addr_prefix_covers_full()
Yu Watanabe [Fri, 10 May 2024 03:17:10 +0000 (12:17 +0900)] 
test: add basic tests for in_addr_prefix_covers_full()

18 months agojournalctl: make --list-boots support -n/--lines= option 32491/head
Yu Watanabe [Fri, 26 Apr 2024 04:40:40 +0000 (13:40 +0900)] 
journalctl: make --list-boots support -n/--lines= option

Also mention that -r/--reverse is supported by the command.

18 months agojournalctl: fail and show error message when no boot ID found
Yu Watanabe [Thu, 25 Apr 2024 05:22:41 +0000 (14:22 +0900)] 
journalctl: fail and show error message when no boot ID found

No boot ID in journal should be definitly spurious.
Let's warn about that and exit with failure.

18 months agologs-show: use GREEDY_REALLOC_APPEND()
Yu Watanabe [Fri, 26 Apr 2024 02:31:48 +0000 (11:31 +0900)] 
logs-show: use GREEDY_REALLOC_APPEND()

18 months agologs-show: fix stored timestamp when advance_older is true
Yu Watanabe [Fri, 26 Apr 2024 02:30:34 +0000 (11:30 +0900)] 
logs-show: fix stored timestamp when advance_older is true

Currently, the parsed timestamp is only used when advance_older is
false. Hence, this does not change any behavior. But, let's fix it anyway.

18 months agojournalctl: fix support of --boot=ID±offset format
Yu Watanabe [Fri, 26 Apr 2024 02:27:12 +0000 (11:27 +0900)] 
journalctl: fix support of --boot=ID±offset format

Fixes a regression introduced by e44f06065bf20e8d0e4adacff61350ebd36f299e.

After the offending commit, if a boot ID suffixed with an offset is
specified to --boot=, the boot ID was ignored.
This fixes the issue.

To fix the issue, this merges journal_find_boot_by_id() and
journal_find_boot_by_offset().

18 months agologs-show: flush matches before and after finding boots
Yu Watanabe [Fri, 26 Apr 2024 03:10:39 +0000 (12:10 +0900)] 
logs-show: flush matches before and after finding boots

Otherwise, if several matches already set, then the first seek to head
or tail may move the cursor to an invalid place, hence they provide
wrong ID(s). Also, reading journal after calling these function may
provide unexpected data.

Currently, the caller does not install any matches before calling the
functions, and does not read any journal entry after journal_get_boots()
succeeds or journal_find_boot_by_offset() succeeds with 0. Hence, this
should not change any behavior. Just for safety.

18 months agojournalctl: fix --boot=0 with --file=- (from stdin)
Yu Watanabe [Fri, 26 Apr 2024 00:40:26 +0000 (09:40 +0900)] 
journalctl: fix --boot=0 with --file=- (from stdin)

Follow-up for 592855c3189549fed93b1060b72299910c6ab1d0.

18 months agojournalctl: split out journal_acquire_boot() from add_boot()
Yu Watanabe [Thu, 25 Apr 2024 04:05:13 +0000 (13:05 +0900)] 
journalctl: split out journal_acquire_boot() from add_boot()

No functional change, just refactoring and prepration for later changes.

18 months agovmspawn: fix finding systemd-journal-remote binary 32739/head
Yu Watanabe [Fri, 10 May 2024 02:36:24 +0000 (11:36 +0900)] 
vmspawn: fix finding systemd-journal-remote binary

Follow-up for 258d26940fb6bfa1b5b8acf03cc4a37f2657e4ac.

Fixes https://github.com/systemd/systemd/pull/31218#discussion_r1596168449.

18 months agovmspawn: trivial cleanups for start_systemd_journal_remote()
Yu Watanabe [Fri, 10 May 2024 02:27:48 +0000 (11:27 +0900)] 
vmspawn: trivial cleanups for start_systemd_journal_remote()

- prefix argument for storing result with 'ret_',
- align arguments for strv_new().

18 months agocore/service: shorten code a bit
Yu Watanabe [Fri, 10 May 2024 01:12:40 +0000 (10:12 +0900)] 
core/service: shorten code a bit

Follow-up for 026335e9aab5ccf1fc9477215beadd0acef94073.

18 months agotime-util: define TIMESPEC_OMIT
Yu Watanabe [Fri, 10 May 2024 01:10:48 +0000 (10:10 +0900)] 
time-util: define TIMESPEC_OMIT

Follow-up for 34c3d574742e867ef97e79509e4051a82f1b7d9b.

18 months agojournalctl: several cleanups for parse_boot_descriptor()
Yu Watanabe [Sat, 27 Apr 2024 08:44:49 +0000 (17:44 +0900)] 
journalctl: several cleanups for parse_boot_descriptor()

- rename to parse_id_descriptor(), to make it usable for other kind of
  ID later.
- add missing assertions,
- prefix arguments for storing results with 'ret_',
- drop unnecessary 'else'.

18 months agologs-show: add missing strempty()
Yu Watanabe [Sat, 27 Apr 2024 08:50:49 +0000 (17:50 +0900)] 
logs-show: add missing strempty()

Follow-up for 8e976dc9209853d5d4d2db3016289f2a5ab99fd9.

18 months agologs-show: drop uid argument from add_matches_for_user_units()
Yu Watanabe [Thu, 25 Apr 2024 03:44:49 +0000 (12:44 +0900)] 
logs-show: drop uid argument from add_matches_for_user_units()

It is always equivalent to getuid(). Let's call getuid() in the
function instead.

18 months agobasic/linux: Copy netfilter.h to the source tree
Florian Fainelli [Mon, 6 May 2024 17:40:29 +0000 (10:40 -0700)] 
basic/linux: Copy netfilter.h to the source tree

This fixes build with old toolchains prior to Linux < 4.2 which do not
have a definition for NFPROTO_NETDEV.

18 months agoshell-completion: on zsh, systemd-cat is a precommand
hydrargyrum [Tue, 30 Apr 2024 14:02:22 +0000 (16:02 +0200)] 
shell-completion: on zsh, systemd-cat is a precommand

_precommand lets zsh complete other commands and their arguments
e.g. it can complete grep with "systemd-cat gr" and complete grep options
with "systemd-cat grep -"

18 months agonetwork: Add missing IPv6AcceptRA to list of config sections
Daan De Meyer [Tue, 7 May 2024 09:00:57 +0000 (11:00 +0200)] 
network: Add missing IPv6AcceptRA to list of config sections

18 months agoMerge pull request #32689 from YHNdnzj/cred-missing
Luca Boccassi [Thu, 9 May 2024 11:21:44 +0000 (13:21 +0200)] 
Merge pull request #32689 from YHNdnzj/cred-missing

core/exec-credential: complain louder if inherited credential is missing

18 months agoMerge pull request #32694 from weblate/weblate-systemd-main
Luca Boccassi [Thu, 9 May 2024 11:12:37 +0000 (13:12 +0200)] 
Merge pull request #32694 from weblate/weblate-systemd-main

Translations update from Fedora Weblate

18 months agoMerge pull request #32733 from YHNdnzj/core-some-cleanup
Daan De Meyer [Thu, 9 May 2024 10:45:50 +0000 (12:45 +0200)] 
Merge pull request #32733 from YHNdnzj/core-some-cleanup

core: minor cleanups

18 months agopo: Added translation using Weblate (Hindi) 32694/head
Scrambled 777 [Wed, 8 May 2024 20:02:52 +0000 (22:02 +0200)] 
po: Added translation using Weblate (Hindi)

Co-authored-by: Scrambled 777 <weblate.scrambled777@simplelogin.com>
18 months agopo: Translated using Weblate (German)
Jarne Förster [Wed, 8 May 2024 20:02:51 +0000 (22:02 +0200)] 
po: Translated using Weblate (German)

Currently translated at 97.8% (228 of 233 strings)

Co-authored-by: Jarne Förster <fedora@mymailclient.de>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/de/
Translation: systemd/main

18 months agomkosi: Drop usage of updates-testing for Fedora 40
Daan De Meyer [Thu, 9 May 2024 08:21:01 +0000 (10:21 +0200)] 
mkosi: Drop usage of updates-testing for Fedora 40

The util-linux update we need has migrated to the stable repositories.

18 months agoTEST-46-HOMED: Ignore "Disk Usage" field as well
Daan De Meyer [Thu, 9 May 2024 07:40:16 +0000 (09:40 +0200)] 
TEST-46-HOMED: Ignore "Disk Usage" field as well

This can change between the call to homectl inspect and userdbctl
user so let's ignore it along with the other disk fields.

Fixes #32727

18 months agocore/namespace: take char* const* for strv, use FOREACH_ARRAY 32733/head
Mike Yuan [Thu, 9 May 2024 08:48:26 +0000 (16:48 +0800)] 
core/namespace: take char* const* for strv, use FOREACH_ARRAY

18 months agopath-util: take char* const* for strv where appropriate
Mike Yuan [Thu, 9 May 2024 08:46:48 +0000 (16:46 +0800)] 
path-util: take char* const* for strv where appropriate

18 months agocore/unit: use FOREACH_ARRAY at one more place
Mike Yuan [Thu, 9 May 2024 06:28:25 +0000 (14:28 +0800)] 
core/unit: use FOREACH_ARRAY at one more place

18 months agocore/unit: cast unused retval to void
Mike Yuan [Thu, 9 May 2024 06:25:24 +0000 (14:25 +0800)] 
core/unit: cast unused retval to void

18 months agocore/dbus-unit: correct argument alignment for SD_BUS_METHOD_WITH_ARGS
Mike Yuan [Wed, 8 May 2024 16:58:42 +0000 (00:58 +0800)] 
core/dbus-unit: correct argument alignment for SD_BUS_METHOD_WITH_ARGS

18 months agoMerge pull request #32729 from DaanDeMeyer/kernel-command-line
Luca Boccassi [Thu, 9 May 2024 08:53:40 +0000 (10:53 +0200)] 
Merge pull request #32729 from DaanDeMeyer/kernel-command-line

mkosi: Extend kernel command line

18 months agoMerge pull request #32701 from bluca/vmspawn/machinectl-shell
Zbigniew Jędrzejewski-Szmek [Thu, 9 May 2024 08:23:42 +0000 (10:23 +0200)] 
Merge pull request #32701 from bluca/vmspawn/machinectl-shell

vmspawn: implement machinectl shell for vm class machines and send termination signal via D-Bus-over-SSH

18 months agomkosi: Make sure the kernel fails loudly on oops/panic/softlockup 32729/head
Daan De Meyer [Thu, 9 May 2024 07:57:12 +0000 (09:57 +0200)] 
mkosi: Make sure the kernel fails loudly on oops/panic/softlockup

Helps with noticing kernel related failures.

18 months agomkosi: Add raid=noautodetect to kernel command line
Daan De Meyer [Thu, 9 May 2024 07:56:06 +0000 (09:56 +0200)] 
mkosi: Add raid=noautodetect to kernel command line

Should speed up boot times a little.

18 months agovmspawn: forward signals to VM PID 1 via D-BUS when available 32701/head
Sam Leonard [Thu, 25 Apr 2024 16:16:20 +0000 (17:16 +0100)] 
vmspawn: forward signals to VM PID 1 via D-BUS when available

Allow to gracefully shutdown by initiating the operation from
the guest

18 months agovmspawn: register with io.systemd.Machine.Register
Sam Leonard [Tue, 9 Apr 2024 16:27:21 +0000 (17:27 +0100)] 
vmspawn: register with io.systemd.Machine.Register

When available, use varlink to register the VM, so that we can talk
over SSH to the guest. Enables 'machinectl shell' for vmspawn guests.

18 months agovmspawn: add a dropin override to sshd-vsock@.service
Sam Leonard [Wed, 10 Apr 2024 15:21:12 +0000 (16:21 +0100)] 
vmspawn: add a dropin override to sshd-vsock@.service

18 months agosystemctl-show: make show_memory_available cover memory_available itself
Mike Yuan [Wed, 8 May 2024 17:12:17 +0000 (01:12 +0800)] 
systemctl-show: make show_memory_available cover memory_available itself

Follow-up for f380473edfa899706d630bb64750ab50c5c04961

This cleans up the code a bit. Also, before this commit,
if MemoryAvailable is set but show_memory_available
is false, and we have nothing else to output, empty
parenthesis is shown. This can be easily reproduced
on -.slice:

> systemctl status -- -.slice
> ...
> Memory: 1.8G ()
> ...

18 months agoMerge pull request #32717 from keszybz/very-important-fixes
Luca Boccassi [Wed, 8 May 2024 15:21:27 +0000 (17:21 +0200)] 
Merge pull request #32717 from keszybz/very-important-fixes

Whitespace adjustments and comments

18 months agodocs,man: Avoid some ambiguous uses of "may not"
Colin Watson [Wed, 8 May 2024 14:01:01 +0000 (15:01 +0100)] 
docs,man: Avoid some ambiguous uses of "may not"

Like much English text, the systemd documentation uses "may not" in the
sense of both "will possibly not" and "is forbidden to".  In many cases
this is OK because the context makes it clear, but in others I felt it
was possible to read the "is forbidden to" sense by mistake: in
particular, I tripped over "the target file may not exist" in
systemd.unit(5) before realizing the correct interpretation.

Use "might not" or "may choose not to" in these cases to make it clear
which sense we mean.

18 months agopidfd: properly detect if libc offers pidfd syscalls and make use of them then
Lennart Poettering [Wed, 8 May 2024 10:27:38 +0000 (12:27 +0200)] 
pidfd: properly detect if libc offers pidfd syscalls and make use of them then

We never updated the meson checks when glibc finally learned about these
syscalls, address that.

18 months agonspawn: whitespace 32717/head
Zbigniew Jędrzejewski-Szmek [Wed, 8 May 2024 12:59:14 +0000 (14:59 +0200)] 
nspawn: whitespace