]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
2 years agocore/credential,mount: re-read /proc/self/mountinfo before invoking umount command 28957/head
Yu Watanabe [Thu, 24 Aug 2023 14:41:05 +0000 (23:41 +0900)] 
core/credential,mount: re-read /proc/self/mountinfo before invoking umount command

When a unit has credentials, stopping the service unmounts the credentials
directory. On shutdown, stopping the service and the corresponding mount
unit may be done mostly simultaneously, and if we invoke umount command soon
after umount() being called on stopping the service, the mount unit will
fail.

This makes Mount.invalidated_state flag set when umount() is called for a path,
and re-read /proc/self/mouninfo before invoking umount command if the flag is set.

Fixes #25527.
Replaces #26959.

2 years agotest-execute: check credentials can be read on ExecStartPost= and friends
Yu Watanabe [Fri, 25 Aug 2023 07:23:14 +0000 (16:23 +0900)] 
test-execute: check credentials can be read on ExecStartPost= and friends

Prompted by
https://github.com/systemd/systemd/pull/28787#issuecomment-1690614202.

2 years agocore/exec-credential: introduce exec_context_get_credential_directory() helper function
Yu Watanabe [Fri, 25 Aug 2023 07:11:02 +0000 (16:11 +0900)] 
core/exec-credential: introduce exec_context_get_credential_directory() helper function

No functional change, just refactoring.

2 years agocore: rename credential.[ch] -> exec-credential.[ch]
Yu Watanabe [Thu, 24 Aug 2023 14:52:51 +0000 (23:52 +0900)] 
core: rename credential.[ch] -> exec-credential.[ch]

Also rename setup_credentials() -> exec_setup_credentials().

Addresses the post-merge review
https://github.com/systemd/systemd/pull/28787#pullrequestreview-1592065048.

2 years agoRevert "core: do not leak mount for credentials directory if mount namespace is enabled"
Yu Watanabe [Fri, 25 Aug 2023 06:54:52 +0000 (15:54 +0900)] 
Revert "core: do not leak mount for credentials directory if mount namespace is enabled"

This reverts commits
9ae3624889b98f75efa6fd0c5f4b4de3eaf328d4
  "test-execute: add tests for credentials directory with mount namespace"↲
94fe4cf2557d1f70f20ee02d32f4c2ae6bc1fb3f
  "core: do not leak mount for credentials directory if mount namespace is enabled",
7241b9cd72d6e6079d5140cf24c34e78d3cf43cc
  "core/credential: make setup_credentials() return path to credentials directory",
fbaf3b23ae4aa79110ebd37aada70ce6a044c692
  "core: set $CREDENTIALS_DIRECTORY only when we set up credentials"

Before the commits, credentials directory set up on ExecStart= was kept
on e.g. ExecStop=. But, with the changes, if a service requests a
private mount namespace, the credentials directory is discarded after
ExecStart= is finished.

Let's revert the change, and find better way later.

Addresses the post-merge comment
https://github.com/systemd/systemd/pull/28787#issuecomment-1690614202.

2 years agoshared/wall: use logind if build without utmp support
Thorsten Kukuk [Mon, 4 Sep 2023 08:08:13 +0000 (10:08 +0200)] 
shared/wall: use logind if build without utmp support

If systemd is build without utmp support, use sd_get_sessions() in
utmp_wall() to get a list of logged in users with the corresponding tty.

2 years agocore: allow to run generators without sandboxing on qemu-user
Yu Watanabe [Thu, 24 Aug 2023 14:10:26 +0000 (23:10 +0900)] 
core: allow to run generators without sandboxing on qemu-user

When running on non-native userland architecture via systemd-nspawn
and qemu-user-static QEMU-emulator, clone() with CLONE_NEWNS fails with
EINVAL.

Fixes #28901.

[zjs: add a comment in the code]

2 years agoMerge pull request #29101 from DaanDeMeyer/kernel
Luca Boccassi [Wed, 6 Sep 2023 12:18:01 +0000 (13:18 +0100)] 
Merge pull request #29101 from DaanDeMeyer/kernel

mkosi: More kernel fixes

2 years agomkosi: Don't disable CONFIG_USB 29101/head
Daan De Meyer [Wed, 6 Sep 2023 10:58:30 +0000 (12:58 +0200)] 
mkosi: Don't disable CONFIG_USB

Having USB enabled seems useful enough, this wasn't doing anything
regardless because we already enable CONFIG_USB earlier in the kconfig
file so this just gets rid of warning.

2 years agomkosi: Don't build hid selftests
Daan De Meyer [Wed, 6 Sep 2023 10:57:57 +0000 (12:57 +0200)] 
mkosi: Don't build hid selftests

