Yu Watanabe
7edfbf4130
network/sysctl: make link_set_ipv6_mtu() log failures
...
No functional change, just refactoring.
2024-10-15 06:53:01 +09:00
Yu Watanabe
ea684ccb6d
network/route: use sysctl_read_ip_property_int() for reading route/max_size
2024-10-15 06:52:19 +09:00
Yu Watanabe
d56d07fc1e
sysctl-util: introduce sysctl_read_ip_property_int() and _uint32()
...
Currently not used, but will be used later.
2024-10-15 06:42:12 +09:00
Yu Watanabe
5b2dce150d
udev: do not re-create database on remove event
...
Fixes a bug introduced by f6bda694f9 (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.
2024-10-15 06:32:39 +09:00
Yu Watanabe
d4ad878b9a
oomd-util: use FOREACH_ARRAY() more
2024-10-15 06:02:39 +09:00
Yu Watanabe
098f32e2a1
sd-radv: drop sd_radv_prefix and friends, and use sd_ndisc_option to manage NDisc options
...
No effective functional change, just refactoring.
2024-10-15 05:59:20 +09:00
Yu Watanabe
f121d8179a
Merge pull request #34738 from behrmann/ukifyoption
...
ukify: Add a config object
2024-10-15 05:58:49 +09:00
Yu Watanabe
841988f80d
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 164af66f9a .
2024-10-15 05:58:25 +09:00
Yu Watanabe
c9dea52941
Merge pull request #34743 from yuwata/bus-message-dump-fd
...
bus-message-util: introduce bus_message_dump_fd() and _string()
2024-10-15 05:58:03 +09:00
Yu Watanabe
40fbde9571
Merge pull request #34745 from yuwata/local-outbounds-prefsrc
...
local-addresses: honor RTA_PREFSRC field of gateway
2024-10-15 05:57:34 +09:00
Gaël PORTAY
8ef5ea2bf6
docs: add a missing : character
...
This adds the missing colon character to the section systemd-sysusers.
2024-10-14 20:11:44 +01:00
Michiel
2053182bd1
Fix some typos in socket-util.h
2024-10-14 16:09:41 +02:00
Lennart Poettering
c9b477415a
man: document preference for secure_getenv() in coding style
2024-10-14 12:31:37 +01:00
Luca Boccassi
4881dd5cf5
Merge pull request #34749 from yuwata/network-address-parse-broadcast
...
network/address: fix parser for Broadcast=
2024-10-14 12:31:03 +01:00
Antonio Alvarez Feijoo
5b9de8adef
updatectl: remove unimplemented option
2024-10-14 13:30:46 +02:00
Lennart Poettering
8c7c016635
Merge pull request #34623 from ikruglov/ikruglov/io-systemd-Machine-Image
...
machine: implement varlink interfaces io.systemd.MachineImage.{List, Update}
2024-10-14 13:27:46 +02:00
Lennart Poettering
625f109604
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.
2024-10-14 12:47:17 +02:00
Lennart Poettering
6bca1a7c6c
machined: port all varlink APIs over to new PidRef serialization
2024-10-14 12:47:17 +02:00
Lennart Poettering
de34ec188c
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.
2024-10-14 12:44:36 +02:00
Lennart Poettering
8d24b2f017
Merge pull request #34716 from dvdhrm/pr/derand
...
Clarify nameing-scheme in DESKTOP_ENVIRONMENT documentation
2024-10-14 11:51:43 +02:00
Ivan Kruglov
62593c6abb
machine: tests for varlink interfaces
...
- io.systemd.MachineImage.List
- io.systemd.MachineImage.Update
2024-10-14 11:09:18 +02:00
Ivan Kruglov
84d7447a88
machine: listen on io.systemd.MachineImage socket
2024-10-14 11:09:18 +02:00
Ivan Kruglov
7809bd3ba7
machine: introduce io.systemd.MachineImage.Update varlink method
...
io.systemd.MachineImage.Update implements the following dbus org.freedesktop.machine1.Manager interfaces:
- RenameImage
- MarkImageReadOnly
- SetImageLimit
2024-10-14 11:09:18 +02:00
Ivan Kruglov
fb0ea6a6a3
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
2024-10-14 10:57:36 +02:00
Ivan Kruglov
dd2d5952c9
machine: generalize rename_image_and_update_cache() logic
...
This is a prep step to reuse the function in varlink interface
2024-10-14 10:42:47 +02:00
Ivan Kruglov
ad0d4f9a4c
machine: move manager_acquire_image to src/machine/machined-core.c
...
This is a prep step to reuse the function in varlink interface.
2024-10-14 10:42:47 +02:00
Ivan Kruglov
4439679892
machine: fix misnamed params in src/shared/discover-image.h
2024-10-14 10:42:47 +02:00
Yu Watanabe
f80d6b9304
bash-completion/busctl: support wait command
...
Follow-up for 30465af656 .
2024-10-14 09:39:38 +01:00
Jörg Behrmann
467d21a710
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.
2024-10-14 09:59:25 +02:00
Jörg Behrmann
f1b6430ecf
ukify: Add UkifyConfig
...
Using a dataclass instead of an argparse namespace to pass around the parsed
options allows to track the types properly.
2024-10-14 09:59:25 +02:00
Jörg Behrmann
02eabaffe9
ukify: Add a unified interface for signing tools
2024-10-14 09:59:25 +02:00
Jörg Behrmann
929d6225b2
ukify: Fix type of UKI.executable
2024-10-14 09:59:25 +02:00
Lennart Poettering
ab826c4647
Merge pull request #34730 from yuwata/boot-efi-follow-ups
...
boot/efi: several follow-ups for recent change
2024-10-14 09:56:47 +02:00
Yu Watanabe
81fd92809d
network/address: use config_parse_in_addr_non_null() at one more place
...
No functional change, just refactoring.
2024-10-14 08:10:35 +09:00
Yu Watanabe
6f639b2555
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 5d15c7b19c .
Fixes oss-fuzz#372994449.
Fixes #34748 .
2024-10-14 08:10:30 +09:00
Yu Watanabe
4a7fd9d1d5
Merge pull request #34555 from rpigott/busctl-wait
...
busctl: add wait verb to wait for signals
2024-10-13 18:50:48 +09:00
Ronan Pigott
20c0711d8e
busctl: add a test for busctl wait
2024-10-12 23:21:37 -07:00
Yu Watanabe
709fdcc75a
Merge pull request #34520 from vcaputo/mmap-cache-unused-min
...
mmap-cache: enforce an unused windows minimum
2024-10-13 14:48:35 +09:00
Ronan Pigott
30465af656
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.
2024-10-12 19:30:56 -07:00
lumingzh
ee105218ad
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
2024-10-13 10:20:05 +09:00
Yu Watanabe
0343ef9764
test: add test for local outbounds with preferred source address
2024-10-13 07:25:59 +09:00
Yu Watanabe
4adf2653e2
local-addresses: honor RTA_PREFSRC field of gateway
...
Fixes #34739 .
2024-10-13 06:56:41 +09:00
Yu Watanabe
418641f73f
local-addresses: use FOREACH_ARRAY() macro
2024-10-13 06:30:58 +09:00
Yu Watanabe
4169cad876
sha256: use memory-util-fundamental.h
...
Prompted by https://github.com/systemd/systemd/pull/34722#discussion_r1797352922 .
2024-10-13 05:57:29 +09:00
Yu Watanabe
c16d297e79
boot/efi/log: always include filename, line, and function in log message
...
Then, drop unused log_trace().
2024-10-13 05:51:23 +09:00
Yu Watanabe
5254c687d0
boot/efi/smbios: initialize output parameters if entries not found
2024-10-13 05:51:23 +09:00
Yu Watanabe
f87e02ba3f
boot/efi: trivial coding style cleanups
...
Follow-ups for #34717 and #34718 .
2024-10-13 05:51:23 +09:00
Yu Watanabe
c678159f2e
oomctl: sort contexts with cgroup path
2024-10-13 05:45:04 +09:00
Yu Watanabe
058bccbecb
bus-message-util: introduce bus_message_dump_fd() and _string()
...
Then, use them in analyze and oomctl.
2024-10-13 05:44:19 +09:00
Yu Watanabe
72e05e44f8
analyze: fall back to simple method from dump_patterns() and friends
...
No functional change, just refactoring.
2024-10-13 05:44:19 +09:00