]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
2 weeks agomake-man-index: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 17:11:19 +0000 (02:11 +0900)] 
make-man-index: apply "ruff format"

2 weeks agomake-directive-index: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 17:11:03 +0000 (02:11 +0900)] 
make-directive-index: apply "ruff format"

2 weeks agolist-discoverable-partitions: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 17:10:48 +0000 (02:10 +0900)] 
list-discoverable-partitions: apply "ruff format"

2 weeks agogenerate-gperfs: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 17:10:14 +0000 (02:10 +0900)] 
generate-gperfs: apply "ruff format"

2 weeks agogdb-sd_dump_hashmaps: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 17:10:00 +0000 (02:10 +0900)] 
gdb-sd_dump_hashmaps: apply "ruff format" and "ruff check --fix"

2 weeks agofind-unused-library-symbols: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 17:09:45 +0000 (02:09 +0900)] 
find-unused-library-symbols: apply "ruff format" and "ruff check --fix"

2 weeks agofetch-mkosi: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 17:09:19 +0000 (02:09 +0900)] 
fetch-mkosi: apply "ruff format" and "ruff check --fix"

This also makes CONFIG is closed when not necessary.

2 weeks agofetch-distro: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 17:09:04 +0000 (02:09 +0900)] 
fetch-distro: apply "ruff format"

2 weeks agoelf2efi: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 17:08:46 +0000 (02:08 +0900)] 
elf2efi: apply "ruff format" and "ruff check --fix"

2 weeks agodump-auxv: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 17:07:28 +0000 (02:07 +0900)] 
dump-auxv: apply "ruff format"

2 weeks agodbus-exporter: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 17:06:56 +0000 (02:06 +0900)] 
dbus-exporter: apply "ruff format" and "ruff check --fix"

2 weeks agocheck-version-history: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 17:04:33 +0000 (02:04 +0900)] 
check-version-history: apply "ruff format" and "ruff check --fix"

2 weeks agocheck-efi-alignment: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 17:04:20 +0000 (02:04 +0900)] 
check-efi-alignment: apply "ruff format"

2 weeks agocatalog-report: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 17:03:56 +0000 (02:03 +0900)] 
catalog-report: apply "ruff format"

2 weeks agoanalyze-dump-sort: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 17:03:44 +0000 (02:03 +0900)] 
analyze-dump-sort: apply "ruff format"

2 weeks agoTEST-69-SHUTDOWN: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 17:03:17 +0000 (02:03 +0900)] 
TEST-69-SHUTDOWN: apply "ruff format"

2 weeks agotest-udev: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 17:02:48 +0000 (02:02 +0900)] 
test-udev: apply "ruff format" and "ruff check --fix"

2 weeks agotest-tmpfiles: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 17:02:36 +0000 (02:02 +0900)] 
test-tmpfiles: apply "ruff format" and "ruff check --fix"

This also dropped unnecessary existence check for subprocess.run.

2 weeks agotest-shutdown: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 17:02:20 +0000 (02:02 +0900)] 
test-shutdown: apply "ruff format"

2 weeks agotest-network: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 17:02:04 +0000 (02:02 +0900)] 
test-network: apply "ruff format" and "ruff check --fix"

2 weeks agotest-network: drop old ip command support
Yu Watanabe [Sat, 21 Feb 2026 20:25:49 +0000 (05:25 +0900)] 
test-network: drop old ip command support

2 weeks agotest-network: assume the test is running with newer udevd
Yu Watanabe [Sat, 21 Feb 2026 20:15:44 +0000 (05:15 +0900)] 
test-network: assume the test is running with newer udevd

2 weeks agotest-network: drop old kernel support and workaround for fixed kernel bug
Yu Watanabe [Fri, 20 Feb 2026 19:40:36 +0000 (04:40 +0900)] 
test-network: drop old kernel support and workaround for fixed kernel bug