We don't build our kernel with hid support so don't build the selftests
either.

2 years agomkosi: Enable two more kernel configs
Daan De Meyer [Wed, 6 Sep 2023 10:31:32 +0000 (12:31 +0200)] 
mkosi: Enable two more kernel configs

Required for some bpf selftests so let's enable these in our config.

2 years agoMerge pull request #29099 from medhefgo/ci
Luca Boccassi [Wed, 6 Sep 2023 10:11:51 +0000 (11:11 +0100)] 
Merge pull request #29099 from medhefgo/ci

ci: Misc improvements

2 years agoupdate TODO
Lennart Poettering [Tue, 5 Sep 2023 11:54:35 +0000 (13:54 +0200)] 
update TODO

2 years agoci: Do not run build test as root 29099/head
Jan Janssen [Tue, 5 Sep 2023 10:07:01 +0000 (12:07 +0200)] 
ci: Do not run build test as root

Although, this is CI, we can still do better. It also ensures that any
env var changes make it into the script, as things like PATH would not
survive a `sudo -E`.

2 years agoci: Don't produce debug output for build tests
Jan Janssen [Tue, 5 Sep 2023 10:03:13 +0000 (12:03 +0200)] 
ci: Don't produce debug output for build tests

These binaries are never used, so generating debug symbols just
slows down build time.

2 years agoci: Use apt-get in favor of apt
Jan Janssen [Tue, 5 Sep 2023 10:02:05 +0000 (12:02 +0200)] 
ci: Use apt-get in favor of apt

Apparently, apt does not have a stable CLI interface and warns about it.

2 years agoci: Use add-apt-repository to enable sources
Jan Janssen [Tue, 5 Sep 2023 09:29:06 +0000 (11:29 +0200)] 
ci: Use add-apt-repository to enable sources

This should also ensure that consistent mirrors are selected.

