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:
Alvin Šipraga
2022-02-10 08:19:28 +01:00
committed by GitHub
parent 56eb88761e
commit 19ff06b3a4
3 changed files with 3 additions and 0 deletions

View File

@@ -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)

View File

@@ -11,6 +11,7 @@ Virtualization=
KernelCommandLine=
KernelVersion=
Architecture=
Firmware=
[Link]
Description=
MACAddressPolicy=

View File

@@ -386,6 +386,7 @@ AllowPortToBeRoot=
AllowedIPs=
Anonymize=
Architecture=
Firmware=
AutoJoin=
AutoNegotiation=
BindCarrier=