- l3mdev in fib rules is supported since
https://github.com/torvalds/linux/commit/96c63fa7393d0a346acfe5a91e0c7d4c7782641b (v4.8).
- uid range in fib rules is supported since
https://github.com/torvalds/linux/commit/622ec2c9d52405973c9f1ca5116eb1c393adfc7d (v4.10).
- port range and ip proto in fib rules is supported since
https://github.com/torvalds/linux/commit/bfff4862653bb96001ab57c1edd6d03f48e5f035 (v4.17).
- interface alternative name is supported since
https://github.com/torvalds/linux/commit/36fbf1e52bd3ff8a5cb604955eedfc9350c2e6cc (v5.5).
- SRIOV on netdevsim is supported since
https://github.com/torvalds/linux/commit/79579220566cd33fe3b15ce8249c57e10251b258 (4.16).
- nexthop is supported since
https://github.com/torvalds/linux/commit/65ee00a9409f751188a8cdc0988167858eb4a536 (v5.3).
- bridge MDB entries on bridge master is supported since
https://github.com/torvalds/linux/commit/1bc844ee0faa1b92e3ede00bdd948021c78d7088 (v5.4).

2 weeks agosys-script: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Wed, 25 Feb 2026 15:40:08 +0000 (00:40 +0900)] 
sys-script: apply "ruff format" and "ruff check --fix"

2 weeks agosd-script: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 17:00:40 +0000 (02:00 +0900)] 
sd-script: apply "ruff format" and "ruff check --fix"

2 weeks agorun-unit-tests: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 17:00:21 +0000 (02:00 +0900)] 
run-unit-tests: apply "ruff format"

2 weeks agorule-syntax-check: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 16:59:51 +0000 (01:59 +0900)] 
rule-syntax-check: apply "ruff format" and "ruff check --fix"

2 weeks agonetworkd-test: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 16:59:13 +0000 (01:59 +0900)] 
networkd-test: apply "ruff format" and "ruff check --fix"

2 weeks agoTEST-04-JOURNAL: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 16:58:16 +0000 (01:58 +0900)] 
TEST-04-JOURNAL: apply "ruff format"

2 weeks agogenerate-directives: apply "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 17:42:27 +0000 (02:42 +0900)] 
generate-directives: apply "ruff check --fix"

2 weeks agocreate-sys-script: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 16:57:35 +0000 (01:57 +0900)] 
create-sys-script: apply "ruff format" and "ruff check --fix"

2 weeks agotest_ukify: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 16:56:52 +0000 (01:56 +0900)] 
test_ukify: apply "ruff format"

Also drops unnecessary noqa attribute for importing pefile.

2 weeks agogenerate-syscall-list: apply "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 17:35:03 +0000 (02:35 +0900)] 
generate-syscall-list: apply "ruff check --fix"

2 weeks agogenerate-dns_type: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 16:56:07 +0000 (01:56 +0900)] 
generate-dns_type: apply "ruff format" and "ruff check --fix"

2 weeks agoethtool-link-mode: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 16:55:31 +0000 (01:55 +0900)] 
ethtool-link-mode: apply "ruff format"

2 weeks agolog-generator: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 16:54:49 +0000 (01:54 +0900)] 
log-generator: apply "ruff format" and "ruff check --fix"

2 weeks agogenerate-syscall: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 16:54:24 +0000 (01:54 +0900)] 
generate-syscall: apply "ruff format" and "ruff check --fix"

Also, this makes opened files closed when not necessary.

2 weeks agofuzz-bootspec: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 16:53:29 +0000 (01:53 +0900)] 
fuzz-bootspec: apply "ruff format"

This also replaces open().read() with Path().read_text().

Co-authored-by: Jörg Behrmann <behrmann@physik.fu-berlin.de>
2 weeks agofilesystem-sets: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 16:52:37 +0000 (01:52 +0900)] 
filesystem-sets: apply "ruff format" and "ruff check --fix"

2 weeks agoman/notify-example: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 16:50:59 +0000 (01:50 +0900)] 
man/notify-example: apply "ruff format"

2 weeks agoman/check-os-release: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 16:50:19 +0000 (01:50 +0900)] 
man/check-os-release: apply "ruff format"

2 weeks agoman/check-os-release-simple: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 16:49:47 +0000 (01:49 +0900)] 
man/check-os-release-simple: apply "ruff format"

2 weeks agoman/90-rearrange-path: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 16:48:59 +0000 (01:48 +0900)] 
man/90-rearrange-path: apply "ruff format" and "ruff check --fix"

2 weeks agohwdb/parse_hwdb: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 16:48:13 +0000 (01:48 +0900)] 
hwdb/parse_hwdb: apply "ruff format" and "ruff check --fix"

