Yu Watanabe
e2aee7ed90
Merge pull request #28591 from yuwata/network-neighbor-next
...
network/neighbor: follow the kernel's way how to manage neighbors
2023-07-31 01:42:39 +09:00
Yu Watanabe
86d1f7c974
Merge pull request #28575 from yuwata/network-address-next-part3
...
network: check specified address settings in more detail
2023-07-31 00:59:31 +09:00
Yu Watanabe
8b52860b86
Merge pull request #28572 from yuwata/network-ipv4acd
...
network: split-out sd_ipv4acd object management from Address object
2023-07-31 00:58:54 +09:00
Frantisek Sumsal
a3d610998a
tmpfiles.d: adjust /dev/vfio/vfio access mode
...
kmod-static-nodes.service sets the mode to 0600, but we want it
to be 0666 as specified in 50-udev-default.rules.
Resolves : #28588
2023-07-31 00:58:01 +09:00
Yu Watanabe
2ede355908
test-network: add tests for several invalid neighbor settings, and overriding settings
...
This also makes the checks stricter.
2023-07-31 00:40:03 +09:00
Yu Watanabe
5d098f5d36
network/neighbor: do not add Neighbor object to Link on requesting
...
Then, all neighbors managed by a link really exist (unless the kernel
silently removes neighbors).
2023-07-31 00:39:59 +09:00
Luca Boccassi
167338529b
Merge pull request #28428 from ldv-alt/ERRNO_IS
...
treewide: cleanup use of ERRNO_IS_*(r)
2023-07-30 16:31:16 +01:00
Yu Watanabe
aa9626ee3b
network/neighbor: follow the way how kernel distinguish neighbor settings
...
The kernel manages neighbors by the destination address, and the
LinkLayerAddress is mutable. Let's manage neighbors in the same way, and
dedup settings.
2023-07-31 00:00:07 +09:00
Yu Watanabe
bbeceaf295
network/neighbor: skip to request neighbors with unmatching link layer address length
2023-07-31 00:00:07 +09:00
Yu Watanabe
5385e5f940
network/ipv4acd: split out sd_ipv4acd management from Address to Link
...
Then, we can start IPv4ACD without adding corresponding Address object
to Link.
Hopefully, no functional change, just refactoring and preparation for
later commits.
2023-07-30 23:16:41 +09:00
Yu Watanabe
9701be563a
in-addr-util: introduce PTR_TO_IN4_ADDR() and IN4_ADDR_TO_PTR()
...
These should be useful when an IPv4 address is used as a key of a
hashmap.
2023-07-30 23:15:53 +09:00
Yu Watanabe
626d653a90
sd-ipv4acd: introduce sd_ipv4acd_is_bound()
2023-07-30 23:15:53 +09:00
Yu Watanabe
722ac24651
network/ipv4acd: drop unused argument
2023-07-30 23:15:53 +09:00
Yu Watanabe
262ac7fcf2
network/ipv4acd: use IN4_ADDR_TO_STRING()
2023-07-30 23:15:40 +09:00
Yu Watanabe
b1179a5d0b
network/address: ignore address settings with unsupported flags
2023-07-30 22:53:49 +09:00
Yu Watanabe
d9e2afc033
network/address: drop IPv6 settings when the kernel does not support IPv6
2023-07-30 22:53:15 +09:00
Susant Sahani
f141b2c053
network: ndisc - Honour CurHopLimit
...
RFC4861 Neighbor Discovery – Sections 4.2 and 6.3.4
From section 4.2. Router Advertisement Message Format:
Cur Hop Limit 8-bit unsigned integer. The default value that
should be placed in the Hop Count field of the IP
header for outgoing IP packets. A value of zero
means unspecified (by this router).
2023-07-30 14:37:21 +01:00
Yu Watanabe
1a1f4a8092
network/address: merge address_needs_to_set_broadcast() with address_get_broadcast()
...
No functional change, preparation for later commits.
2023-07-30 14:33:23 +01:00
Luca Boccassi
9dabe36cb0
Merge pull request #28574 from yuwata/network-queue-next
...
network/queue: preparations
2023-07-30 14:27:43 +01:00
Luca Boccassi
1665bbbddf
Merge pull request #28571 from yuwata/network-address-next-part1
...
network: several trivial cleanups
2023-07-30 14:01:53 +01:00
Yu Watanabe
4d4d7910d9
network/neighbor: drop IPv6 settings when the kernel does not support IPv6
2023-07-30 13:57:13 +01:00
Yu Watanabe
754252f923
network: rename sd_netlink_message* req -> m
...
This also merges neighbor_configure_message() with neighbor_configure().
2023-07-30 13:55:18 +01:00
Yu Watanabe
22b906dd96
Merge pull request #28564 from YHNdnzj/gpt-auto-kill-more-duplicate
...
gpt-auto: don't mount ESP if there's an fstab entry for it
2023-07-30 08:59:50 +09:00
Yu Watanabe
0c491d0f34
meson: use kwargs to declare efi binaries
...
No functional change, just refactoring.
2023-07-30 08:57:55 +09:00
Frantisek Sumsal
9fe4e68cab
analyze: fix pcrs verb output without TPM support
...
If we don't have TPM support then `alg` is NULL and passing this to
table_new() means we'd get a table with only two columns instead of
three, leading up to a very confusing output:
$ build/systemd-analyze pcrs
System lacks full TPM2 support, not showing PCR state.
NR NAME
0 platform-code
- 1
platform-config -
2 external-code
- 3
external-config -
4 boot-loader-code
- 5
boot-loader-config -
6 -
- 7
...
Let's name the header in this case with a simple dash, as it's going
to be hidden anyway, to make the table nice again:
$ build/systemd-analyze pcrs
System lacks full TPM2 support, not showing PCR state.
NR NAME
0 platform-code
1 platform-config
2 external-code
3 external-config
4 boot-loader-code
5 boot-loader-config
6 -
7 secure-boot-policy
...
2023-07-30 08:57:37 +09:00
Yu Watanabe
cbcf76b193
tree-wide: fix typo
2023-07-30 00:23:28 +09:00
Yu Watanabe
008f1e5443
network/queue: detach request from queue when netlink reply received
...
Then, we can find and use the Request object after sending netlink
message.
Preparation for later commits.
2023-07-29 23:27:21 +09:00
Yu Watanabe
d256945fd0
network/queue: free assigned userdata only when a new request is queued
2023-07-29 23:27:19 +09:00
Yu Watanabe
a2532c9db8
network/address: split-out address_match_null()
...
No functional change, preparation for later commits.
2023-07-29 22:48:49 +09:00
Yu Watanabe
a3a25d01ce
network: drop unnecessary conditions
...
When link_get_by_index() succeeds, the result is always non-NULL.
2023-07-29 22:48:49 +09:00
Yu Watanabe
5fb1f929d5
network: use address_remove_and_drop()
2023-07-29 22:48:49 +09:00
Yu Watanabe
f60e65583e
network/address: free Address object by caller that passed to link_request_address()
...
Follow-up for 9684a8ded0 .
Now, the input Address object is always copied, hence it is not
necessary to free it in link_request_address().
2023-07-29 22:48:49 +09:00
Yu Watanabe
ae85704760
Merge pull request #28562 from yuwata/ukify-option-length
...
ukify: check option length
2023-07-29 21:41:27 +09:00
Yu Watanabe
73a89c5601
Merge pull request #28563 from keszybz/configure-meson
...
configure: update meson invocation
2023-07-29 21:40:58 +09:00
Zbigniew Jędrzejewski-Szmek
79ce5f940e
labeller: add build-system label
2023-07-29 14:11:14 +02:00
Zbigniew Jędrzejewski-Szmek
4f3c90acfe
configure: update meson invocation
...
New meson says:
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
Inspired by https://github.com/systemd/systemd/issues/28482 .
2023-07-29 14:08:06 +02:00
Mike Yuan
7893a547eb
gpt-auto: don't mount ESP if there's an fstab entry for it
...
Follow-up for #28511
Fixes #28550
2023-07-29 20:06:41 +08:00
Mike Yuan
24c0078a84
fstab-util: add fstab_has_node
2023-07-29 20:00:55 +08:00
Luca Boccassi
e72b28eb7a
Merge pull request #28557 from bluca/utils
...
utils: add serialize_bool_elide() and send/receive helpers for FD array
2023-07-29 12:39:06 +01:00
Luca Boccassi
fc3fe92bc8
Merge pull request #28508 from yuwata/network-next-dhcp4
...
network: several cleanups and fixes for DHCPv4 client
2023-07-29 12:15:38 +01:00
Yu Watanabe
e3c04a5c84
test-ukify: add tests for an empty argument
2023-07-29 19:57:35 +09:00
Yu Watanabe
3adc3b799a
Merge pull request #28409 from yuwata/network-dhcp4-drop-duid-only
...
network,dhcp4: drop "duid-only" option support in ClientIdentifier=
2023-07-29 19:55:57 +09:00
Luca Boccassi
942c40c64c
serialize: add serialize_bool_elide() helper
...
In many case we serialize into objects that have been zero-initialized.
To save some time and resources when there are a lot of booleans, add a
helper that serializes only when the boolean is true.
2023-07-29 11:25:05 +01:00
Luca Boccassi
598d2428e1
socket-util: add send/receive helpers for FD array
2023-07-29 11:25:05 +01:00
Sven Joachim
b4e8c6d972
mkosi: set CONFIG_AUTOFS_FS rather than CONFIG_AUTOFS4_FS
...
Since Linux 4.18 CONFIG_AUTOFS4_FS just enables CONFIG_AUTOFS_FS, its
description in fs/autofs/Kconfig reads:
This name exists for people to just automatically pick up the
new name of the autofs Kconfig option. All it does is select
the new option name.
It will go away in a release or two as people have
transitioned to just plain AUTOFS_FS.
2023-07-29 11:18:25 +01:00
Yu Watanabe
dc3f9b5e10
NEWS: mention about the removal of duid-only option
2023-07-29 18:51:40 +09:00
Yu Watanabe
d8f19e03c0
network,dhcp: drop support of ClientIdentifier=duid-only
...
The setting has not been never worked, not tested, and should not been
used. As the option is RFC incompliant. Let's drop it.
Closes #25562 .
2023-07-29 18:51:09 +09:00
Yu Watanabe
f0876c7ab9
ukify: check option length
...
Follow-up for df4a46733a .
2023-07-29 18:48:32 +09:00
Yu Watanabe
dfecd67f30
Merge pull request #28558 from bluca/docs
...
Update docs/RELEASE.md and NEWS
2023-07-29 18:36:14 +09:00
Luca Boccassi
c405b91ff0
NEWS: open for v255 business
2023-07-28 23:44:17 +01:00