systemd/rules.d
Lennart Poettering 0d08db7f89 udev: add /dev/disk/by-diskseq symlink for block devices
This adds another symlink for block devices:

    /dev/disk/by-diskseq/<number>

where the number is the diskseq number as exposed by the kernel. It's
useful for apps because they can use it to open a device by diskseq, in
a way that is safe against device node reuse. I.e. if a device node path
like this is passed to an app it could open the device node via the
symlink and also parse the diskseq from the path. Once the device is
opened it could compare the parsed diskseq with the one returned by
BLKGETDISKSEQ on the open node, and if it matches they know they are
talking to the right device.

Fixes: #22906
2022-04-01 23:44:37 +09:00
..
50-udev-default.rules.in rule: fallback to use board information if product information is not set 2022-01-23 13:04:37 +09:00
60-autosuspend.rules hwdb: Permit unsetting power/persist for USB devices 2021-09-21 20:28:10 +02:00
60-block.rules Rename udev's rules/ to rules.d/ 2019-10-10 00:53:09 +01:00
60-cdrom_id.rules Rename udev's rules/ to rules.d/ 2019-10-10 00:53:09 +01:00
60-drm.rules Rename udev's rules/ to rules.d/ 2019-10-10 00:53:09 +01:00
60-evdev.rules rules.d: import the keyboard builtin instead of running it 2020-03-01 14:04:30 +01:00
60-fido-id.rules rules: Move ID_SMARTCARD_READER definition to a <70 configuration. 2021-03-03 15:18:55 +01:00
60-input-id.rules Rename udev's rules/ to rules.d/ 2019-10-10 00:53:09 +01:00
60-persistent-alsa.rules Rename udev's rules/ to rules.d/ 2019-10-10 00:53:09 +01:00
60-persistent-input.rules udev: add i2c to 60-persistent-input.rules for by-path (#18808) 2021-03-02 19:56:06 +10:00
60-persistent-storage-tape.rules udev: 60-persistent-storage-tape.rules: handle duplicate device ID 2022-03-08 23:12:10 +09:00
60-persistent-storage.rules udev: add /dev/disk/by-diskseq symlink for block devices 2022-04-01 23:44:37 +09:00
60-persistent-v4l.rules Rename udev's rules/ to rules.d/ 2019-10-10 00:53:09 +01:00
60-sensor.rules Rename udev's rules/ to rules.d/ 2019-10-10 00:53:09 +01:00
60-serial.rules Revert "udev: do not execute hwdb builtin import twice or thrice" 2021-03-10 15:26:45 +01:00
64-btrfs.rules.in meson: use jinja2 for rules.d templates 2021-05-19 10:24:43 +09:00
70-camera.rules hwdb: Tag IR cameras as such 2021-10-27 00:14:41 +02:00
70-joystick.rules Rename udev's rules/ to rules.d/ 2019-10-10 00:53:09 +01:00
70-memory.rules udev: Extract RAM properties from DMI information 2020-12-16 18:32:29 +01:00
70-mouse.rules Rename udev's rules/ to rules.d/ 2019-10-10 00:53:09 +01:00
70-touchpad.rules Rename udev's rules/ to rules.d/ 2019-10-10 00:53:09 +01:00
75-net-description.rules Rename udev's rules/ to rules.d/ 2019-10-10 00:53:09 +01:00
75-probe_mtd.rules Rename udev's rules/ to rules.d/ 2019-10-10 00:53:09 +01:00
78-sound-card.rules Rename udev's rules/ to rules.d/ 2019-10-10 00:53:09 +01:00
80-drivers.rules rules.d: Properly quote $env{MODALIAS} 2021-05-24 18:40:01 +01:00
80-net-setup-link.rules udev: re-assign ID_NET_DRIVER=, ID_NET_LINK_FILE=, ID_NET_NAME= properties on non-'add' uevent 2020-09-15 11:29:35 +09:00
81-net-dhcp.rules network: enable DHCP broadcast flag if required by interface 2021-04-21 18:11:18 +02:00
99-systemd.rules.in meson: use jinja2 for rules.d templates 2021-05-19 10:24:43 +09:00
meson.build meson: do not use split() in file lists 2022-03-02 14:49:32 +01:00
README docs: Fixing typo in systemd.device man page and README. 2021-09-29 22:18:38 +01:00

Files in this directory contain configuration for systemd-udevd.service, a
daemon that manages symlinks to device nodes, permissions of devices nodes,
emits device events for userspace, and renames network interfaces.

See man:udev(7) for an overview of the configuration file format, and
man:systemd-udevd.service(8) for a description of service itself.

Use 'systemd-analyze cat-config udev/rules.d' to display the effective config.