2 weeks agohwdb/ids_parser: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Fri, 20 Feb 2026 18:29:00 +0000 (03:29 +0900)] 
hwdb/ids_parser: apply "ruff format" and "ruff check --fix"

2 weeks agohwdb/acpi-update: apply "ruff format"
Yu Watanabe [Thu, 19 Feb 2026 16:47:18 +0000 (01:47 +0900)] 
hwdb/acpi-update: apply "ruff format"

2 weeks agoycm: apply "ruff format" and "ruff check --fix"
Yu Watanabe [Thu, 19 Feb 2026 16:43:03 +0000 (01:43 +0900)] 
ycm: apply "ruff format" and "ruff check --fix"

2 weeks agoruff: do not warn about too long line and lambda assignment
Yu Watanabe [Sat, 21 Feb 2026 19:36:23 +0000 (04:36 +0900)] 
ruff: do not warn about too long line and lambda assignment

2 weeks agoruff: use single quotes for multiline strings
Yu Watanabe [Fri, 20 Feb 2026 21:14:53 +0000 (06:14 +0900)] 
ruff: use single quotes for multiline strings

2 weeks agosd-device: use string_is_safe() at one more place
Yu Watanabe [Sun, 17 May 2026 16:17:42 +0000 (01:17 +0900)] 
sd-device: use string_is_safe() at one more place

2 weeks agosd-device: logs about refused property
Yu Watanabe [Wed, 11 Mar 2026 20:19:25 +0000 (05:19 +0900)] 
sd-device: logs about refused property

Follow-up for a62cd5a153ffe18c27aff02685ed75c5bc4509a2.

