chiark / gitweb /
networkd: use Type=notify
[elogind.git] / rules / 50-udev-default.rules
1 # do not edit this file, it will be overwritten on update
2
3 SUBSYSTEM=="virtio-ports", KERNEL=="vport*", ATTR{name}=="?*", SYMLINK+="virtio-ports/$attr{name}"
4
5 # select "system RTC" or just use the first one
6 SUBSYSTEM=="rtc", ATTR{hctosys}=="1", SYMLINK+="rtc"
7 SUBSYSTEM=="rtc", KERNEL=="rtc0", SYMLINK+="rtc", OPTIONS+="link_priority=-100"
8
9 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=usb"
10 SUBSYSTEM=="input", ENV{ID_INPUT}=="", IMPORT{builtin}="input_id"
11 ENV{MODALIAS}!="", IMPORT{builtin}="hwdb --subsystem=$env{SUBSYSTEM}"
12
13 ACTION!="add", GOTO="default_permissions_end"
14
15 SUBSYSTEM=="tty", KERNEL=="ptmx", GROUP="tty", MODE="0666"
16 SUBSYSTEM=="tty", KERNEL=="tty", GROUP="tty", MODE="0666"
17 SUBSYSTEM=="tty", KERNEL=="tty[0-9]*", GROUP="tty", MODE="0620"
18 SUBSYSTEM=="vc", KERNEL=="vcs*|vcsa*", GROUP="tty"
19 KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"
20
21 SUBSYSTEM=="mem", KERNEL=="mem|kmem|port", GROUP="kmem", MODE="0640"
22
23 SUBSYSTEM=="input", KERNEL=="js[0-9]*", MODE="0664"
24
25 SUBSYSTEM=="video4linux", GROUP="video"
26 SUBSYSTEM=="misc", KERNEL=="agpgart", GROUP="video"
27 SUBSYSTEM=="graphics", GROUP="video"
28 SUBSYSTEM=="drm", GROUP="video"
29 SUBSYSTEM=="dvb", GROUP="video"
30
31 SUBSYSTEM=="sound", GROUP="audio", \
32   OPTIONS+="static_node=snd/seq", OPTIONS+="static_node=snd/timer"
33
34 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664"
35
36 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", GROUP="video"
37 SUBSYSTEM=="firewire", ATTR{units}=="*0x00b09d:0x00010*", GROUP="video"
38 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", GROUP="video"
39 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", GROUP="video"
40
41 KERNEL=="parport[0-9]*", GROUP="lp"
42 SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp"
43 SUBSYSTEM=="ppdev", GROUP="lp"
44 KERNEL=="lp[0-9]*", GROUP="lp"
45 KERNEL=="irlpt[0-9]*", GROUP="lp"
46 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", GROUP="lp"
47
48 SUBSYSTEM=="block", GROUP="disk"
49 SUBSYSTEM=="block", KERNEL=="fd[0-9]", GROUP="floppy"
50 SUBSYSTEM=="block", KERNEL=="sr[0-9]*", GROUP="cdrom"
51 SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", GROUP="cdrom"
52 KERNEL=="sch[0-9]*", GROUP="cdrom"
53 KERNEL=="pktcdvd[0-9]*", GROUP="cdrom"
54 KERNEL=="pktcdvd", GROUP="cdrom"
55
56 SUBSYSTEM=="scsi_generic|scsi_tape", SUBSYSTEMS=="scsi", ATTRS{type}=="1|8", GROUP="tape"
57 SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="0", GROUP="disk"
58 KERNEL=="qft[0-9]*|nqft[0-9]*|zqft[0-9]*|nzqft[0-9]*|rawqft[0-9]*|nrawqft[0-9]*", GROUP="disk"
59 KERNEL=="rawctl", GROUP="disk"
60 SUBSYSTEM=="raw", KERNEL=="raw[0-9]*", GROUP="disk"
61 SUBSYSTEM=="aoe", GROUP="disk", MODE="0220"
62 SUBSYSTEM=="aoe", KERNEL=="err", MODE="0440"
63
64 KERNEL=="rfkill", MODE="0664"
65 KERNEL=="tun", MODE="0666", OPTIONS+="static_node=net/tun"
66
67 KERNEL=="fuse", MODE="0666", OPTIONS+="static_node=fuse"
68
69 LABEL="default_permissions_end"