2 years agoUpdate 60-input-id.hwdb: add TEX Shinobi (#29068)
khm [Wed, 6 Sep 2023 08:59:19 +0000 (01:59 -0700)] 
Update 60-input-id.hwdb: add TEX Shinobi (#29068)

* Update 60-input-id.hwdb: add TEX Shinobi

The TEX Shinobi keyboard with trackpoint incorrectly identifies as a mouse instead of a pointing stick.   This corrects it as suggested at https://gitlab.freedesktop.org/libinput/libinput/-/issues/932#note_2069967

Following the example of the Lite-On keyboard entry, this modalias specifies the mouse unit without tagging the device's other entries.

2 years agoci: Remove custom build step names
Jan Janssen [Wed, 30 Aug 2023 17:58:14 +0000 (19:58 +0200)] 
ci: Remove custom build step names

Putting build matrix details into a build step name is rather useless as
the jobs themselves already contain the needed information.

2 years agotest-network: Add test for PREF64
Susant Sahani [Tue, 5 Sep 2023 10:10:22 +0000 (15:40 +0530)] 
test-network: Add test for PREF64

2 years agoMerge pull request #29088 from yuwata/libsystemd-network-headers
Yu Watanabe [Tue, 5 Sep 2023 23:27:28 +0000 (08:27 +0900)] 
Merge pull request #29088 from yuwata/libsystemd-network-headers

libsystemd-network: split headers

2 years agoMerge pull request #29094 from yuwata/network-dbus-doc
Yu Watanabe [Tue, 5 Sep 2023 23:25:35 +0000 (08:25 +0900)] 
Merge pull request #29094 from yuwata/network-dbus-doc

man: update documents for network DBus interfaces

2 years agoMerge pull request #29091 from yuwata/sd-dhcp-client-use-usec
Luca Boccassi [Tue, 5 Sep 2023 21:23:06 +0000 (22:23 +0100)] 
Merge pull request #29091 from yuwata/sd-dhcp-client-use-usec

sd-dhcp-client: use usec_t for time values

2 years agosd-dhcp6-client: split out sd-dhcp6-protocol.h 29088/head
Yu Watanabe [Mon, 4 Sep 2023 14:46:50 +0000 (23:46 +0900)] 
sd-dhcp6-client: split out sd-dhcp6-protocol.h

2 years agosd-dhcp-server: fix typo in arguments
Yu Watanabe [Mon, 4 Sep 2023 13:34:03 +0000 (22:34 +0900)] 
sd-dhcp-server: fix typo in arguments

2 years agosd-dhcp: split out sd-dhcp-protocol.h from sd-dhcp-client.h
Yu Watanabe [Mon, 4 Sep 2023 13:33:40 +0000 (22:33 +0900)] 
sd-dhcp: split out sd-dhcp-protocol.h from sd-dhcp-client.h

2 years agomeson: sort headers
Yu Watanabe [Mon, 4 Sep 2023 13:22:32 +0000 (22:22 +0900)] 
meson: sort headers

2 years agoman: mention DBus interfaces for DHCP clients 29094/head
Yu Watanabe [Tue, 5 Sep 2023 19:32:04 +0000 (04:32 +0900)] 
man: mention DBus interfaces for DHCP clients

Follow-up for #28896.

2 years agonetwork/ndisc: split out ndisc_router_process_icmp6_ratelimit()
Yu Watanabe [Tue, 5 Sep 2023 12:41:57 +0000 (21:41 +0900)] 
network/ndisc: split out ndisc_router_process_icmp6_ratelimit()

Otherwise, if ndisc_router_process_default() return earlier, e.g.
when Network.ipv6_accept_ra_use_gateway is false, then the
ratelimit is not applied.

2 years agoMerge pull request #29089 from yuwata/network-ndisc-pref64-follow-ups
Luca Boccassi [Tue, 5 Sep 2023 21:02:47 +0000 (22:02 +0100)] 
Merge pull request #29089 from yuwata/network-ndisc-pref64-follow-ups

network/ndisc: follow-ups for PREF64 handling

2 years agonetwork: reorder bus implementations
Yu Watanabe [Tue, 5 Sep 2023 20:55:29 +0000 (05:55 +0900)] 
network: reorder bus implementations

Otherwise, in the man page, DHCPServer interface is listed in the Link
object.

2 years agodissect: add 'f2fs' to allow-listed filesystems
Luca Boccassi [Tue, 5 Sep 2023 17:13:45 +0000 (18:13 +0100)] 
dissect: add 'f2fs' to allow-listed filesystems

f2fs is actively maintained upstream, and popular in certain device
categories (phones, embedded), so allow-list by default.

Fixes https://github.com/systemd/systemd/issues/29026

2 years agoMerge pull request #29080 from mrc0mmand/test-tweaks
Luca Boccassi [Tue, 5 Sep 2023 18:44:52 +0000 (19:44 +0100)] 
Merge pull request #29080 from mrc0mmand/test-tweaks

A couple of test tweaks for recent-ish CI fails

2 years agoMerge pull request #29038 from keszybz/test-name-length-enforcement
Zbigniew Jędrzejewski-Szmek [Tue, 5 Sep 2023 18:29:13 +0000 (21:29 +0300)] 
Merge pull request #29038 from keszybz/test-name-length-enforcement

Limit width of fuzz test names in meson output

2 years agosd-dhcp-client: introduce sd_dhcp_lease_has_6rd() helper function 29091/head
Yu Watanabe [Mon, 4 Sep 2023 18:04:01 +0000 (03:04 +0900)] 
sd-dhcp-client: introduce sd_dhcp_lease_has_6rd() helper function

No functional change, just refactoring.

2 years agodhcp: introduce sd_dhcp_lease_get_timestamp()
Yu Watanabe [Mon, 4 Sep 2023 17:52:48 +0000 (02:52 +0900)] 
dhcp: introduce sd_dhcp_lease_get_timestamp()

And drop sd_dhcp_client_get_lease_timestamp().

Also, this introduce sd_dhcp_lease_get_lifetime_timestamp() and friends,
which provides timestamp of the lifetime and so on, while
sd_dhcp_lease_get_lifetime() provides timestamp.

2 years agotime-util: introduce triple_timestamp_from_boottime()
Yu Watanabe [Mon, 4 Sep 2023 17:14:01 +0000 (02:14 +0900)] 
time-util: introduce triple_timestamp_from_boottime()

2 years agosd-dhcp-client: store lifetime and friends in usec_t
Yu Watanabe [Mon, 4 Sep 2023 14:16:35 +0000 (23:16 +0900)] 
sd-dhcp-client: store lifetime and friends in usec_t

2 years agologind: give better error messages when failing to attach devices to seats
Lennart Poettering [Tue, 5 Sep 2023 11:57:42 +0000 (13:57 +0200)] 
logind: give better error messages when failing to attach devices to seats

When the user tries to attach a device lacking ID_FOR_SEAT they
currently get a very cryptic error message. Let's improve the situation
a bit. Still a bit cryptic maybe, but much less so.

Inspired-by: https://lists.freedesktop.org/archives/systemd-devel/2023-September/049469.html
Inspired-by: https://lists.freedesktop.org/archives/systemd-devel/2023-September/049484.html
Also-see: https://lists.freedesktop.org/archives/systemd-devel/2023-September/049470.html
Also-see: https://lists.freedesktop.org/archives/systemd-devel/2023-September/049489.html

2 years agonetwork/ndisc: refuse too many PREF64 prefixes 29089/head
Yu Watanabe [Tue, 5 Sep 2023 15:55:42 +0000 (00:55 +0900)] 
network/ndisc: refuse too many PREF64 prefixes

Follow-up for 6e8f5e4c1f5fcdb3b63343268936f9c269b6a209.

Addresses https://github.com/systemd/systemd/pull/29009#issuecomment-1705700926.

2 years agonetwork/ndisc: drop outdated PREF64 prefixes
Yu Watanabe [Tue, 5 Sep 2023 15:44:42 +0000 (00:44 +0900)] 
network/ndisc: drop outdated PREF64 prefixes

Follow-up for 6e8f5e4c1f5fcdb3b63343268936f9c269b6a209.

Addresses https://github.com/systemd/systemd/pull/29009#issuecomment-1705741844.

2 years agoMerge pull request #29035 from DaanDeMeyer/update-mkosi
Daan De Meyer [Tue, 5 Sep 2023 14:56:35 +0000 (16:56 +0200)] 
Merge pull request #29035 from DaanDeMeyer/update-mkosi

mkosi: Update to latest

2 years agomkosi: Make sure gzip is installed in initrd/system image
Daan De Meyer [Tue, 5 Sep 2023 14:02:05 +0000 (16:02 +0200)] 
mkosi: Make sure gzip is installed in initrd/system image

Required by loadkeys but not always a hard dependency so let's install
it explicitly.

2 years agotest: create the "global" dropins in /run 29080/head
Frantisek Sumsal [Tue, 5 Sep 2023 12:38:35 +0000 (14:38 +0200)] 
test: create the "global" dropins in /run

So the test doesn't fail if run multiple times in a succession.

2 years agouki: document section name size limit
Lennart Poettering [Tue, 5 Sep 2023 11:56:29 +0000 (13:56 +0200)] 
uki: document section name size limit

2 years agomkosi: Update to latest 29035/head
Daan De Meyer [Fri, 1 Sep 2023 11:58:16 +0000 (13:58 +0200)] 
mkosi: Update to latest

Configuration now takes priority over CLI options so we have to
configure the defaults for settings that we want to allow overriding
from the CLI. We also explicitly set some other settings so that they
can't be overridden from the CLI anymore. For example the base and
initrd image should never be made bootable so we set Bootable=no
explicitly for both.

2 years agotest: set ncat's idle timeout as well
Frantisek Sumsal [Tue, 5 Sep 2023 11:30:12 +0000 (13:30 +0200)] 
test: set ncat's idle timeout as well

Otherwise we'll get stuck waiting indefinitely if the test socket unit
fails to fail due the trigger limit, i.e.:

[  111.104906] testsuite-07.sh[743]: + systemctl start issue2467.socket
[  OK  ] Listening on issue2467.socket.
[  111.746465] testsuite-07.sh[743]: + nc -w20 -U /run/test.ctl
         Starting systemd-tmpfiles-clean.service...
[  OK  ] Finished systemd-tmpfiles-clean.service.
qemu-system-x86_64: terminating on signal 15 from pid 565814 (timeout)
E: Test timed out after 1800s

With the idle timeout we should give up after 20 seconds, allowing the next
statement to properly fail:

[   34.233084] testsuite-07.sh[450]: + systemctl start issue2467.socket
[   35.475392] testsuite-07.sh[450]: + nc -i20 -w20 -U /run/test.ctl
[   56.122941] testsuite-07.sh[458]: Ncat: Idle timeout expired (20000 ms).
[   56.140871] testsuite-07.sh[450]: + :
[   56.145460] testsuite-07.sh[450]: + timeout 10 bash -c 'while ! [[ "$(systemctl show issue2467.socket -P ActiveState)" == failed ]]; do sleep .5; done'
[   66.197623] testsuite-07.sh[446]: + echo 'Subtest /usr/lib/systemd/tests/testdata/units/testsuite-07.issue-2467.sh failed'

2 years agotest: bump the trigger limit interval when running w/o KVM
Frantisek Sumsal [Tue, 5 Sep 2023 11:14:39 +0000 (13:14 +0200)] 
test: bump the trigger limit interval when running w/o KVM

As we might be slow enough to miss the trigger limit. Spotted in a nightly
cron build on C8S.

2 years agoask-password: Use unicode for password echo
Jan Janssen [Mon, 4 Sep 2023 13:26:25 +0000 (15:26 +0200)] 
ask-password: Use unicode for password echo

2 years agoMerge pull request #29070 from YHNdnzj/foolish-mistakes
Luca Boccassi [Tue, 5 Sep 2023 08:46:35 +0000 (09:46 +0100)] 
Merge pull request #29070 from YHNdnzj/foolish-mistakes

Follow-ups for a few foolish mistakes by me

2 years agosystemd.catalog: freezed -> froze 29070/head
Mike Yuan [Tue, 5 Sep 2023 04:57:28 +0000 (12:57 +0800)] 
systemd.catalog: freezed -> froze

Follow-up for 1dc604d821b6f9519e1961b154ae37baad57dbb1

2 years agosystemctl: drop unnecessary else
Mike Yuan [Tue, 5 Sep 2023 04:55:45 +0000 (12:55 +0800)] 
systemctl: drop unnecessary else

Follow-up for 8a826a979aa51703ec45dbecc34691265b4d04e0

2 years agojournalctl: reset --lines= correctly if no argument
Mike Yuan [Tue, 5 Sep 2023 04:52:28 +0000 (12:52 +0800)] 
journalctl: reset --lines= correctly if no argument

Follow-up for 8d6791d2aa98c989101f572278e9b0a63edfec42

2 years agonetwork: make the build happy on i*86 again
Frantisek Sumsal [Mon, 4 Sep 2023 17:32:22 +0000 (19:32 +0200)] 
network: make the build happy on i*86 again

In file included from ../src/basic/macro.h:455,
                 from ../src/basic/alloc-util.h:10,
                 from ../src/basic/hash-funcs.h:4,
                 from ../src/basic/hashmap.h:8,
                 from ../src/shared/dns-domain.h:10,
                 from ../src/network/networkd-radv.c:9:
../src/network/networkd-radv.c: In function â€˜config_parse_router_home_agent_lifetime’:
../src/network/networkd-radv.c:1626:28: error: format â€˜%lu’ expects argument of type â€˜long unsigned int’, but argument 11 has type â€˜long long unsigned int’ [-Werror=format=]
 1626 |                            "Invalid %s= must be in the range 1...%lu seconds, ignoring: %s", lvalue,
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/basic/log.h:361:125: note: in definition of macro â€˜log_syntax’
  361 |                         ? log_syntax_internal(unit, _level, config_file, config_line, _e, PROJECT_FILE, __LINE__, __func__, __VA_ARGS__) \
      |                                                                                                                             ^~~~~~~~~~~
../src/network/networkd-radv.c:1626:68: note: format string is defined here
 1626 |                            "Invalid %s= must be in the range 1...%lu seconds, ignoring: %s", lvalue,
      |                                                                  ~~^
      |                                                                    |
      |                                                                    long unsigned int
      |                                                                  %llu
cc1: all warnings being treated as errors

Addresses: https://github.com/systemd/systemd/pull/28964#issuecomment-1705550404
Follow-up to 6a6d27bc5b0.

2 years agonetwork: Fix memory leak PREF64 (#29064)
Susant Sahani [Mon, 4 Sep 2023 19:43:56 +0000 (01:13 +0530)] 
network: Fix memory leak PREF64 (#29064)

Follow-up for 6e8f5e4c1f5fcdb3b63343268936f9c269b6a209.

Fixes #29062.

2 years agoman: add version information for functions
Abderrahim Kitouni [Mon, 4 Sep 2023 12:46:35 +0000 (13:46 +0100)] 
man: add version information for functions

2 years agoMerge pull request #29059 from YHNdnzj/catalog-followup 29065/head
Luca Boccassi [Mon, 4 Sep 2023 16:57:19 +0000 (17:57 +0100)] 
Merge pull request #29059 from YHNdnzj/catalog-followup

Follow-ups for recently-added catalogs

2 years agoMerge pull request #29023 from pelaufer/dhcp-prefix-dbus
Yu Watanabe [Mon, 4 Sep 2023 15:16:19 +0000 (00:16 +0900)] 
Merge pull request #29023 from pelaufer/dhcp-prefix-dbus

Add dhcp client prefix lease information to networkd json output

2 years agoMerge pull request #29052 from yuwata/icmp6-util-cleanups
Yu Watanabe [Mon, 4 Sep 2023 15:15:23 +0000 (00:15 +0900)] 
Merge pull request #29052 from yuwata/icmp6-util-cleanups

icmp6-util: several cleanups and fixlets

2 years agocatalog/systemd.catalog: rephrase a bunch of messages 29059/head
Mike Yuan [Mon, 4 Sep 2023 13:31:47 +0000 (21:31 +0800)] 
catalog/systemd.catalog: rephrase a bunch of messages

Follow-up for #28873

2 years agocore/crash-handler: correct indentation
Mike Yuan [Mon, 4 Sep 2023 12:19:53 +0000 (20:19 +0800)] 
core/crash-handler: correct indentation

2 years agosd-messages.h: correct alignment
Mike Yuan [Mon, 4 Sep 2023 12:12:23 +0000 (20:12 +0800)] 
sd-messages.h: correct alignment

2 years agonetwork: ndisc - Allow to parse PREF64 prefix
Susant Sahani [Mon, 28 Aug 2023 18:12:39 +0000 (23:42 +0530)] 
network: ndisc - Allow to parse PREF64 prefix

2 years agonetwork: sd-radv - Allow to configure Mobile IPv6 Home Agent
Susant Sahani [Thu, 24 Aug 2023 18:38:48 +0000 (00:08 +0530)] 
network: sd-radv - Allow to configure Mobile IPv6 Home Agent

2 years agotest: extract dummy icmp6 utils for tests 29052/head
Yu Watanabe [Mon, 4 Sep 2023 08:38:10 +0000 (17:38 +0900)] 
test: extract dummy icmp6 utils for tests

This extracts common implementation of dummy icmp6 utils used by tests.

2 years agoicmp6-util: make icmp6_receive() accept the null source address
Yu Watanabe [Mon, 4 Sep 2023 08:44:45 +0000 (17:44 +0900)] 
icmp6-util: make icmp6_receive() accept the null source address

Fixes #29050.

2 years agoicmp6-util: several cleanups for icmp6_receive()
Yu Watanabe [Mon, 4 Sep 2023 08:00:31 +0000 (17:00 +0900)] 
icmp6-util: several cleanups for icmp6_receive()

- Rename the argument for storing the sender address,
- allow to call it with NULL for ret_xyz,
- reduce needless copy of timestamp when the message does not have
  timestamp.

2 years agoMerge pull request #28896 from pelaufer/dhcp_dbus_notify
Yu Watanabe [Mon, 4 Sep 2023 12:48:43 +0000 (21:48 +0900)] 
Merge pull request #28896 from pelaufer/dhcp_dbus_notify

Add DHCP client state and change notification to networkd dbus interface

2 years agomkosi: Re-enable arch but disable keyring checking
Daan De Meyer [Mon, 4 Sep 2023 11:26:39 +0000 (13:26 +0200)] 
mkosi: Re-enable arch but disable keyring checking

No need to disable arch completely, let's just disable keyring checking
to get CI working again for now.

2 years agosd-ndisc,sd-radv: fix use of uninitialized value
Yu Watanabe [Mon, 4 Sep 2023 07:51:25 +0000 (16:51 +0900)] 
sd-ndisc,sd-radv: fix use of uninitialized value

When icmp6_receive() fails, then the source address is not initialized yet.

2 years agoMerge pull request #29055 from mrc0mmand/bash-comp
Luca Boccassi [Mon, 4 Sep 2023 10:22:39 +0000 (11:22 +0100)] 
Merge pull request #29055 from mrc0mmand/bash-comp

shell-completions: add missing systemctl verbs/options

2 years agoshell-completions: add missing systemctl verbs/options 29055/head
Frantisek Sumsal [Mon, 4 Sep 2023 09:10:43 +0000 (11:10 +0200)] 
shell-completions: add missing systemctl verbs/options

Resolves: #29048

2 years agoshell-completions: code cleanup
Frantisek Sumsal [Mon, 4 Sep 2023 08:56:18 +0000 (10:56 +0200)] 
shell-completions: code cleanup

2 years agouserdbd: Order systemd-userdbd.service after systemd-remount-fs.service
Victor Westerhuis [Sun, 3 Sep 2023 11:31:46 +0000 (13:31 +0200)] 
userdbd: Order systemd-userdbd.service after systemd-remount-fs.service

Otherwise the root filesystem might still be readonly and
systemd-userdbd fails to start.

Explicitly pick systemd-remount-fs.service instead of local-fs-pre.target
to prevent a dependency cycle.

2 years agomkosi: temporarily disable Arch
Luca Boccassi [Sun, 3 Sep 2023 13:07:56 +0000 (14:07 +0100)] 
mkosi: temporarily disable Arch

The mkosi Arch CI doesn't work as the keyring package is out
of date and cannot be built due to various build toolchain
issues. Disable the job as it always fails and confuses
submitters.

2 years agoMerge pull request #28988 from keszybz/sd128-arbitrary-values
Luca Boccassi [Sun, 3 Sep 2023 13:05:32 +0000 (14:05 +0100)] 
Merge pull request #28988 from keszybz/sd128-arbitrary-values

Add sd-id128 and systemd-id128 functionality to do "app specific" with any "base"

2 years agoMerge pull request #28976 from yuwata/network-ndisc-drop-on-zero-lifetime
Luca Boccassi [Sun, 3 Sep 2023 13:04:58 +0000 (14:04 +0100)] 
Merge pull request #28976 from yuwata/network-ndisc-drop-on-zero-lifetime

network/ndisc: also drop configurations with infinite lifetime on RA …

2 years agoMerge pull request #28963 from YHNdnzj/loginctl-table
Luca Boccassi [Sun, 3 Sep 2023 13:04:24 +0000 (14:04 +0100)] 
Merge pull request #28963 from YHNdnzj/loginctl-table

loginctl: use vertical table for {user,session,seat}-status

2 years agoMerge pull request #28793 from poettering/switch-root-flags-tweak
Mike Yuan [Sun, 3 Sep 2023 03:18:18 +0000 (11:18 +0800)] 
Merge pull request #28793 from poettering/switch-root-flags-tweak

various switch-root tweaks/fixes

2 years agohwdb: Added config for RCA W101SA23T1 (#29041)
Robby Red [Sun, 3 Sep 2023 03:17:15 +0000 (23:17 -0400)] 
hwdb: Added config for RCA W101SA23T1 (#29041)

2 years agoAdding tests for dhcp client and dhcp6 client dbus state interface 28896/head
pelaufer [Sat, 2 Sep 2023 20:53:23 +0000 (14:53 -0600)] 
Adding tests for dhcp client and dhcp6 client dbus state interface

2 years agoAdding dhcp client and dhcp6 client dbus status interface
pelaufer [Sat, 2 Sep 2023 20:52:35 +0000 (14:52 -0600)] 
Adding dhcp client and dhcp6 client dbus status interface

2 years agoAdding dhcp client and dhcp6 client state interface
pelaufer [Sat, 2 Sep 2023 20:51:03 +0000 (14:51 -0600)] 
Adding dhcp client and dhcp6 client state interface

2 years agoAdding dhcp_state_to_string and dhcp client state change logging
pelaufer [Sat, 2 Sep 2023 20:46:47 +0000 (14:46 -0600)] 
Adding dhcp_state_to_string and dhcp client state change logging

2 years agoAdd dhcp client prefix lease information to networkd json output 29023/head
pelaufer [Sat, 2 Sep 2023 18:20:44 +0000 (12:20 -0600)] 
Add dhcp client prefix lease information to networkd json output

2 years agobuild(deps): bump actions/checkout from 3.5.3 to 3.6.0 28997/head
dependabot[bot] [Fri, 1 Sep 2023 09:22:50 +0000 (09:22 +0000)] 
build(deps): bump actions/checkout from 3.5.3 to 3.6.0

Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.3 to 3.6.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/c85c95e3d7251135ab7dc9ce3241c5835cc595a9...f43a0e5ff2bd294095638e18286ca9a3d1956744)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump meson from 1.2.0 to 1.2.1 in /.github/workflows
dependabot[bot] [Fri, 1 Sep 2023 09:11:15 +0000 (09:11 +0000)] 
build(deps): bump meson from 1.2.0 to 1.2.1 in /.github/workflows

Bumps [meson](https://github.com/mesonbuild/meson) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/1.2.0...1.2.1)

---
updated-dependencies:
- dependency-name: meson
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump github/codeql-action from 2.21.2 to 2.21.5
dependabot[bot] [Fri, 1 Sep 2023 09:22:56 +0000 (09:22 +0000)] 
build(deps): bump github/codeql-action from 2.21.2 to 2.21.5

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.21.2 to 2.21.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/0ba4244466797eb048eb91a6cd43d5c03ca8bd05...00e563ead9f72a8461b24876bee2d0c2e8bd2ee8)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agologinctl: use vertical table for {user,session,seat}-status 28963/head
Mike Yuan [Fri, 23 Jun 2023 14:44:52 +0000 (22:44 +0800)] 
loginctl: use vertical table for {user,session,seat}-status

To make alignment better and more manageable.

Requested in https://github.com/systemd/systemd/pull/27769#discussion_r1203952407

2 years agostring-util: introduce strrepa
Mike Yuan [Sat, 26 Aug 2023 09:50:24 +0000 (17:50 +0800)] 
string-util: introduce strrepa

2 years agoformat-table: use format_timestamp_relative_monotonic
Mike Yuan [Wed, 23 Aug 2023 12:29:04 +0000 (20:29 +0800)] 
format-table: use format_timestamp_relative_monotonic

2 years agomeson: disallow fuzz test names above 60 characters 29038/head
Zbigniew Jędrzejewski-Szmek [Sat, 2 Sep 2023 14:23:22 +0000 (17:23 +0300)] 
meson: disallow fuzz test names above 60 characters

The name is created as "systemd:fuzz / fuzz-<fuzzer_name>_<sample_name>"
and if that's very long, output gets wrapped when 'meson test' is run, and
this is rather annoying.

Disallow filenames above 45 characters, which leads a 60 char names.

2 years agotest: shorten sample names, drop numerical prefixes
Zbigniew Jędrzejewski-Szmek [Sat, 2 Sep 2023 13:55:57 +0000 (16:55 +0300)] 
test: shorten sample names, drop numerical prefixes

We don't care about the ordering, so we may just as well drop the numerical
prefixes that we normally use for sorting. Also rename some other samples
to keep width of output down to reasonable width.

2 years agonetwork/ndisc: drop captive portals with zero lifetime earlier 28976/head
Yu Watanabe [Sat, 2 Sep 2023 05:40:25 +0000 (14:40 +0900)] 
network/ndisc: drop captive portals with zero lifetime earlier

This also adds a comment about that we use the main lifetime for captive
portals.

2 years agoRevert "shutdown: do not umount recursively before MS_MOVE" 28793/head
Lennart Poettering [Fri, 11 Aug 2023 10:15:25 +0000 (12:15 +0200)] 
Revert "shutdown: do not umount recursively before MS_MOVE"

This reverts commit 6b219b74de53729249956221a971047aab7c96e0.

This commit doesn't look right to me. We have to unmount everything
recursively *before* we MS_MOVE because the MS_MOVE will not get rid of
it for us, and we simply cannot access these mounts after the MS_MOVE is
complete anymore.

This is a fundamental difference between MS_MOVE and pivot_root(). The
latter repivots the entire mount table getting rid of anything outside
of the new root. MS_MOVE otoh just mounts a bunch of mount points to the
top, leaving in place whatever might be underneath it.

Thus, if we go through the MS_MOVE codepath we must unmount everything
explicitly before doing so because otherwise the mounts will be pinned
forever, but be entirely invisble to userspace.

2 years agoswitch-root: when pivot_root() fails, but old root shall be mounted, do so
Lennart Poettering [Fri, 11 Aug 2023 10:10:18 +0000 (12:10 +0200)] 
switch-root: when pivot_root() fails, but old root shall be mounted, do so

If pivot_root() fails, we'll fall back to switching root via MS_MOVE.
Unlike pivot_root() that won't place the old root fs anyway, but just
hide it. That's problematic during shutdown for example, since after all
we might still want to access it from the exitrd, to disassemble it
properly.

Hence let's make things somewhat systematic: regardless if pivot_root()
or MS_MOVE is used, always make the old root fs show up in the selected
new dir.

2 years agoswitch-root: rework SWITCH_ROOT_SKIP_RECURSIVE_RUN flag
Lennart Poettering [Fri, 11 Aug 2023 09:57:16 +0000 (11:57 +0200)] 
switch-root: rework SWITCH_ROOT_SKIP_RECURSIVE_RUN flag

Negative flags always raise eyebrows. Let's normalize
SWITCH_ROOT_SKIP_RECURSIVE_RUN to become SWITCH_ROOT_RECURSIVE_RUN, i.e.
make recursive behaviour opt-in, rather than opt-out. We only want it
for the initrd→host transition, and in all other cases we'd prefer to
avoid it.

This allows us to simplify some code. Also, normalize the mount point
table in switch_root() a bit, to be static const, and then just select
between two mount flag sets via SWITCH_ROOT_RECURSIVE_RUN, where the
mount flag without MS_BIND (i.e. zero) just means "skip this entry".

This does not actually change anything in behaviour, it's just
refactoring.

Follow-up for: b12d41a8bb7c99f7d7a1c7821a886d98b42d9ce0

2 years agoMerge pull request #29017 from msizanoen1/fix-onboot-rotate
Zbigniew Jędrzejewski-Szmek [Sat, 2 Sep 2023 11:26:44 +0000 (14:26 +0300)] 
Merge pull request #29017 from msizanoen1/fix-onboot-rotate

journal: Relax boot ID and monotonic clock consistency checks

2 years agoMerge pull request #28971 from YHNdnzj/soft-reboot-is-better-switch-root
Zbigniew Jędrzejewski-Szmek [Sat, 2 Sep 2023 11:22:53 +0000 (14:22 +0300)] 
Merge pull request #28971 from YHNdnzj/soft-reboot-is-better-switch-root

core,systemctl: use path_is_root & limit switch-root to initrd transitions

2 years agoman: add version information 28988/head
Zbigniew Jędrzejewski-Szmek [Tue, 29 Aug 2023 14:23:22 +0000 (17:23 +0300)] 
man: add version information

I'm keeping this as a separate commit. It is the first time version
information is manually added after 6a73a4f7c466887a03c9939300ba6864203b1b3f
and we might want to revert this later.