1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-03 17:47:28 +03:00
Lukas Nykryn 3b2e7dc5a2 udev: allow/denylist for reading sysfs attributes when composing a NIC name
Users can currently pick specific versions of NIC naming, but that
does not guarantee that NIC names won't change after the kernel adds
a new sysfs attribute.

This patch allows for an allow/deny list of sysfs attributes
that could be used when composing the name.

These lists can be supplied as an hwdb entry in the form of
/etc/udev/hwdb.d/50-net-naming-allowlist.hwdb
net:naming:drvirtio_net
  ID_NET_NAME_ALLOW=0
  ID_NET_NAME_ALLOW_ACPI_INDEX=1
  ID_NET_NAME_ALLOW_ADDR_ASSIGN_TYPE=1
  ID_NET_NAME_ALLOW_ADDRESS=1
  ID_NET_NAME_ALLOW_ARI_ENABLED=1
  ID_NET_NAME_ALLOW_DEV_PORT=1
  ID_NET_NAME_ALLOW_FUNCTION_ID=1
  ID_NET_NAME_ALLOW_IFLINK=1
  ID_NET_NAME_ALLOW_INDEX=1
  ID_NET_NAME_ALLOW_LABEL=1
  ID_NET_NAME_ALLOW_PHYS_PORT_NAME=1
  ID_NET_NAME_ALLOW_TYPE=1
2023-12-19 19:15:52 +09:00
..
2023-12-18 11:10:53 +01:00
2023-11-06 16:35:31 +00:00
2023-10-06 11:49:38 +02:00
2022-06-28 16:05:31 +02:00
2023-12-18 11:10:53 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-05-15 22:53:22 +02:00
2023-09-19 00:37:37 +01:00
2023-09-19 00:37:37 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-05-15 22:53:22 +02:00
2023-07-02 11:10:12 +01:00
2023-05-15 22:53:22 +02:00
2023-05-15 22:53:22 +02:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-10-24 18:32:17 +02:00
2023-08-29 14:07:24 +01:00
2023-10-24 18:32:18 +02:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-11-09 00:09:13 +09:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-11-06 18:50:30 +00:00
2023-08-29 14:07:24 +01:00
2023-10-24 18:32:18 +02:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-09-19 00:37:37 +01:00
2023-09-19 00:37:37 +01:00
2023-12-01 10:29:39 +01:00
2023-09-19 00:37:37 +01:00
2023-10-07 15:48:22 +09:00
2023-08-29 14:07:24 +01:00
2023-09-19 00:37:37 +01:00