Yu Watanabe
bf34d642bc
Merge pull request #34669 from bluca/semaphore
...
Update mkosi debian ref and try to speed up semaphore build
2024-10-08 14:42:26 +09:00
Yu Watanabe
14dde316c7
sd-json: use sd_json_dispatch_const_string() in sd_json_dispatch_string()
...
Also, do similar for json_dispatch_user_group_name().
2024-10-07 09:53:36 +02:00
Yu Watanabe
f769518c9a
tree-wide: drop doubled empty lines
2024-10-07 09:51:37 +02:00
Yu Watanabe
1faf2e5332
network: use Network.name for bus path
...
No functional change, just refactoring.
2024-10-07 09:48:57 +02:00
Yu Watanabe
a02166297c
networkctl: sort ifindexes in status command
...
Before:
$ networkctl status
● Interfaces: 372, 368, 373, 375, 376, 377, 378, 379, 381, 391, 3, 1201, 1202, 1184, 1610, 9, 8, 1340, 2, 1, 1256, 7
After:
$ networkctl status
● Interfaces: 1, 2, 3, 7, 8, 9, 368, 372, 373, 375, 376, 377, 378, 379, 381, 391, 1184, 1201, 1202, 1256, 1340, 1610
2024-10-07 09:48:00 +02:00
Yu Watanabe
dd9a02ce88
homectl: drop unnecessary brackets
...
Follow-up for 164ca24d74 .
2024-10-07 09:01:57 +02:00
Yu Watanabe
ec846d9db3
Merge pull request #34491 from AdrianVovk/sysupdate-fixups
...
Quick sysupdate fixups
2024-10-07 15:38:58 +09:00
Yu Watanabe
51e905b9fa
Merge pull request #34408 from Werkov/fix-device-limits
...
core/cgroup: Apply IODevice*= directives in configured order
2024-10-07 14:05:44 +09:00
Yu Watanabe
96067f7669
udev-node: introduce node_remove_symlink()
...
Also
- make the failure propagated,
- remove /dev/block or /dev/char if empty.
Hopefully, no effective functionality changed. Just refactoring.
2024-10-07 09:56:26 +09:00
Yu Watanabe
2a41b4b0f4
udev-node: rename node_symlink() -> node_create_symlink()
...
Also adds short comment for the NULL arguments.
No functional change, just refactoring.
2024-10-07 09:56:26 +09:00
Yu Watanabe
88d186e482
test: add test case for issue #34637
2024-10-07 09:56:26 +09:00
Yu Watanabe
09373c1a50
udev-node: skip stack directory creation for diskseq
...
The disk/by-diskseq symlink should not be shared with multiple block
devices. Hence, it is not necessary to create stack directory for the
symlink that manages which device owns the symlink.
This is not just a optimization.
If a service unit tries to mount a disk image but the service fails, then
the diskseq of the loop device for the image may be continuously increased
during restart, and inodes in /run may increase rapidly, as the stack
directories are cleaned up only when udev queue is empty.
Fixes #34637 .
2024-10-07 09:56:26 +09:00
Yu Watanabe
bba5f48acf
TODO: fix typo
...
Follow-up for 26e6986527 .
2024-10-07 09:54:00 +09:00
Yu Watanabe
ffe967c598
Merge pull request #34432 from YHNdnzj/path-lookup-refactor
...
path-lookup: several cleanups
2024-10-07 09:31:47 +09:00
Yu Watanabe
61c7f38f10
Merge pull request #34638 from YHNdnzj/laccess-error-check
...
various: correct laccess() error check
2024-10-06 13:50:11 +09:00
Yu Watanabe
82f2c33db5
tpm2-util: show loaded libraries in 'systemd-analyze has-tpm2'
...
After 3b16e9f419 , even the libraries are
documented in the man page, it is useful to mention which libraries are
checked in the command output.
Of course, the dependencies are kind of implementation detail, and may
be changed in the future version, but that's especially why I think
showing the library deps in the output is useful.
systemd-analyze is a debugging tool, and already shows many internal
states. I think there is nothing to prevent from showing the deps.
Prompted by #34477 .
2024-09-30 15:40:14 +02:00
Yu Watanabe
4046c49c13
Merge pull request #34549 from weblate/weblate-systemd-main
...
Translations update from Fedora Weblate
2024-09-25 06:49:48 +02:00
Yu Watanabe
bfa834f138
Merge pull request #34511 from YHNdnzj/strv-extend-strv-consume
...
basic/strv: introduce strv_extend_strv_consume()
2024-09-21 13:57:02 +09:00
Yu Watanabe
f48bc69ca1
Merge pull request #34502 from yuwata/strv_find_closest
...
strv: introduce strv_find_closest()
2024-09-21 13:56:34 +09:00
Yu Watanabe
0f03562d97
Merge pull request #34515 from YHNdnzj/machined-machines-by
...
machined: modernize a bit
2024-09-21 13:53:41 +09:00
Yu Watanabe
3ae0e54527
machine: fix bus method argument name: who -> whom
...
Follow-up for cd2fb04960 .
2024-09-21 05:38:01 +09:00
Yu Watanabe
07919a1857
verbs: use strv_find_closest()
...
This also makes the list of verbs is always shown on failure.
2024-09-21 05:10:47 +09:00
Yu Watanabe
ffdf497860
strv: introduce strv_find_closest()
...
Follow-up for 1e1ac5d53b .
2024-09-21 05:06:12 +09:00
Yu Watanabe
427848ffd0
Merge pull request #34510 from keszybz/mkosi-version-checks
...
Bump minimum required mkosi version
2024-09-21 03:16:25 +09:00
Yu Watanabe
146b44d0a0
sd-ipv4acd: fix assertion triggered when an ARP received in STARTED state
...
When a network is busy, an ARP may be received before the timer event
source triggered first time.
Fixes #34489 .
2024-09-20 14:21:42 +02:00
Yu Watanabe
72689baf48
Merge pull request #34499 from YHNdnzj/sd-path-trivial-cleanup
...
sd-path: trivial cleanups
2024-09-20 08:54:51 +09:00
Yu Watanabe
fc19ad8227
Merge pull request #34496 from YHNdnzj/tmpfiles-neg-errno
...
tmpfiles: ERRNO_IS_NOINFO -> _IS_NEG_, correct negative errno checks
2024-09-20 08:54:34 +09:00
Yu Watanabe
754d6414f8
Merge pull request #34480 from yuwata/test-seccomp-suppress-sync
...
seccomp-util: pass negative fds as is to fsync() and friends
2024-09-20 08:27:33 +09:00
Yu Watanabe
c07e10628b
test: add tests for seccomp_suppress_sync()
2024-09-20 04:32:56 +09:00
Yu Watanabe and Mike Yuan
144fbbac23
seccomp-util: pass negative fds as is to fsync() and friends
...
Closes #34478 .
Co-authored-by: Mike Yuan <me@yhndnzj.com >
2024-09-20 04:30:53 +09:00
Yu Watanabe
a3c2a9ee5d
Merge pull request #34486 from DaanDeMeyer/test-process-util
...
test-process-util: Migrate to new assertion macros
2024-09-19 23:28:15 +09:00
Yu Watanabe
3b16e9f419
man/systemd-analyze: mention required libraries for TPM2 support
...
Closes #34477 .
2024-09-19 19:21:08 +09:00
Yu Watanabe
d5a7f3b7d4
tpm2-util: colorize output of 'systemd-analyze has-tpm2'
2024-09-19 19:14:19 +09:00
Yu Watanabe
f1c16ca6d6
shell-completion/analyze: add has-tpm2
2024-09-19 19:08:49 +09:00
Yu Watanabe
b094398b0f
tpm2-util: update comment
...
has-tpm2 command is moved to systemd-analyze.
Follow-up for 58e359604f .
2024-09-19 19:08:10 +09:00
Yu Watanabe
1ee6570843
tpm2-util: do not load tpm2 libraries when not interested in the existence of the libraries
...
For example, 'bootctl status' only interested in if the efi has TPM2
support and a TPM2 driver is loaded. Hence, not necessary to load
libtss2.
2024-09-19 19:06:46 +09:00
Yu Watanabe
b7f051c91d
tpm2-util: introduce tpm2_is_fully_supported()
2024-09-19 19:04:15 +09:00
Yu Watanabe
a13ead6814
Merge pull request #34479 from yuwata/sd-json-dispatch-field-table-static
...
tree-wide: make sd_json_dispatch_field table static
2024-09-19 18:59:17 +09:00
Yu Watanabe
f901a7b39f
network/nexthop: introduce generic conf parser for [NextHop] section
2024-09-19 18:41:47 +09:00
Yu Watanabe
9b01cf0406
network/nexthop: make conf parsers for Family= and Gateway= independent of each other
2024-09-19 18:41:46 +09:00
Yu Watanabe
d5aae0713d
network/nexthop: use log_section_warning() and friend
2024-09-19 18:40:38 +09:00
Yu Watanabe
2bcc2a89f3
test: create .netdev file at last
...
Previously, when the test ran on mkosi, then networkd was not masked, and
might be already started. In that case, the interface test2 would be created
soon after the .netdev file is created, and the .link file would not be
applied to the interface. Hence, the later test case for
'networkctl cat @test2:link' would fail.
This make networkd always started at the beginning of the test, and
.netdev file created after .link file is created. So, .link file is
always applied to the interface created by the .netdev file.
2024-09-19 14:50:10 +09:00
Yu Watanabe
07e6a111c0
man: fix typo
...
Follow-up for 8aee931e7a .
2024-09-19 09:18:47 +09:00
Yu Watanabe
c2648f6e23
efi: fix typo
...
Follow-up for f4e081051d .
2024-09-19 09:14:25 +09:00
Yu Watanabe
8d6eedd8a3
network/neighbor: use log_section_warning_errno()
2024-09-19 04:03:11 +09:00
Yu Watanabe
91eaa90b81
network/neighbor: introduce generic Neighbor section parser
2024-09-19 03:59:34 +09:00
Yu Watanabe
3b5c5da73a
network/neighbor: use struct in_addr_data
2024-09-19 03:58:28 +09:00
Yu Watanabe
1775654e2c
conf-parser: drop unnecessary temporary variable
2024-09-19 03:39:15 +09:00
Yu Watanabe
0ea6d55a4b
conf-parser: introduce config_parse_in_addr_data()
2024-09-19 03:38:22 +09:00
Yu Watanabe
26d35019de
tree-wide: drop unnecessary 'struct'
2024-09-19 01:34:57 +09:00
Yu Watanabe
b962338104
nsresource: make sd_json_dispatch_field table static
...
This also adds missing error check of sd_json_dispatch().
Follow-up for 54452c7b2a .
2024-09-19 01:34:57 +09:00
Yu Watanabe
fae0b00434
creds-util: make sd_json_dispatch_field table static
2024-09-19 01:34:57 +09:00
Yu Watanabe
f7923ef318
resolve: make sd_json_dispatch_field table static
2024-09-19 01:34:57 +09:00
Yu Watanabe
36df48d863
resolvectl: make sd_json_dispatch_field table static
2024-09-19 01:34:57 +09:00
Yu Watanabe
53c638db16
updatectl: make sd_json_dispatch_field table static
...
This also fixes memory leak of Version object on failure.
Follow-up for ec15bb71c2 .
2024-09-19 01:34:57 +09:00
Yu Watanabe
751a247794
varlinkctl: make sd_json_dispatch_field table static
2024-09-19 01:34:56 +09:00
Yu Watanabe
07dbbda0fc
ssh-generator: make sd_json_dispatch_field table static
2024-09-19 01:34:56 +09:00
Yu Watanabe
ed4a6c476e
machine: make sd_json_dispatch_field table static
2024-09-19 01:34:56 +09:00
Yu Watanabe
13f6ec7ce7
test: quote paths to executables
...
Fixes #34459 .
2024-09-18 09:47:04 +09:00
Yu Watanabe
6e1816ef16
kernel-install: unquote plugin paths in KERNEL_INSTALL_PLUGINS
...
To support the case that paths to plugins contain spaces.
Prompted by #34459
2024-09-18 09:47:00 +09:00
Yu Watanabe
7ac1ad90d0
Merge pull request #34460 from yuwata/test-86-follow-ups
...
test: follow-ups for TEST-86
2024-09-18 09:31:17 +09:00
Yu Watanabe
4f2975385f
Merge pull request #34040 from AdrianVovk/repart-dollar-boot
...
repart: Implement $BOOT support
2024-09-18 05:09:20 +09:00
Yu Watanabe
fc956a3973
network/dhcp4: use device_get_property_bool() at link_needs_dhcp_broadcast()
...
No functional change, just refactoring.
2024-09-17 21:03:59 +02:00
Yu Watanabe
d265b8afb7
test: drop unused test.sh for TEST-86-MULTI-PROFILE-UKI
...
The test cannot run with the bash test runner, as it requires python.
Hence, test.sh is not necessary.
Follow-up for a37640653c .
2024-09-18 04:00:05 +09:00
Yu Watanabe
1aab0a5b10
test: minor coding style fixlets
...
Follow-up for a37640653c .
2024-09-18 03:50:46 +09:00
Yu Watanabe
b0dbb4aa3a
Merge pull request #34457 from poettering/uki-with-many-testcase
...
multi-profile UKIs: test case
2024-09-18 03:48:45 +09:00
Yu Watanabe
a95ae2d36a
conf-parser: use hashmap_ensure_put() at one more place
2024-09-18 03:13:47 +09:00
Yu Watanabe
be8e4b1a87
conf-parser: log errors in config_parse_many_files() and friends
...
Previously, if an file cannot be opened, e.g. due to its permission,
config_parse_many() or so did not log the error even if CONFIG_PARSE_WARN
flag is set. This makes all error paths in these functions are logged,
and the log level is controlled by the flag.
Prompted by #34436 .
2024-09-18 03:13:25 +09:00
Yu Watanabe
572d031eca
log: introduce log_oom_full()
2024-09-18 02:50:19 +09:00
Yu Watanabe
25da422bd1
network: log loaded .network and .netdev files
2024-09-18 02:35:28 +09:00
Yu Watanabe
5872ea7008
network: log when no matching .network file found
...
When an interface enters unmanaged state, there are two possibilities:
- no matching .network file found,
- found a matching .network with Unmanaged=yes.
When a matching .network file is found, networkd logs the filename.
Let's also log when no matching .network file is found.
This also slightly adjust the log message when a matching .network file
found.
Closes #34436 .
2024-09-18 02:27:13 +09:00
Yu Watanabe
a7afe5a3e7
Merge pull request #34443 from yuwata/network-sysctl-monitor-follow-ups
...
network/sysctl-monitor: several follow-ups and cleanups
2024-09-17 19:15:12 +09:00
Yu Watanabe
a65b864835
docs: fix typo in filename: REATLIME -> REALTIME
2024-09-17 10:21:54 +02:00
Yu Watanabe
9959681a0d
test/repart: fix mkfs checker
...
Follow-up for 27cacec939 .
2024-09-17 10:15:21 +02:00
Yu Watanabe
4d6ad22f8d
network: drop unnecessary BPF related objects from Manager when disabled
2024-09-17 15:00:06 +09:00
Yu Watanabe
099ee34ca1
network/sysctl-monitor: do not allocate sysctl_shadow when eBPF is not supported
...
When eBPF is disabled, the hashmap will be never used. Let's not
allocate it.
2024-09-17 14:53:29 +09:00
Yu Watanabe
a2fbe9f3f9
network/sysctl-monitor: fix use-after-free
...
Previously, manager_free() did not assign NULL to Manager.sysctl_shadow,
hence sysctl_clear_link_shadows() called by link_free() will causes
use-after-free. To fix the issue, this makes Manager.sysctl_shadow will be
set to NULL after it is freed,
Fixes a bug introduced by 6d9ef22acd .
2024-09-16 15:12:47 +09:00
Yu Watanabe
7c778cecdb
network/sysctl: several cleanups for sysctl_add_monitor()
...
- rename rootcg -> root_cgroup_fd, to emphasize it is a fd,
- drop nested function call, and check error code.
2024-09-16 14:36:54 +09:00
Yu Watanabe
46718d344f
bpf-link: introduce bpf_ring_buffer_free() and friends
...
Then, replace rb_free() in networkd.
Follow-up for 6d9ef22acd .
2024-09-16 14:36:54 +09:00
Yu Watanabe
9295c7ae09
network/sysctl: use wrapped free functions
...
No functional change, just refactoring.
Follow-up for 6d9ef22acd .
2024-09-16 14:36:54 +09:00
Yu Watanabe
41afafbf2a
network/sysctl-monitor: fix sanity check in cut_last()
...
This also adds basic comment about the return code.
Follow-up for 6d9ef22acd .
2024-09-16 14:36:54 +09:00
Yu Watanabe
9671efff78
NEWS: fix typo
...
Follow-up for dcc359010c .
2024-09-16 11:50:48 +09:00
Yu Watanabe
4f0bc2582e
man: fix typo
...
Follow-up for a632d8dd9f .
2024-09-16 11:49:04 +09:00
Yu Watanabe
3292120adf
nspawn: fix typo
...
Follow-up for d7a6bb9891 .
2024-09-16 11:47:43 +09:00
Yu Watanabe
f6cc5e1c8d
Merge pull request #34393 from poettering/tmpfiles-ownership-flag
...
tmpfiles: introduce an explicit line flag $ for enabling purge logic …
2024-09-16 10:51:09 +09:00
Yu Watanabe
590f430cac
Merge pull request #34425 from yuwata/udev-rules-case-insensitive-match
...
udev-rules: support case insensitive match
2024-09-16 10:42:37 +09:00
Yu Watanabe
b5ec8f77e0
Merge pull request #34434 from poettering/bootctl-stub-paths
...
bootctl: expose new stub path efi vars and related
2024-09-16 10:41:24 +09:00
Yu Watanabe and Ryan Wilson
5f5c5c48b9
udev-rules: support case insensitive match
...
This introduces 'i' prefix for match string. When specified, string or
pattern will match case-insensitively.
Closes #34359 .
Co-authored-by: Ryan Wilson <ryantimwilson@meta.com >
2024-09-15 23:09:26 +09:00
Yu Watanabe
68fdef46a7
udev-rules: embed UdevRuleToken.attr_match_remove_trailing_whitespace flag into UdevRuleMatchType
...
No functional change, just refactoring and preparation for later change.
2024-09-15 13:52:50 +09:00
Yu Watanabe
f921e7d6a3
Merge pull request #34419 from yuwata/creds
...
creds: several follow-ups and cleanups
2024-09-15 12:15:57 +09:00
Yu Watanabe
d97c672be0
Merge pull request #34405 from poettering/dns-domain-validate-fix
...
dns-domain: fix validation check for max name
2024-09-15 03:33:12 +09:00
Yu Watanabe
60b2ddc9b7
creds: move -h/--help and --version to correct section in the help message
2024-09-15 03:22:13 +09:00
Yu Watanabe
6c38915d35
creds: add short comment that has-tpm2 is moved
...
Follow-up for 58e359604f .
2024-09-15 03:22:04 +09:00
Yu Watanabe
acdfb85d97
creds: align table
2024-09-15 03:19:21 +09:00
Yu Watanabe
4f176f24d6
creds: drop unnecessary include of build-path.h
...
Follow-up for 58e359604f .
2024-09-15 03:18:46 +09:00
Yu Watanabe
fd0958762a
man: add basic documents for org.freedesktop.timesync1
...
Closes #34352 .
2024-09-11 04:42:50 +09:00
Yu Watanabe
4a851db694
timesync: add support of basic command line options
2024-09-11 04:08:06 +09:00
Yu Watanabe
40108953c5
timesync: use BusObjectImplementation
2024-09-11 04:03:57 +09:00
Yu Watanabe
08491c0cdf
Merge pull request #34331 from yuwata/network-netdev-cleanups
...
network/netdev: several cleanups for attaching/detaching netdev, and setting/getting ifindex from netdev
2024-09-10 22:05:55 +09:00
Yu Watanabe
8f28d34246
test-network: add test more cases for assigned units for each interface
2024-09-10 19:30:17 +09:00