# this is a preliminary paranoid rule from a local installation. Feel free to submit
# patches that may make the rule suitable for your installation

@@define RUNUDEVCONT [bcn][[:digit:]]+(:[[:digit:]]+)?
@@define RUNUDEVLEDS (ACT|apu:green:[23]|input[0123]::(caps|num|scroll)lock|bananapi:green:usr|platform::(mic)?mute|mmc[01]::|phy0-led|power|PWR|standby|think(light|vantage)|tpacpi::(lid_logo_dot|power|standby|think(light|vantage))|unimac-mdio--19:01:(amber|green):lan)
@@define RUNUDEVVIDEO (\\+drm:)?card[01]-(e?DP|HDMI-A|LVDS|VGA|Virtual|Writeback)-[1234]
!/@@{RUN}/udev$ d
!/@@{RUN}/udev/control$ s
!/@@{RUN}/udev/io.systemd\\.Udev$ s
!/@@{RUN}/udev/(data|links(\\.lock)?|tags|watch)$ d
!/@@{RUN}/udev/data/@@{RUNUDEVCONT}$ f
!/@@{RUN}/udev/data/\\+input:input[[:digit:]]{1,2}$ f
!/@@{RUN}/udev/data/\\+module:(af_alg|algif_skcipher|configfs|dm_crypt)$ f
!/@@{RUN}/udev/data/\\+acpi:LNX(CPU|[[:upper:]]{5}):[01][[:xdigit:]]$ f
!/@@{RUN}/udev/data/\\+acpi:(device|INT[[:xdigit:]]{4}|QEMUVGID:00|(ACPI|FUJ|FXY|INT|IPI|LEN|PNP|MSFT|SMO|QEMU)[[:xdigit:]]{4}:[0123][[:xdigit:]])$ f
!/@@{RUN}/udev/data/\\+ata_device:dev[[:digit:]]\\.[01]$ f
!/@@{RUN}/udev/data/\\+ata_link:link[[:digit:]]$ f
!/@@{RUN}/udev/data/\\+ata_port:ata[[:digit:]]$ f
!/@@{RUN}/udev/data/\\+bdi:[[:digit:]]+:[[:digit:]]+$ f
!/@@{RUN}/udev/data/\\+bus:(acpi|cec|clockevents|clocksource|container|cpu|dax|event_source|gpio|hid|i2c|machinecheck|mdio_bus|nd|node|nvmem|parport|pci(_express)?|platform|pnp|scsi|ser(ial|io)|usb(-serial)?|virtio|workqueue|xen(-backend)?)$ f
!/@@{RUN}/udev/data/\\+by_name:(etc|genroms)$ f
!/@@{RUN}/udev/data/\\+class:(ata_(device|link|port)|hwmon|leds|macvtap|mdio_bus|pps|ptp|scsi_(disk|generic)|tpm(rm)?|usbmisc|virtio-ports)$ f
!/@@{RUN}/udev/data/\\+clockevents:(broadcast|clock(event[01234567]|source0))$ f
!/@@{RUN}/udev/data/\\+clocksource:clocksource0$ f
!/@@{RUN}/udev/data/\\+container:PNP0A06:0[023]$ f
!/@@{RUN}/udev/data/\\+cpu:cpu[0123]$ f
!/@@{RUN}/udev/data/\\+dma:dma0chan[01234]$ f
!/@@{RUN}/udev/data/\\+dmi:id$ f
!/@@{RUN}/udev/data/\\+drivers:[-[:lower:][:digit:]_]+:[-[:alnum:]\ _]+$ f
!/@@{RUN}/udev/data/@@{RUNUDEVVIDEO}$ f
!/@@{RUN}/udev/data/\\+etc:(acpi|smbios|tpm)$ f
!/@@{RUN}/udev/data/\\+event_source:(amd_(l2|nb)|breakpoint|cpu|cstate_(core|pkg)|ibs_(fetch|op)|msr|power|software|uncore_(arb|cbox_[01]))$ f
!/@@{RUN}/udev/data/\\+graphics:fbcon$ f
!/@@{RUN}/udev/data/\\+hid:0003:[[:xdigit:]]{4}:[[:digit:]]{4}\\.000[12]$ f
!/@@{RUN}/udev/data/\\+hwmon:hwmon[01]$ f
!/@@{RUN}/udev/data/\\+i2c:(dummy|i2c-[01234])$ f
!/@@{RUN}/udev/data/\\+leds:@@{RUNUDEVLEDS}$ f
!/@@{RUN}/udev/data/\\+machinecheck:machinecheck[0123]$ f
!/@@{RUN}/udev/data/\\+mdio_bus:[[:alnum:]]+-[[:digit:]]+(:00)?$ f
!/@@{RUN}/udev/data/\\+module:[[:alnum:]_]+$ f
!/@@{RUN}/udev/data/\\+node:node0$ f
!/@@{RUN}/udev/data/\\+nvmem:cmos_nvram0$ f
!/@@{RUN}/udev/data/\\+parport:(lp\\.|parport)0$ f
!/@@{RUN}/udev/data/\\+pci:@@{PCI_ADDRESS}$ f
!/@@{RUN}/udev/data/\\+pci_bus:0000:0[012345d]$ f
!/@@{RUN}/udev/data/\\+pci_express:@@{PCI_ADDRESS}:pcie0[01][01]$ f
!/@@{RUN}/udev/data/\\+platform:((ACPI|QEMU)000[123C]|INT[[:xdigit:]]{4}|IPI0001|FUJ02E3|LEN0068|MSFT0101|PNP0[018C][01C][03494ABCDE]|QEMUVGID):0[01234]$ f
!/@@{RUN}/udev/data/\\+platform:(acpi-cpufreq|axp20x-(adc|gpio|pek|regulator|usb-power-supply)|alarmtimer\\.0\\.auto|bcm2835-(power|wdt)|coretemp\\.0|cpufreq-dt|display-engine|dock\\.[01])$ f
!/@@{RUN}/udev/data/\\+platform:(efivars\\.0|emmc2bus|Fixed\ MDIO\ bus\\.0|gmac-3v3|gpio(-keys(-polled)?|_amd_fch)|gpu|hdmi-(audio-codec\\.[01]\\.auto|connector)|i2c-mux0|i8042|iio_hwmon\\.0|intel_rapl_msr\\.0|iTCO_wdt\\.[01]\\.auto)$ f
!/@@{RUN}/udev/data/\\+platform:(leds(-gpio)?|microcode|parport_pc\\.888|pcspkr|phy|platform-(bus@c000000|framebuffer\\.0)|pmu|psci(-cpuidle)?|raspberrypi-(cpufreq|hwmon)|reg-dummy|regulator-(cam1|sd-io-1v8|sd-vcc)|regulatory\\.0|irtc-efi\\.0)$ f
!/@@{RUN}/udev/data/\\+platform:(scb|serial8250|simple-framebuffer\\.0|snd-soc-dummy|soc(:(firmware(:(clocks|gpio|reset))?|power))?|sp5100-tco|sun5i-a13-gpadc-iio\\.0|rtc-efi\\.0|thinkpad_(acpi|hwmon)|timer|unimac-mdio\\.-19|usb[012]-vbus|vcc(3v[03]|5v0)|vga-framebuffer\\.0|wifi-pwrseq)$ f
!/@@{RUN}/udev/data/\\+platform:((0|10000)\\.sram|1c00000\\.system-control|1c02000\\.dma-controller|1c05000\\.spi|1c0c000\\.lcd-controller|1c0d000\\.lcd-controller|1c0e000\\.video-codec|1c0f000\\.mmc|1c13000\\.usb)$ f
!/@@{RUN}/udev/data/\\+platform:(1c13400\\.phy|1c14000\\.usb|1c14400\\.usb|1c15000\\.crypto-engine|1c16000\\.hdmi|1c18000\\.sata|1c1c000\\.usb|1c1c400\\.usb|1c20000\\.clock|1c20800\\.pinctrl|1c20c00\\.timer|1c20c90\\.watchdog|1c20d00\\.rtc)$ f
!/@@{RUN}/udev/data/\\+platform:(1c21800\\.ir|1c22c00\\.codec|1c23800\\.eeprom|1c25000\\.rtp|1c28000\\.serial|1c28c00\\.serial|1c29c00\\.serial|1c2ac00\\.i2c|1c2b400\\.i2c|1c40000\\.gpu|1c50000\\.ethernet|1c60000\\.hstimer|1d00000\\.sram)$ f
!/@@{RUN}/udev/data/\\+platform:(1e00000\\.display-frontend|1e20000\\.display-frontend|1e40000\\.display-backend|1e60000\\.display-backend|[[:xdigit:]]{8}\\.nvram|3f000000\\.pcie|7fe79000\\.framebuffer|9020000\\.fw-cfg)$ f
!/@@{RUN}/udev/data/\\+platform:(a000000|a000200|a000400|a000600|a000800|a000a00|a000c00|a000e00|a001000|a001200|a001400|a001600|a001800|a001a00|a001c00|a001e00|a002000|a002200|a002400|a002600|a002800|a002a00|a002c00|a002e00|a003000|a003200|a003400|a003600|a003800|a003a00|a003c00|a003e00)\\.virtio_mmio$ f
!/@@{RUN}/udev/data/\\+platform:(fd500000\\.pcie|fd580000\\.ethernet|fd5d2000\\.avs-monitor(:thermal)?|fe003000\\.timer|fe004000\\.txp|fe007000\\.dma-controller|(fe00b840|fe00b880)\\.mailbox|fe100000\\.watchdog|fe101000\\.cprman|fe104000\\.rng|fe200000\\.gpio)$ f
!/@@{RUN}/udev/data/\\+platform:((fe205000|fe804000|fef04500|fef09500)\\.i2c|(fe206000|fe207000|fe20a000|fe216000)\\.pixelvalve|fe20c800\\.pwm|fe215000\\.aux|fe215040\\.serial|(fe300000|fe340000)\\.mmc|fe400000\\.hvs)$ f
!/@@{RUN}/udev/data/\\+platform:(fe980000\\.usb|fec00000\\.gpu|fef00000\\.clock|(fef00100|ff800000)\\.interrupt-controller|fef0[05]700\\.hdmi)$ f
!/@@{RUN}/udev/data/\\+pnp:00:0[012345]$ f
!/@@{RUN}/udev/data/\\+powercap:intel-rapl(:0(:[01])?)?$ f
!/@@{RUN}/udev/data/\\+queues:(tx|rx)-[0123]$ f
!/@@{RUN}/udev/data/\\+rfkill:rfkill[012]$ f
!/@@{RUN}/udev/data/\\+scsi:([1026]:0:0:0|host[0123456]|target[0126]:0:0)$ f
!/@@{RUN}/udev/data/\\+scsi_(device|disk):[0126]:0:0:0$ f
!/@@{RUN}/udev/data/\\+scsi_host:host[0123456]$ f
!/@@{RUN}/udev/data/\\+sdio:mmc[01]:0001:3$ f
!/@@{RUN}/udev/data/\\+serio:serio[012]$ f
!/@@{RUN}/udev/data/\\+sound:card[012]$ f
!/@@{RUN}/udev/data/\\+thermal:(cooling_device[0123]|thermal_zone[01])$ f
!/@@{RUN}/udev/data/\\+udc:fe980000\\.usb$ f
!/@@{RUN}/udev/data/\\+usb:[-[:digit:]\\.:]+$ f
!/@@{RUN}/udev/data/\\+usb-serial:ttyUSB[[:digit:]]$ f
!/@@{RUN}/udev/data/\\+vars:(AcpiGlobalVariable|Boot(00[[:xdigit:]]{2}|Current|OptionSupport|Order(Default)?)|Con(In|Out)(Dev)?|ConsoleLock|DIAGSPLSHSCRN|ErrOut(Dev)?|HDDPWD)-@@{STRICTUUID}$ f
!/@@{RUN}/udev/data/\\+vars:(Key000[012345]|LB[CL]|LBOL|(LBOP|LKOP)00[[:xdigit:]]{2}|LWO|LastBootCurrent|Lenovo((Security|System)?Config|PciResource|ScratchData)|LocalSecurityVars)-@@{STRICTUUID}$ f
!/@@{RUN}/udev/data/\\+vars:(MTC|MailBoxQ|MeBiosExtensionSetup|MemRestoreVariable|MemoryOverwriteRequestControl|OpromDevicePath|P(ba|wd)StatusVar|PchInit|PchS3Peim|PlatformLang(Codes)?)-@@{STRICTUUID}$ f
!/@@{RUN}/udev/data/\\+vars:(ProtectedBootOptions|SMBIOS(ELOG000|ELOGNUMBER|LEN|MEMSIZE)|Setup(HotKey)?|SmmS3NvsData|System|TcgSetup|Timeout|UCR)-@@{STRICTUUID}$ f
!/@@{RUN}/udev/data/\\+virtio:virtio[012345]$ f
!/@@{RUN}/udev/data/\\+vtconsole:vtcon[01]$ f
!/@@{RUN}/udev/data/\\+workqueue:(raid5wq|writeback)$ f
!/@@{RUN}/udev/link\\.dvd$ l
!/@@{RUN}/udev/links/\\\\x2f[-[:alnum:]_]+(\\\\x2f[-[:alnum:]_\\.]+)?$ d
#!/@@{RUN}/udev/links/\\\\x2f[-[:alnum:]_]+(\\\\x2f[-[:alnum:]_\\.]+)?/@@{RUNUDEVCONT}$ f
!/@@{RUN}/udev/links/cdrom$ d
!/@@{RUN}/udev/links/cdrom/b[[:digit:]]+:[[:digit:]]$ l
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-designator\\\\x2f[[:alnum:]]+$ d
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-designator\\\\x2f[[:alnum:]]+/b254:[13]$ l
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-diskseq\\\\x2f[[:digit:]]{1,2}(-part[[:digit:]])?$ d
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-diskseq\\\\x2f[[:digit:]]{1,2}(-part[[:digit:]])?/b(8|11|179|25[34]):([0123]|1[6789])$ l
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fscsi-[-_[:alnum:]]+_drive-scsi((0-){3})?0(-part[123])?$ d
#!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fscsi-[-_[:alnum:]]+_drive-scsi((0-){3})?0(-part[123])?/b8:[012]$ f
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fusb-[-_[:alnum:]]+-0:0(-part[123])?$ d
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fusb-[-_[:alnum:]]+-0:0(-part[123])?/b8:[0123]$ l
#!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fscsi-[-_[:alnum:]]+_drive-scsi((0-){3})?0(-part[123])?/b8:[012]$ f
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fata-[-_[:alnum:]]+(-part[123])?$ d
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fata-[-_[:alnum:]]+(-part[123])?/b(8|11|254):([0123]|1[6789])$ l
#!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fata-[-_[:alnum:]]+(-part[123])?/b(8|11|254):([0123]|1[6789])$ f
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fdm-name-[-_[:alnum:]]+$ d
#!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fdm-name-[-_[:alnum:]]+/b25[34]:[[:digit:]]{1,2}$ f
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fdm-name-[-_[:alnum:]]+/b25[34]:[[:digit:]]{1,2}$ l
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fmd-name-[-_[:alnum:]]+$ d
#!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fmd-name-[-_[:alnum:]]+/b9:0$ f
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fmd-uuid-([[:xdigit:]]{8}:){3}[[:xdigit:]]{8}$ d
#!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fmd-uuid-([[:xdigit:]]{8}:){3}[[:xdigit:]]{8}/b9:(0|127)$ f
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fmmc-[[:upper:][:digit:]]+_0x[[:xdigit:]]{8}$ d
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fmmc-[[:upper:][:digit:]]+_0x[[:xdigit:]]{8}/b179:0$ l
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fusb-[-[:alnum:]\\._]+_[[:digit:]]+-0:[0123]$ d
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fusb-[-[:alnum:]\\._]+_[[:digit:]]+-0:[0123]/b8:(0|16|32|48|64|80|96)$ l
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fwwn-0x[[:xdigit:]]{16}(-part[123])?$ d
#!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fwwn-0x[[:xdigit:]]{16}(-part[123])?/b8:([0123]|1[6789])$ f
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-id\\\\x2fwwn-0x[[:xdigit:]]{16}(-part[123])?/b8:([0123]|1[6789])$ l
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-(part)?label\\\\x2f[-.\\\\_[:alnum:]]+$ d
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-(part)?label\\\\x2f[-.\\\\_[:alnum:]]+/b(8|11|25[34]):[[:digit:]]{1,2}$ l
#!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-(part)?label\\\\x2f[-.\\\\_[:alnum:]]+/b(8|11|25[34]):[[:digit:]]{1,2}$ f
!/@@{RUN}/udev/links/\\\\x2fdisk\\\\x2fby-dname\\\\x2f[[:alnum:]]+-[[:alnum:]]+$ d
#!/@@{RUN}/udev/links/\\\\x2fdisk\\\\x2fby-dname\\\\x2f[[:alnum:]]+-[[:alnum:]]+/b(8|11|25[34]):[[:digit:]]{1,2}$ f
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-(part)?uuid\\\\x2f(@@{STRICTUUID}|[[:xdigit:]]{4}-[[:xdigit:]]{4}|[[:digit:]]{4}(-[[:digit:]]{2}){6}|[[:xdigit:]]{8}-[[:digit:]]{2})$ d
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-(part)?uuid\\\\x2f(@@{STRICTUUID}|[[:xdigit:]]{4}-[[:xdigit:]]{4}|[[:digit:]]{4}(-[[:digit:]]{2}){6}|[[:xdigit:]]{8}-[[:digit:]]{2})/b(8|11|25[34]):[[:digit:]]{1,2}$ l
#!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-(part)?uuid\\\\x2f(@@{STRICTUUID}|[[:xdigit:]]{4}-[[:xdigit:]]{4}|[[:digit:]]{4}(-[[:digit:]]{2}){6}|[[:xdigit:]]{8}-[[:digit:]]{2})/b(8|11|25[34]):[[:digit:]]{1,2}$ f
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-path\\\\x2fplatform-1c0f000\\.mmc$ d
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-path\\\\x2fplatform-1c0f000\\.mmc/b179:0$ l
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-path\\\\x2fplatform-1c18000\\.sata-ata-1(\\.0)?(-part[12])?$ d
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-path\\\\x2fplatform-1c18000\\.sata-ata-1(\\.0)?(-part[12])?/b8:[012]$ l
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-path\\\\x2fpci-@@{PCI_ADDRESS}(-usb-@@{USB_ADDRESS}-scsi-(0:){3}[0123])?$ d
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-path\\\\x2fpci-@@{PCI_ADDRESS}(-usb-@@{USB_ADDRESS}-scsi-(0:){3}[0123])?/b8:(0|16|32|48|64|80|96)$ l
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-path\\\\x2fplatform-fd500000\\.pcie-pci-@@{PCI_ADDRESS}-usb(v3)?-@@{USB_ADDRESS}-scsi-0:0:0:0(-part[123])?$ d
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-path\\\\x2fplatform-fd500000\\.pcie-pci-@@{PCI_ADDRESS}-usb(v3)?-@@{USB_ADDRESS}-scsi-0:0:0:0(-part[123])?/b8:[0123]$ l
@@define LOCAL_VARIANTS (\\\\x2f)?disk\\\\x2fby-path\\\\x2f(pci-@@{PCI_ADDRESS}(-ata-[13](\\.0)?|-scsi-(0:){3}0)?|platform-(3f000000|fd500000)\\.pcie-pci-@@{PCI_ADDRESS}(-usb-@@{USB_ADDRESS}-scsi-0:0:0:0)?)
!/@@{RUN}/udev/links/@@{LOCAL_VARIANTS}(-part([12345]|\\\\x2fby-(part)?label\\\\x2f[-[:alnum:]_]+))?$ d
!/@@{RUN}/udev/links/@@{LOCAL_VARIANTS}(-part([12345]|\\\\x2fby-(part)?label\\\\x2f[-[:alnum:]_]+))?/b(8|11|1[678]|254):[[:digit:]]+$ l
!/@@{RUN}/udev/links/@@{LOCAL_VARIANTS}(-part([12345]|\\\\x2fby-partnum\\\\x2f[[:digit:]]))?$ d
!/@@{RUN}/udev/links/@@{LOCAL_VARIANTS}(-part([12345]|\\\\x2fby-partnum\\\\x2f[[:digit:]]))?/b(8|11|254):[[:digit:]]+$ l
!/@@{RUN}/udev/links/@@{LOCAL_VARIANTS}(-part([12345]|\\\\x2fby-(part)?uuid\\\\x2f@@{STRICTUUID}))?$ d
!/@@{RUN}/udev/links/@@{LOCAL_VARIANTS}(-part([12345]|\\\\x2fby-(part)?uuid\\\\x2f@@{STRICTUUID}))?/b(8|11|254):[01235]$ l
!/@@{RUN}/udev/links/@@{LOCAL_VARIANTS}(-part([12345]|\\\\x2fby-uuid\\\\x2f[[:xdigit:]]{4}-[[:xdigit:]]{4})?)$ d
!/@@{RUN}/udev/links/@@{LOCAL_VARIANTS}(-part([12345]|\\\\x2fby-uuid\\\\x2f[[:xdigit:]]{4}-[[:xdigit:]]{4})?)/b(8|11|254):[0125]$ l
!/@@{RUN}/udev/links/@@{LOCAL_VARIANTS}(-part[12345])?/b(8|11|254):[0125]$ l
@@undef LOCAL_VARIANTS
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-path\\\\x2f(virtio-)?pci-@@{PCI_ADDRESS}(-ata-[12](\\.[01])?)?(-part[12345])?$ d
# pre-trixie? !/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-path\\\\x2f(virtio-)?pci-@@{PCI_ADDRESS}(-ata-[12](\\.[01])?|-scsi-0:0:0:0)?(-part[12345])?/b(8|11|254):[[:digit:]]{1,2}$ f
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-path\\\\x2f(virtio-)?pci-@@{PCI_ADDRESS}(-ata-[12](\\.[01])?)?(-part[12345])?/b(8|11|254):[[:digit:]]{1,2}$ l
!/@@{RUN}/udev/links/(\\\\x2f)?disk\\\\x2fby-path\\\\x2fpci-@@{PCI_ADDRESS}(-part)\\\\x2fby-(part)?uuid\\\\x2f@@{STRICTUUID}/b(8|11|254):[[:digit:]]{1,2}$ l
!/@@{RUN}/udev/links/(\\\\x2f)?dri\\\\x2fby-path\\\\x2f(pci-@@{PCI_ADDRESS}|platform-(fec00000\\.)?gpu)-(card|render)$ d
!/@@{RUN}/udev/links/(\\\\x2f)?dri\\\\x2fby-path\\\\x2f(pci-@@{PCI_ADDRESS}|platform-(fec00000\\.)?gpu)-(card|render)/c226:(0|1|128)$ l
!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-id\\\\x2fusb-QEMU_QEMU_USB_Tablet_(42(-hidraw)?|28754-@@{PCI_ADDRESS}:00\\.0-1)(-(hidraw|event))?(-kbd|-mouse)?$ d
#!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-id\\\\x2fusb-QEMU_QEMU_USB_Tablet_(42)(-event)?(-mouse)?/c13:(33|67)$ f
!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-id\\\\x2fusb-QEMU_QEMU_USB_Tablet_(42|28754-@@{PCI_ADDRESS}:00\\.0-1)(-event)?(-kbd|-mouse)?/c13:(13|32|33|34|65|67)$ l
!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-id\\\\x2fusb-QEMU_QEMU_USB_Tablet_(42-hidraw|28754-@@{PCI_ADDRESS}:00\\.0-1-hidraw)/c24[56]:0$ l
!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-path\\\\x2fplatform-fef0[05]700\\.hdmi-event$ d
!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-path\\\\x2fplatform-fef0[05]700\\.hdmi-event/c13:6[45]$ l
!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-path\\\\x2fpci-@@{PCI_ADDRESS}-usb(v2)?-@@{USB_ADDRESS}(-(event|hidraw))?(-kbd|-mouse)?$ d
!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-path\\\\x2fpci-@@{PCI_ADDRESS}-usb(v2)?-@@{USB_ADDRESS}(-event)?(-kbd|-mouse)?/c13:(13|32|33|34|65|67)$ l
#!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-path\\\\x2fpci-@@{PCI_ADDRESS}-usb(v2)?-@@{USB_ADDRESS}(-event)?(-kbd|-mouse)?/c13:(13|32|33|34|65|67)$ f
!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-path\\\\x2fpci-@@{PCI_ADDRESS}-usb(v2)?-@@{USB_ADDRESS}-hidraw/c24[56]:0$ l
!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-path\\\\x2fplatform-gpio-keys-event$ d
!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-path\\\\x2fplatform-gpio-keys-event/c13:64$ l
!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-path\\\\x2fplatform-i8042-serio-[012](-event)?(-kbd|-mouse)?$ d
#!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-path\\\\x2fplatform-i8042-serio-[012](-event)?(-kbd|-mouse)?/c13:(3[23]|6[456])$ f
!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-path\\\\x2fplatform-i8042-serio-0-event-kbd$ l
!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-path\\\\x2fplatform-i8042-serio-[012](-event)?(-kbd|-mouse)?/c13:(3[23]|6[456])$ l
!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-path\\\\x2fplatform-pcspkr-event-spkr$ d
!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-path\\\\x2fplatform-pcspkr-event-spkr/c13:(68|69|70)$ l
!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-path\\\\x2fplatform-thinkpad_acpi-event$ d
#!/@@{RUN}/udev/links/(\\\\x2f)?input\\\\x2fby-path\\\\x2fplatform-thinkpad_acpi-event/c13:71$ f
!/@@{RUN}/udev/links/(\\\\x2f)?serial\\\\x2fby-id\\\\x2fusb-[-_.[:alnum:]]+-if0[01]-port0+$ d
!/@@{RUN}/udev/links/(\\\\x2f)?serial\\\\x2fby-id\\\\x2fusb-[-_.[:alnum:]]+-if0[01]-port0+/c188:[[:digit:]]$ l
!/@@{RUN}/udev/links/(\\\\x2f)?serial\\\\x2fby-path\\\\x2fpci-@@{PCI_ADDRESS}-usb(v2)?-@@{USB_ADDRESS}-port0$ d
!/@@{RUN}/udev/links/(\\\\x2f)?serial\\\\x2fby-path\\\\x2fpci-@@{PCI_ADDRESS}-usb(v2)?-@@{USB_ADDRESS}/c188:0$ l
!/@@{RUN}/udev/links/(\\\\x2f)?serial\\\\x2fby-path\\\\x2fplatform-fd500000\\.pcie-pci-@@{PCI_ADDRESS}-usb(v2)?-@@{USB_ADDRESS}-port0$ d
!/@@{RUN}/udev/links/(\\\\x2f)?serial\\\\x2fby-path\\\\x2fplatform-fd500000\\.pcie-pci-@@{PCI_ADDRESS}-usb(v2)?-@@{USB_ADDRESS}-port0/c188:[[:digit:]]$ f
!/@@{RUN}/udev/links/(\\\\x2f)?snd\\\\x2fby-path\\\\x2f(platform-(fe00b840\\.mailbox|fef0[05]700\\.hdmi)|pci-@@{PCI_ADDRESS})$ d
!/@@{RUN}/udev/links/(\\\\x2f)?snd\\\\x2fby-path\\\\x2f(platform-(fe00b840\\.mailbox|fef0[05]700\\.hdmi)|pci-@@{PCI_ADDRESS})/c116:[3579]$ l
!/@@{RUN}/udev/links/mapper\\\\x2f[-[:alnum:]]+$ d
!/@@{RUN}/udev/links/mapper\\\\x2f[-[:alnum:]]+/b253+:@@{DN_MINOR}$ l
!/@@{RUN}/udev/links/rtc$ d
!/@@{RUN}/udev/links/rtc/c(249|251|252):[[:digit:]]{1,2}$ l
!/@@{RUN}/udev/links/virtio-ports\\\\x2f(com\\.redhat\\.spice\\.0|org\\.qemu\\.guest_agent\\.0)$ d
!/@@{RUN}/udev/links/virtio-ports\\\\x2f(com\\.redhat\\.spice\\.0|org\\.qemu\\.guest_agent\\.0)/c[[:digit:]]+:[[:digit:]]$ l
!/@@{RUN}/udev/links/[[:alnum:]]+\\\\x2f[-[:alnum:]]+$ d
!/@@{RUN}/udev/links/[[:alnum:]]+\\\\x2f[-[:alnum:]]+/b[[:digit:]]+:[[:digit:]]$ l
!/@@{RUN}/udev/watch/b@@{DN_MAJOR}:@@{DN_MINOR}{1,2}$ l
!/@@{RUN}/udev/static_node-tags(/uaccess)?$ d
!/@@{RUN}/udev/static_node-tags/uaccess/snd\\\\x2f(seq|timer)$ l
!/@@{RUN}/udev/tags/(power-switch|(master-of-)?seat|systemd|uaccess)$ d
!/@@{RUN}/udev/tags/(power-switch|(master-of-)?seat|systemd|uaccess)/@@{RUNUDEVCONT}$ f
!/@@{RUN}/udev/tags/systemd/\\+module:(configfs|fuse)$ f
!/@@{RUN}/udev/tags/(master-of-)?seat/@@{RUNUDEVVIDEO}$ f
!/@@{RUN}/udev/tags/seat/@@{RUNUDEVVIDEO}$ f
!/@@{RUN}/udev/(data|tags/(seat|systemd))/\\+backlight:(acpi_video0|intel_backlight)$ f
!/@@{RUN}/udev/tags/seat/(\\+input:input[[:digit:]]+|\\+leds:@@{RUNUDEVLEDS})$ f
!/@@{RUN}/udev/tags/seat/\\+sound:card[012]$ f
!/@@{RUN}/udev/(data|tags/systemd)/\\+bluetooth:hci0$ f
!/@@{RUN}/udev/tags/systemd/\\+udc:fe980000\\.usb$ f
!/@@{RUN}/udev/watch/[[:digit:]]+$ l
@@undef RUNUDEVCONT
@@undef RUNUDEVLEDS
@@undef RUNUDEVVIDEO
