mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 22:50:29 +00:00
udev/net: support Match.Firmware= in .link files (#22462)
In cbcdcaaa0e ("Add support for conditions on the machines firmware")
a new Firmware= directive was added for .netdev and .network files.
While it was also documented to work on .link files, in actual fact the
support was missing. Add that one extra line to make it work, and also
update the fuzzer directives.
This commit is contained in:
@@ -34,6 +34,7 @@ Match.Virtualization, config_parse_net_condition,
|
||||
Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(LinkConfig, conditions)
|
||||
Match.KernelVersion, config_parse_net_condition, CONDITION_KERNEL_VERSION, offsetof(LinkConfig, conditions)
|
||||
Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(LinkConfig, conditions)
|
||||
Match.Firmware, config_parse_net_condition, CONDITION_FIRMWARE, offsetof(LinkConfig, conditions)
|
||||
Link.Description, config_parse_string, 0, offsetof(LinkConfig, description)
|
||||
Link.MACAddressPolicy, config_parse_mac_address_policy, 0, offsetof(LinkConfig, mac_address_policy)
|
||||
Link.MACAddress, config_parse_hw_addr, 0, offsetof(LinkConfig, hw_addr)
|
||||
|
||||
@@ -11,6 +11,7 @@ Virtualization=
|
||||
KernelCommandLine=
|
||||
KernelVersion=
|
||||
Architecture=
|
||||
Firmware=
|
||||
[Link]
|
||||
Description=
|
||||
MACAddressPolicy=
|
||||
|
||||
@@ -386,6 +386,7 @@ AllowPortToBeRoot=
|
||||
AllowedIPs=
|
||||
Anonymize=
|
||||
Architecture=
|
||||
Firmware=
|
||||
AutoJoin=
|
||||
AutoNegotiation=
|
||||
BindCarrier=
|
||||
|
||||
Reference in New Issue
Block a user