]>
git.ipfire.org Git - thirdparty/systemd.git/log
Yu Watanabe [Wed, 16 Oct 2024 05:31:16 +0000 (14:31 +0900)]
TEST-19-CGROUP: add test cases for IPAddressAllow=/IPAddressDeny=
Yu Watanabe [Wed, 16 Oct 2024 03:45:34 +0000 (12:45 +0900)]
core/cgroup: fix IPAddressAllow=/IPAddressDeny= set through DBus
Fixes a regression caused by
84ebe6f01381c21b88e37e856956c9c9ee6781d6 (v250).
Fixes #34773.
Michael Ferrari [Tue, 15 Oct 2024 16:42:20 +0000 (18:42 +0200)]
gpt-auto: remove directory check for ESP mount
Ensure that we always attempt to mount the `ESP` partition to `/boot`
when there is no `XBOOTLDR` partition.
Fixes an issue when booting without a `XBOOTLDR` partition and an empty
root partition, since it would mount the `ESP` partition to `/efi/`
unconditionally causing boot entries to not be under `/boot/` as
recommended by the Boot Loader Specification.
Yu Watanabe [Wed, 16 Oct 2024 01:05:46 +0000 (10:05 +0900)]
Merge pull request #34482 from bgurney-rh/alt-nvme-multins-symlink-fix
Pin obsolete NVMe symlinks to namespace 1
Yu Watanabe [Tue, 15 Oct 2024 21:18:57 +0000 (06:18 +0900)]
Merge pull request #34781 from poettering/write-string-rename-full
fileio: write_string_file() naming clean-ups
Yu Watanabe [Tue, 15 Oct 2024 21:15:26 +0000 (06:15 +0900)]
Merge pull request #34719 from poettering/pidref-remote
pidref: add explicit concept of "remote" PidRef
Lennart Poettering [Fri, 11 Oct 2024 15:14:26 +0000 (17:14 +0200)]
json-util: initialize "remote" flag for PidRef when parsing JSON pidref serializations
Now that we have a way to recognize "remoteness" of a PidRef, let's make
sure when we decode a JSON pidref we initialize things that way.
Lennart Poettering [Fri, 11 Oct 2024 09:33:42 +0000 (11:33 +0200)]
pidref: add explicit concept of "remote" PidRef
This PidRef just track some data, but cannot be used for any active
operation.
Background: for https://github.com/systemd/systemd/pull/34703 it makes
sense to track explicitly if some PidRef is not a local one, so that we
never attempt to for example "kill a remote process" and thus
acccidentally hit the wrong process (i.e. a local one by the same PID).
Lennart Poettering [Tue, 15 Oct 2024 13:36:06 +0000 (15:36 +0200)]
debug-generator: create prefix dir of generate unit file
Strictly speaking, it's more correct if we create the prefix path before
writing our unit file.
Lennart Poettering [Tue, 15 Oct 2024 13:35:25 +0000 (15:35 +0200)]
dropin: use WRITE_STRING_FILE_MKDIR_0755 to create drop-in prefix path
Lennart Poettering [Tue, 15 Oct 2024 13:34:35 +0000 (15:34 +0200)]
shared: modernize drop_in_file() a bit
Make the return parameters optional, since we don't actually need them
in all cases (see later commits).
Lennart Poettering [Tue, 15 Oct 2024 13:32:55 +0000 (15:32 +0200)]
fileio: clean up write_string_file() naming
let's rename the "_ts" flavour of these calls "_full" instead, exposing
the full functionality. And then keep two more minimal versions around:
one "_at" (which has the ts parameter suppressed, but keeps the dir_fd
one). And one without suffix (which supresses both).
Do the same for the label versions of these calls.
Luca Boccassi [Tue, 15 Oct 2024 13:05:50 +0000 (14:05 +0100)]
core: do not fail if ignorable img.v/ vpick dir is missing
Do not fail if the directory is missing entirely, other than just empty
Follow-up for
00f546e25e8
Follow-up for
5e79dd96a88
Follow-up for
622efc544dc
Lennart Poettering [Tue, 15 Oct 2024 16:17:06 +0000 (18:17 +0200)]
Merge pull request #34778 from poettering/userdb-error-tweak
userdb: handle userbd replies indicating invalid user/group names like record not found
Bryan Gurney [Tue, 15 Oct 2024 14:22:07 +0000 (10:22 -0400)]
TEST-64-UDEV-STORAGE: test for absence of obsolete NVMe symlink
Signed-off-by: Bryan Gurney <bgurney@redhat.com>
Lennart Poettering [Tue, 15 Oct 2024 12:38:18 +0000 (14:38 +0200)]
Merge pull request #34747 from yuwata/busctl-json-fd
busctl: dump passed fd info
Lennart Poettering [Tue, 15 Oct 2024 11:59:57 +0000 (13:59 +0200)]
userdb: return ESRCH if userdb service refuses a user/group name as invalid
if a userdb service refuse a user/group name as invalid, let's turn this
into ESRCH client-side following that there definitely is no user/group
record for a completely invalid user/group name.
Replaces: #34558
Lennart Poettering [Tue, 15 Oct 2024 11:40:24 +0000 (13:40 +0200)]
sd-varlink: add new sd_varlink_error_is_invalid_parameter() helper
Lennart Poettering [Tue, 15 Oct 2024 09:38:55 +0000 (11:38 +0200)]
network: add AF_TO_ADDRESS_FAMILY() helper
Make some code a bit shorter.
Yu Watanabe [Tue, 15 Oct 2024 08:39:00 +0000 (17:39 +0900)]
machine: add MachineImage interface
Follow-up for
fb0ea6a6a36b5fa97e6c57d608bb9f7acb63c8b2 .
Fixes #34772.
Yu Watanabe [Tue, 15 Oct 2024 11:43:47 +0000 (20:43 +0900)]
Merge pull request #34771 from ZLima12/run0-root-working-directory
run: fix bug causing run0 to ignore `-D /`.
Yu Watanabe [Tue, 15 Oct 2024 11:42:46 +0000 (20:42 +0900)]
Merge pull request #34442 from yuwata/network-dhcp6-information-requesting-ia-pd
network/dhcp6: allow to request IA_PD on information requesting mode
Yu Watanabe [Sun, 13 Oct 2024 04:17:26 +0000 (13:17 +0900)]
busctl: show information of passed file descriptor
Yu Watanabe [Sun, 13 Oct 2024 03:56:10 +0000 (12:56 +0900)]
sd-json: introduce json_variant_new_fd_info()
Currently this is not used, but will be used later.
Yu Watanabe [Tue, 15 Oct 2024 00:15:19 +0000 (09:15 +0900)]
sd-json: introduce json_variant_new_devnum() and friends
Yu Watanabe [Sun, 13 Oct 2024 03:07:25 +0000 (12:07 +0900)]
fs-util: make readlink_malloc() inline
Yu Watanabe [Sun, 13 Oct 2024 04:21:36 +0000 (13:21 +0900)]
busctl: minor coding style cleanups
- rename output parameter of json_transform_and_append(),
- return from call() earlier to reduce indentation,
- add several missing error messages.
John A. Leuenhagen [Tue, 15 Oct 2024 06:00:18 +0000 (02:00 -0400)]
TEST-74-AUX-UTILS: add tests for 'run0 -D'
John A. Leuenhagen [Tue, 15 Oct 2024 04:57:52 +0000 (00:57 -0400)]
run: fix bug causing run0 to ignore `-D /`.
Since the root directory was being suppressed to NULL, the subsequent
check would erroneously think that no working directory was specified.
This caused the default working directory to be applied instead.
Lennart Poettering [Tue, 15 Oct 2024 09:37:39 +0000 (11:37 +0200)]
Merge pull request #34723 from poettering/machined-pidref-more
machined: switch remaining Varlink overs over to use json_dispatch_pidref() and friends
Yu Watanabe [Mon, 16 Sep 2024 02:37:35 +0000 (11:37 +0900)]
network/radv: update comment
DHCPv6PrefixDelegation= is replaced with DHCPPrefixDelegation=.
Yu Watanabe [Sun, 15 Sep 2024 20:12:50 +0000 (05:12 +0900)]
man/network: update example for router upstream interface
This comments out all optional settings.
Yu Watanabe [Sun, 15 Sep 2024 20:03:57 +0000 (05:03 +0900)]
network/dhcp6: process hostname and IA_PD on information requesting mode
Fixes #34299.
Yu Watanabe [Sun, 15 Sep 2024 20:02:06 +0000 (05:02 +0900)]
sd-dhcp6-lease: adjust information refresh time with lifetime of IA_PD
For the case when IRT is too large but lifetime of IA_PD is too short.
Yu Watanabe [Sun, 15 Sep 2024 20:00:57 +0000 (05:00 +0900)]
sd-dhcp6-client: allow to request IA_PD on information requesting mode
To support RFC 7084, WPD-4.
Yu Watanabe [Sun, 15 Sep 2024 19:45:13 +0000 (04:45 +0900)]
Yu Watanabe [Sun, 15 Sep 2024 19:12:02 +0000 (04:12 +0900)]
sd-dhcp6-lease: use free_and_replace_full()
Yu Watanabe [Tue, 15 Oct 2024 08:56:48 +0000 (17:56 +0900)]
Merge pull request #34769 from yuwata/machine-by-name-or-pid
machine: lookup_machine_by_name_or_pid() may return 1 on error and it is already replied
Yu Watanabe [Tue, 15 Oct 2024 05:15:31 +0000 (14:15 +0900)]
man: update documents of "_outbound" addresses
Follow-up for
4adf2653e2a68d4d593b46734fd9e24721a8d449 .
Addresses https://github.com/systemd/systemd/issues/34739#issuecomment-
2412904739 .
Yu Watanabe [Tue, 15 Oct 2024 05:03:02 +0000 (14:03 +0900)]
TEST-13-NSPAWN: several cleanups
- suppress unnecessary error messages, especially in loop and at_exit(),
- ensure the container service is stopped before restarting,
- do not send KILL signal, as garbages will remain, and disturb the next
invocation,
- drop unnecessary workaround of trying machine twice.
Yu Watanabe [Tue, 15 Oct 2024 04:17:29 +0000 (13:17 +0900)]
machine: trivial coding style cleanups
Yu Watanabe [Tue, 15 Oct 2024 04:14:15 +0000 (13:14 +0900)]
machine: fix memleak in vl_method_list_images()
Fixes an issue in
fb0ea6a6a36b5fa97e6c57d608bb9f7acb63c8b2 .
Yu Watanabe [Tue, 15 Oct 2024 02:20:13 +0000 (11:20 +0900)]
machine: lookup_machine_by_name_or_pid() may return 1 on error and it is already replied
Follow-ups for
1bd979dddbb6ed3ffe410d78a7ff80cbb1c42a64 and later
commits.
Fixes #34764.
Yu Watanabe [Tue, 15 Oct 2024 04:06:00 +0000 (13:06 +0900)]
Merge pull request #34752 from yuwata/udev-remove-database-on-remove
udev: remove database file on remove event
Yu Watanabe [Tue, 15 Oct 2024 01:54:58 +0000 (10:54 +0900)]
Merge pull request #34736 from yuwata/network-mtu
network: wait for IPv6 MTU being synced to link MTU
Yu Watanabe [Tue, 15 Oct 2024 01:51:50 +0000 (10:51 +0900)]
Merge pull request #34744 from yuwata/oom-cleanups
oom: sort output of oomctl by cgroup path
Yu Watanabe [Sun, 13 Oct 2024 16:28:23 +0000 (01:28 +0900)]
TEST-17-UDEV: check if udev database file is removed on remove event
Yu Watanabe [Mon, 14 Oct 2024 21:22:24 +0000 (06:22 +0900)]
udev: do not try to lock whole block device on remove event
As another device may be created with the same device node while udevd
is processing the remove event of the previous owner of the device node.
This also adds comment why we skip watching device node on remove.
Yu Watanabe [Tue, 15 Oct 2024 01:48:31 +0000 (10:48 +0900)]
Merge pull request #34755 from YHNdnzj/soft-reboot-generator-cmdline
core/manager: pass soft-reboot count to generators
Mike Yuan [Mon, 14 Oct 2024 16:31:14 +0000 (18:31 +0200)]
hibernate-resume-generator: don't initiate resume if soft-rebooted
This is just paranoia, to ensure that we don't accidentally
initiate resume if the initrd is entered through soft-reboot
rather than the initial one for booting up.
Mike Yuan [Mon, 30 Sep 2024 19:21:53 +0000 (21:21 +0200)]
gpt-auto: use RET_GATHER at one more place
Mike Yuan [Sat, 28 Sep 2024 13:54:42 +0000 (15:54 +0200)]
core/manager: pass soft-reboot count to generators
soft-reboot allows switching into a different root/installation,
i.e. potentially invalidate settings from kernel cmdline and such.
Let's hence inform generators about soft-reboots.
Mike Yuan [Fri, 11 Oct 2024 15:57:06 +0000 (17:57 +0200)]
core/manager: minor cleanup for generator_path_any() and friends
Mike Yuan [Mon, 14 Oct 2024 16:13:35 +0000 (18:13 +0200)]
shared/exec-util: modernize execute_strv() and friends a bit
do_spawn() is also called during execute_strv(), so rename
"direxec" to "exec-inner".
Mike Yuan [Fri, 11 Oct 2024 15:53:34 +0000 (17:53 +0200)]
shared/exec-util: minor rearrangement, drop unused EXEC_DIR_NONE
Mike Yuan [Fri, 11 Oct 2024 16:04:17 +0000 (18:04 +0200)]
basic/stat-util: use xopenat() where appropriate
Yu Watanabe [Sat, 12 Oct 2024 07:43:15 +0000 (16:43 +0900)]
network: wait for IPv6 MTU being synced to link MTU
The kernel resets the IPv6 MTU of an interface when its link MTU is changed.
But it seems the operation is asynchronous, and even when we detect that
the link MTU is changed, the IPv6 MTU may not be reset yet.
====
[ 2257.067613] systemd-networkd[447122]: veth99: MTU is changed: 1500 →1600 (min: 68, max: 65535)
[ 2257.067641] systemd-networkd[447122]: Setting '/proc/sys/net/ipv6/conf/veth99/mtu' to '1410'
[ 2257.067711] systemd-networkd[447122]: No change in value '1410', suppressing write
====
As you can see, even if the link MTU is changed to 1600, the IPv6 MTU is
unchanged (in this case, still 1410).
Yu Watanabe [Sat, 12 Oct 2024 07:45:05 +0000 (16:45 +0900)]
network/sysctl: make link_set_ipv6_mtu() log failures
No functional change, just refactoring.
Yu Watanabe [Mon, 14 Oct 2024 21:52:19 +0000 (06:52 +0900)]
network/route: use sysctl_read_ip_property_int() for reading route/max_size
Yu Watanabe [Sat, 12 Oct 2024 07:40:19 +0000 (16:40 +0900)]
sysctl-util: introduce sysctl_read_ip_property_int() and _uint32()
Currently not used, but will be used later.
Yu Watanabe [Sun, 13 Oct 2024 15:55:43 +0000 (00:55 +0900)]
udev: do not re-create database on remove event
Fixes a bug introduced by
f6bda694f908cc227b002570b893029aa4c9e173 (v256).
With the offending commit, on remove event, database file for a device is once
removed in event_execute_rules_on_remove(), but later re-created here.
This fixes the issue, and makes the database file not re-created on remove event.
Yu Watanabe [Sat, 12 Oct 2024 01:59:12 +0000 (10:59 +0900)]
oomd-util: use FOREACH_ARRAY() more
Yu Watanabe [Tue, 23 Apr 2024 04:15:49 +0000 (13:15 +0900)]
sd-radv: drop sd_radv_prefix and friends, and use sd_ndisc_option to manage NDisc options
No effective functional change, just refactoring.
Yu Watanabe [Mon, 14 Oct 2024 20:58:49 +0000 (05:58 +0900)]
Merge pull request #34738 from behrmann/ukifyoption
ukify: Add a config object
Yu Watanabe [Sat, 12 Oct 2024 20:15:18 +0000 (05:15 +0900)]
TEST-13-NSPAWN: add test for 'machinectl terminate'
This also fixes the test for io.systemd.Machine.Terminate.
When systemd-nspawn@.service receives stop signal, then systemd-nspawn
sends SIGRTMIN+3 to the container, which was previously ignored by the
custom init script used by the container.
Let's introduce another trap for the signal, and correctly handle it.
Follow-up for
164af66f9abdfd8935098d9f10c746ff29dea7df .
Yu Watanabe [Mon, 14 Oct 2024 20:58:03 +0000 (05:58 +0900)]
Merge pull request #34743 from yuwata/bus-message-dump-fd
bus-message-util: introduce bus_message_dump_fd() and _string()
Yu Watanabe [Mon, 14 Oct 2024 20:57:34 +0000 (05:57 +0900)]
Merge pull request #34745 from yuwata/local-outbounds-prefsrc
local-addresses: honor RTA_PREFSRC field of gateway
Gaël PORTAY [Mon, 14 Oct 2024 17:16:07 +0000 (19:16 +0200)]
docs: add a missing : character
This adds the missing colon character to the section systemd-sysusers.
Michiel [Mon, 14 Oct 2024 13:50:36 +0000 (15:50 +0200)]
Fix some typos in socket-util.h
Lennart Poettering [Mon, 14 Oct 2024 09:55:59 +0000 (11:55 +0200)]
man: document preference for secure_getenv() in coding style
Luca Boccassi [Mon, 14 Oct 2024 11:31:03 +0000 (12:31 +0100)]
Merge pull request #34749 from yuwata/network-address-parse-broadcast
network/address: fix parser for Broadcast=
Antonio Alvarez Feijoo [Mon, 14 Oct 2024 10:02:04 +0000 (12:02 +0200)]
updatectl: remove unimplemented option
Lennart Poettering [Mon, 14 Oct 2024 11:27:46 +0000 (13:27 +0200)]
Merge pull request #34623 from ikruglov/ikruglov/io-systemd-Machine-Image
machine: implement varlink interfaces io.systemd.MachineImage.{List, Update}
Lennart Poettering [Fri, 11 Oct 2024 12:03:05 +0000 (14:03 +0200)]
sd-json: drop sd_json_dispatch_pid() again, as we prefer json_dispatch_pidref() now
The calls are now unused, and we generally prefer if people send a PID
triplet rather than a single PID, hence stop supporting a high-level
dispacher for pid_t.
Lennart Poettering [Fri, 11 Oct 2024 11:51:25 +0000 (13:51 +0200)]
machined: port all varlink APIs over to new PidRef serialization
Lennart Poettering [Mon, 14 Oct 2024 10:31:57 +0000 (12:31 +0200)]
pidref: hookup PID_AUTOMATIC special pid_t value with PidRef
The PID_AUTOMATIC value is now properly recognized by the PidRef logic
too. This needed some massaging of header includes, to ensure pidref.h
can access process-util.h's definitions and vice versa.
Lennart Poettering [Mon, 14 Oct 2024 09:51:43 +0000 (11:51 +0200)]
Merge pull request #34716 from dvdhrm/pr/derand
Clarify nameing-scheme in DESKTOP_ENVIRONMENT documentation
Ivan Kruglov [Tue, 8 Oct 2024 15:00:27 +0000 (17:00 +0200)]
machine: tests for varlink interfaces
- io.systemd.MachineImage.List
- io.systemd.MachineImage.Update
Ivan Kruglov [Fri, 11 Oct 2024 12:38:58 +0000 (14:38 +0200)]
machine: listen on io.systemd.MachineImage socket
Ivan Kruglov [Tue, 8 Oct 2024 15:00:11 +0000 (17:00 +0200)]
machine: introduce io.systemd.MachineImage.Update varlink method
io.systemd.MachineImage.Update implements the following dbus org.freedesktop.machine1.Manager interfaces:
- RenameImage
- MarkImageReadOnly
- SetImageLimit
Ivan Kruglov [Tue, 8 Oct 2024 14:58:22 +0000 (16:58 +0200)]
machine: introduce io.systemd.MachineImage.List varlink method
io.systemd.MachineImage.List implements the following dbus org.freedesktop.machine1.Manager interfaces:
- GetImage
- ListImages
- GetImageHostname
- GetImageMachineID
- GetImageMachineInfo
- GetImageOSRelease
Ivan Kruglov [Tue, 8 Oct 2024 09:30:10 +0000 (11:30 +0200)]
machine: generalize rename_image_and_update_cache() logic
This is a prep step to reuse the function in varlink interface
Ivan Kruglov [Wed, 2 Oct 2024 11:21:46 +0000 (13:21 +0200)]
machine: move manager_acquire_image to src/machine/machined-core.c
This is a prep step to reuse the function in varlink interface.
Ivan Kruglov [Tue, 1 Oct 2024 08:04:08 +0000 (10:04 +0200)]
machine: fix misnamed params in src/shared/discover-image.h
Yu Watanabe [Mon, 14 Oct 2024 01:42:25 +0000 (10:42 +0900)]
bash-completion/busctl: support wait command
Follow-up for
30465af656a10c124e7fa9fb33f7ad8454e9af2e .
Jörg Behrmann [Sun, 13 Oct 2024 13:20:44 +0000 (15:20 +0200)]
ukify: Add more mypy options
This achieves parity with the mypy config used in mkosi.
The import of builtins is needed because otherwise type is attempted to be
resolved to the variable in the scope.
Jörg Behrmann [Mon, 14 Oct 2024 07:58:05 +0000 (09:58 +0200)]
ukify: Add UkifyConfig
Using a dataclass instead of an argparse namespace to pass around the parsed
options allows to track the types properly.
Jörg Behrmann [Thu, 10 Oct 2024 09:57:12 +0000 (11:57 +0200)]
ukify: Add a unified interface for signing tools
Jörg Behrmann [Sat, 12 Oct 2024 13:50:57 +0000 (15:50 +0200)]
ukify: Fix type of UKI.executable
Lennart Poettering [Mon, 14 Oct 2024 07:56:47 +0000 (09:56 +0200)]
Merge pull request #34730 from yuwata/boot-efi-follow-ups
boot/efi: several follow-ups for recent change
Yu Watanabe [Sun, 13 Oct 2024 06:17:07 +0000 (15:17 +0900)]
network/address: use config_parse_in_addr_non_null() at one more place
No functional change, just refactoring.
Yu Watanabe [Sun, 13 Oct 2024 06:08:04 +0000 (15:08 +0900)]
network/address: do not set family in config_parse_broadcast()
The family will be checked later in
address_section_verify() -> address_section_adjust_broadcast(),
hence it is not necessary to set here.
Follow-up for
5d15c7b19cae6d3332d4e213c380e0fcc1317a2c .
Fixes oss-fuzz#
372994449 .
Fixes #34748.
Yu Watanabe [Sun, 13 Oct 2024 09:50:48 +0000 (18:50 +0900)]
Merge pull request #34555 from rpigott/busctl-wait
busctl: add wait verb to wait for signals
Ronan Pigott [Wed, 2 Oct 2024 18:57:24 +0000 (11:57 -0700)]
busctl: add a test for busctl wait
Yu Watanabe [Sun, 13 Oct 2024 05:48:35 +0000 (14:48 +0900)]
Merge pull request #34520 from vcaputo/mmap-cache-unused-min
mmap-cache: enforce an unused windows minimum
Ronan Pigott [Thu, 26 Sep 2024 01:42:59 +0000 (18:42 -0700)]
busctl: add wait verb to wait for signals
It's like busctl call, but it waits for a signal rather than a reply to
a method call.
lumingzh [Sun, 13 Oct 2024 00:38:42 +0000 (02:38 +0200)]
po: Translated using Weblate (Chinese (Simplified) (zh_CN))
Currently translated at 100.0% (253 of 253 strings)
Co-authored-by: lumingzh <lumingzh@qq.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/zh_CN/
Translation: systemd/main
Yu Watanabe [Sat, 12 Oct 2024 22:24:08 +0000 (07:24 +0900)]
test: add test for local outbounds with preferred source address
Yu Watanabe [Sat, 12 Oct 2024 21:56:38 +0000 (06:56 +0900)]
local-addresses: honor RTA_PREFSRC field of gateway
Fixes #34739.
Yu Watanabe [Sat, 12 Oct 2024 21:30:58 +0000 (06:30 +0900)]
local-addresses: use FOREACH_ARRAY() macro