2 weeks agonetworkctl: introduce 'dhcp-lease' command to dump acquired DHCP lease (#42137)
Yu Watanabe [Sun, 17 May 2026 16:28:11 +0000 (01:28 +0900)] 
networkctl: introduce 'dhcp-lease' command to dump acquired DHCP lease (#42137)

2 weeks agosd-dhcp-client: use dhcp_message_send_{udp,raw}() and update BPF code (#42138)
Yu Watanabe [Sun, 17 May 2026 16:26:55 +0000 (01:26 +0900)] 
sd-dhcp-client: use dhcp_message_send_{udp,raw}() and update BPF code (#42138)

2 weeks agosd-dhcp-client: drop unused data in sd_dhcp_client 42138/head
Yu Watanabe [Sun, 3 May 2026 05:50:13 +0000 (14:50 +0900)] 
sd-dhcp-client: drop unused data in sd_dhcp_client

With the previous commit, now sd_dhcp_client.link is not used anymore.
Let's drop it.

2 weeks agodhcp-client-send: move/update BPF code and socket initialization from dhcp-network.c
Yu Watanabe [Sat, 2 May 2026 18:24:41 +0000 (03:24 +0900)] 
dhcp-client-send: move/update BPF code and socket initialization from dhcp-network.c

- BPF code now supports the case when IP header has IP packet options,
- also set socket priority to UDP socket.

Co-developed-by: Google Gemini Pro
2 weeks agodhcp-client-send: use dhcp_message_send_{udp,raw}()
Yu Watanabe [Mon, 4 May 2026 07:19:17 +0000 (16:19 +0900)] 
dhcp-client-send: use dhcp_message_send_{udp,raw}()

2 weeks agoNEWS: mention new 'networkctl dhcp-lease' command 42137/head
Yu Watanabe [Sun, 17 May 2026 12:03:39 +0000 (21:03 +0900)] 
NEWS: mention new 'networkctl dhcp-lease' command

2 weeks agonetworkctl: add dhcp-lease verb to dump DHCP lease
Yu Watanabe [Thu, 16 Apr 2026 17:58:52 +0000 (02:58 +0900)] 
networkctl: add dhcp-lease verb to dump DHCP lease

This shows the DHCP message of an acquired DHCP lease.
Example:
```
$ networkctl dhcp-lease eth0
Header:
              KEY VALUE
   Hardware Type: ETHER
Hardware Address: 41:42:43:31:32:33
  Client Address: 192.0.2.123
  Server Address: 192.0.2.1

Options:
CODE NAME               DATA
   1 subnet mask        255.255.255.0
   3 router             192.0.2.1
   6 domain name server 192.0.2.1
  12 hostname           test-node
  15 domain name        lan
  28 broadcast address  192.0.2.255
  42 NTP server         192.0.2.11
                        192.0.2.12
  51 lease time         1d
  53 message type       5
  54 server identifier  192.0.2.1
  58 renewal time       11h 5min 38s
  59 rebinding time     20h 5min 38s
 119 domain search      hoge.example.com
                        foo.example.com
```

2 weeks agodhcp: cleanups for sd-dhcp-lease.c and rewrite test-dhcp-client (#42135)
Yu Watanabe [Sun, 17 May 2026 11:12:37 +0000 (20:12 +0900)] 
dhcp: cleanups for sd-dhcp-lease.c and rewrite test-dhcp-client (#42135)

2 weeks agodhcp-message-dump: introduce dump_dhcp_message()
Yu Watanabe [Fri, 17 Apr 2026 19:31:37 +0000 (04:31 +0900)] 
dhcp-message-dump: introduce dump_dhcp_message()

It dumps DHCP messages in a human friendly format.
It will be used in networkctl in a later commit.

3 weeks agoci/alpine: do not install util-linux-login
Yu Watanabe [Sat, 16 May 2026 18:20:45 +0000 (03:20 +0900)] 
ci/alpine: do not install util-linux-login

For some reasons, after util-linux is bumped from 2.41.4-r0 to 2.42-r0,
the 'su' command from util-linux-login seems to not correctly run commands in
https://github.com/jirutka/setup-alpine/blob/v1.4.1/alpine.sh
and causes the following spurious failure:
```
2026-05-15T21:19:15.6539432Z ##[group]Set up user runner
2026-05-15T21:19:15.6981963Z /bin/sh: line 0: ��: not found
2026-05-15T21:19:15.6982503Z /bin/sh: line 1: ␡ELF␂␁␁␃: not found
2026-05-15T21:19:15.6985788Z /bin/sh: line 10: ␒␐␆␒B␈␒�␄␒y␄␒�␁␒␞␇␒:␁␒�␃␒�␄␒@␁␒9␈␒?␆␒␚␈␒x: not found
2026-05-15T21:19:15.7010731Z /bin/sh: line 33: can't open ␂␒-␂␒�: no such file
2026-05-15T21:19:15.7016026Z /bin/sh: line 33: syntax error: unexpected word (expecting ")")
2026-05-15T21:19:15.7049583Z
2026-05-15T21:19:15.7050199Z ␛[1;31mError occurred at line 338:␛[0m
2026-05-15T21:19:15.7050830Z   335 |  echo 'permit nopass keepenv $SUDO_USER' | tee /etc/doas.d/root.conf
2026-05-15T21:19:15.7051287Z   336 |  fi
2026-05-15T21:19:15.7051549Z   337 | SHELL
2026-05-15T21:19:15.7052039Z ␛[1;31m> 338 | abin/"$INPUT_SHELL_NAME" --root /.setup.sh␛[0m
2026-05-15T21:19:15.7052506Z   339 |
2026-05-15T21:19:15.7052796Z   340 | rm .setup.sh
2026-05-15T21:19:15.7053172Z   341 | endgroup
2026-05-15T21:19:15.7096322Z ##[error]Error occurred at line 338: abin/"$INPUT_SHELL_NAME" --root /.setup.sh (see the job log for more information)
2026-05-15T21:19:15.7101400Z ##[error]Process completed with exit code 1.
```
Let's not install the package. It seems no command provided by the
package is used.

3 weeks agofuzz-dhcp-client: externally set socket fd, rather than override functions 42135/head
Yu Watanabe [Wed, 15 Apr 2026 19:43:12 +0000 (04:43 +0900)] 
fuzz-dhcp-client: externally set socket fd, rather than override functions

3 weeks agotest-dhcp-client: add test cases for discover attempt counter
Yu Watanabe [Wed, 15 Apr 2026 23:39:56 +0000 (08:39 +0900)] 
test-dhcp-client: add test cases for discover attempt counter

3 weeks agotest-dhcp-client: add test cases for IPv6-only mode
Yu Watanabe [Tue, 14 Apr 2026 18:57:10 +0000 (03:57 +0900)] 
test-dhcp-client: add test cases for IPv6-only mode

3 weeks agotest-dhcp-client: add test case for BOOTP client mode
Yu Watanabe [Mon, 27 Apr 2026 05:39:26 +0000 (14:39 +0900)] 
test-dhcp-client: add test case for BOOTP client mode

3 weeks agotest-dhcp-client: add test case for INIT-REBOOT sequence
Yu Watanabe [Mon, 27 Apr 2026 05:39:06 +0000 (14:39 +0900)] 
test-dhcp-client: add test case for INIT-REBOOT sequence

3 weeks agotest-dhcp-client: add test case for rapid commit mode
Yu Watanabe [Mon, 27 Apr 2026 05:38:24 +0000 (14:38 +0900)] 
test-dhcp-client: add test case for rapid commit mode

3 weeks agotest-dhcp-client: add test case for anonymized mode
Yu Watanabe [Mon, 27 Apr 2026 05:37:29 +0000 (14:37 +0900)] 
test-dhcp-client: add test case for anonymized mode

3 weeks agoupdate TODO
Lennart Poettering [Thu, 14 May 2026 06:43:59 +0000 (08:43 +0200)] 
update TODO

3 weeks agosd-dhcp-client: two tiny cleanups (#42129)
Yu Watanabe [Sat, 16 May 2026 19:16:32 +0000 (04:16 +0900)] 
sd-dhcp-client: two tiny cleanups (#42129)

3 weeks agotest-dhcp-client: rewrite the test by using sd_dhcp_message
Yu Watanabe [Fri, 10 Apr 2026 18:17:43 +0000 (03:17 +0900)] 
test-dhcp-client: rewrite the test by using sd_dhcp_message

More test cases will be added later.

3 weeks agosd-dhcp-client: allow to set socket fd externally
Yu Watanabe [Mon, 27 Apr 2026 05:31:10 +0000 (14:31 +0900)] 
sd-dhcp-client: allow to set socket fd externally

It will be used by the unit test and fuzzer for the DHCP client.
Preparation for later changes.

3 weeks agosd-dhcp-lease: coding style cleanups
Yu Watanabe [Fri, 10 Apr 2026 18:17:28 +0000 (03:17 +0900)] 
sd-dhcp-lease: coding style cleanups

Rename function arguments for storing results, and accept NULL for
them. Also, adjust the position of asterisk.

3 weeks agoFinal batch of conversions to option and verb macros (#42127)
Yu Watanabe [Sat, 16 May 2026 18:50:48 +0000 (03:50 +0900)] 
Final batch of conversions to option and verb macros (#42127)

3 weeks agosd-dhcp-client: drop unused legacy code (#42128)
Yu Watanabe [Sat, 16 May 2026 18:42:29 +0000 (03:42 +0900)] 
sd-dhcp-client: drop unused legacy code (#42128)

3 weeks agotreewide: get rid of remaing getopt/getopt_long stuff 42127/head
Zbigniew Jędrzejewski-Szmek [Fri, 15 May 2026 18:32:29 +0000 (20:32 +0200)] 
treewide: get rid of remaing getopt/getopt_long stuff

3 weeks agotree-wide: get rid of old dispatch_verb
Zbigniew Jędrzejewski-Szmek [Fri, 15 May 2026 19:37:04 +0000 (21:37 +0200)] 
tree-wide: get rid of old dispatch_verb

Also rename dispatch_verb_with_args to dispatch_verb.

3 weeks agotest-verbs: dispatch via _dispatch_verb_with_args() directly
Zbigniew Jędrzejewski-Szmek [Fri, 15 May 2026 19:29:37 +0000 (21:29 +0200)] 
test-verbs: dispatch via _dispatch_verb_with_args() directly

Drops the global-optind dependency from the test helper. Verb fixtures
stay inline as static const Verb[] — the section-based VERB() macro
would force unique verb names across the three test cases, which they
deliberately share to exercise overlap.

Co-developed-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3 weeks agoveritysetup: convert verbs to VERB macros
Zbigniew Jędrzejewski-Szmek [Fri, 15 May 2026 19:24:34 +0000 (21:24 +0200)] 
veritysetup: convert verbs to VERB macros

Place VERB() declarations above each dispatch function and use
verbs_get_help_table() in help(). run() switches to
dispatch_verb_with_args(); the argv_looks_like_help() shortcut is
preserved since this is an internal tool with no proper option parsing.

Co-developed-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3 weeks agoupdate-utmp: convert verbs to VERB macros
Zbigniew Jędrzejewski-Szmek [Fri, 15 May 2026 19:19:28 +0000 (21:19 +0200)] 
update-utmp: convert verbs to VERB macros

There is no --help implemented, so both verbs don't get help strings.
We should probably add --help + --version, and a proper description
of the program, but I'm leaving that for later.

Co-developed-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3 weeks agointegritysetup: convert verbs to VERB macros
Zbigniew Jędrzejewski-Szmek [Fri, 15 May 2026 19:11:40 +0000 (21:11 +0200)] 
integritysetup: convert verbs to VERB macros

Place VERB() declarations above each dispatch function and use
verbs_get_help_table() in help() so the command listing stays in sync.
run() switches to dispatch_verb_with_args(); the argv_looks_like_help()
shortcut is preserved since this is an internal tool with no proper
option parsing.

Co-developed-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3 weeks agobacklight: convert verbs to VERB macros
Zbigniew Jędrzejewski-Szmek [Fri, 15 May 2026 19:00:51 +0000 (21:00 +0200)] 
backlight: convert verbs to VERB macros

Place VERB() declarations directly above each dispatch function and use
verbs_get_help_table() in help() so the command listing stays in sync.
run() switches to dispatch_verb_with_args(); the argv_looks_like_help()
shortcut is preserved since this is an internal tool with no proper
option parsing.

Co-developed-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3 weeks agodissect: convert the other parser to option macros
Zbigniew Jędrzejewski-Szmek [Fri, 15 May 2026 18:39:23 +0000 (20:39 +0200)] 
dissect: convert the other parser to option macros

3 weeks agostoragectl: convert run_as_mount_helper to OPTION macros
Zbigniew Jędrzejewski-Szmek [Thu, 14 May 2026 07:28:56 +0000 (09:28 +0200)] 
storagectl: convert run_as_mount_helper to OPTION macros

This is the util-linux mount-helper interface (mount.storage), so all
options stay hidden via help=NULL — they are not user-facing. The
namespace "mount.storage" is distinct from the storagectl namespace
used for the user-facing CLI.

Co-developed-by: Claude Opus 4.7 <noreply@anthropic.com>
3 weeks agoudev: drop leftover includes of getopt.h
Zbigniew Jędrzejewski-Szmek [Wed, 13 May 2026 22:51:33 +0000 (00:51 +0200)] 
udev: drop leftover includes of getopt.h

Not sure why those were left and why clang-tidy didn't complain.

3 weeks agosd-dhcp-client: set TOS and socket priority by default 42129/head
Yu Watanabe [Sat, 2 May 2026 17:50:37 +0000 (02:50 +0900)] 
sd-dhcp-client: set TOS and socket priority by default

Also this renames sd_dhcp_client_set_service_type() to _set_ip_service_type().

3 weeks agosd-dhcp-client: split out setting anonymize parameter
Yu Watanabe [Thu, 9 Apr 2026 23:22:27 +0000 (08:22 +0900)] 
sd-dhcp-client: split out setting anonymize parameter

No effective functional change. Just refactoring.

3 weeks agotree-wide: get rid of most uses of ALIGN_PTR
Zbigniew Jędrzejewski-Szmek [Sat, 16 May 2026 16:32:14 +0000 (18:32 +0200)] 
tree-wide: get rid of most uses of ALIGN_PTR

This bothered me for a while, but I didn't think too much about it and just
copied the existing usage pattern. But it really doesn't make sense. We expect
the compiler to align the section properly. But if it didn't align it, applying
alignment after the fact would just cause our pointer to point to the middle
of the structure. That'd be even worse than a misaligned pointer.

Similarly, when doing pointer arithmetic, p++ should really result in a value
with the appropriate alignment. This is the basic principle of C pointer
addition. So we really shouldn't try to adjust the pointer ourselves. At most,
we can assert that it is indeed aligned in tests.

3 weeks agodhcp-packet: drop unused dhcp_packet_verify_headers() 42128/head
Yu Watanabe [Wed, 1 Apr 2026 19:20:59 +0000 (04:20 +0900)] 
dhcp-packet: drop unused dhcp_packet_verify_headers()

3 weeks agosd-dhcp-lease: drop several more unused functions and conditions
Yu Watanabe [Wed, 1 Apr 2026 14:44:39 +0000 (23:44 +0900)] 
sd-dhcp-lease: drop several more unused functions and conditions

3 weeks agosd-dhcp-lease: drop unused dhcp_lease_save() and dhcp_lease_load()
Yu Watanabe [Wed, 1 Apr 2026 14:40:16 +0000 (23:40 +0900)] 
sd-dhcp-lease: drop unused dhcp_lease_save() and dhcp_lease_load()

They are not used anymore. Let's kill them.

3 weeks agonetwork: drop serialization of DHCP lease
Yu Watanabe [Wed, 1 Apr 2026 14:36:30 +0000 (23:36 +0900)] 
network: drop serialization of DHCP lease

No one use it now anymore. Let's drop it.

3 weeks agonetworkctl: always use DHCP message serialized in JSON desciption
Yu Watanabe [Wed, 1 Apr 2026 14:34:19 +0000 (23:34 +0900)] 
networkctl: always use DHCP message serialized in JSON desciption

Now the interface description by networkd always contains DHCP message
(of course when there is a bound DHCP lease). Let's use it.

3 weeks agonetwork: drop unmet conditions
Yu Watanabe [Wed, 1 Apr 2026 14:32:41 +0000 (23:32 +0900)] 
network: drop unmet conditions

Now sd_dhcp_lease object always wraps sd_dhcp_message object, hence we
can unconditionally use it.

3 weeks agosd-dhcp-client: use new message parser (#42123)
Yu Watanabe [Sat, 16 May 2026 15:33:43 +0000 (00:33 +0900)] 
sd-dhcp-client: use new message parser (#42123)

In 26b7c5ff3b944aa3a16d4e859e9c84ce7e968a5a, we introduced a new parser
for received DHCP message, but it was not used at that time. This PR
replaces the legacy parser with the new one, and makes the fuzzer also
use the new parser.

3 weeks agoConvert machinectl to option and verb macros (#42117)
Zbigniew Jędrzejewski-Szmek [Sat, 16 May 2026 15:18:10 +0000 (17:18 +0200)] 
Convert machinectl to option and verb macros (#42117)

3 weeks agomachinectl: convert to OPTION and VERB macros 42117/head
Zbigniew Jędrzejewski-Szmek [Fri, 15 May 2026 17:19:15 +0000 (19:19 +0200)] 
machinectl: convert to OPTION and VERB macros

For the shell verb we want switches specified after the program name to
be passed to the program to execute, not processed by us. Mirror the
approach in 'userdbctl ssh-authorized-keys': start with
OPTION_PARSER_RETURN_POSITIONAL_ARGS, then lates switch to
STOP_AT_FIRST_NONOPTION for "shell" or NORMAL otherwise.

VERB declarations are placed directly above each function; functions
that dispatch multiple verb names get stacked VERB() declarations.
chainload_importctl() now takes the args strv instead of relying on the
global optind.

--help output is mostly the same.
--no-pager/--no-legend/--no-ask-password/-q/--quiet are now at the end.
bind-volume/unbind-volume are documented.

Fixes c9f461a8067996c6b0c3ac3bf6f9097aedbf4734.

Co-developed-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3 weeks agoshared/verbs: add VERB_DEFAULT_NOARG
Zbigniew Jędrzejewski-Szmek [Fri, 15 May 2026 17:29:36 +0000 (19:29 +0200)] 
shared/verbs: add VERB_DEFAULT_NOARG

3 weeks agosd-dhcp-client: do not trigger assertion when running on interface with small MTU 42123/head
Yu Watanabe [Mon, 13 Apr 2026 23:57:47 +0000 (08:57 +0900)] 
sd-dhcp-client: do not trigger assertion when running on interface with small MTU

This also drops spurious default value. If mtu is unset, now the correct
default value is set in client_new_message() in dhcp-client-send.c.

3 weeks agosd-dhcp-client: drop unnecessary T1/T2 adjustment logic
Yu Watanabe [Wed, 1 Apr 2026 14:26:34 +0000 (23:26 +0900)] 
sd-dhcp-client: drop unnecessary T1/T2 adjustment logic

It is already done in client_parse_ack() -> dhcp_lease_new_from_message().