chiark / gitweb /
rules: fix wrong wildcard match, we always need a ':*' at the end
[elogind.git] / rules / rules.d / 50-udev-default.rules
1 # do not edit this file, it will be overwritten on update
2
3 KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660"
4 KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660"
5 KERNEL=="ptmx",                 GROUP="tty", MODE="0666"
6 KERNEL=="tty",                  GROUP="tty", MODE="0666"
7 KERNEL=="tty[0-9]*",            GROUP="tty", MODE="0620"
8 KERNEL=="vcs|vcs[0-9]*|vcsa|vcsa[0-9]*", GROUP="tty"
9
10 # serial
11 KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"
12 KERNEL=="mwave",                GROUP="dialout"
13 KERNEL=="hvc*|hvsi*",           GROUP="dialout"
14
15 # virtio serial / console ports
16 KERNEL=="vport*", ATTR{name}=="?*", SYMLINK+="virtio-ports/$attr{name}"
17
18 # mem
19 KERNEL=="null|zero|full|random|urandom", MODE="0666"
20 KERNEL=="mem|kmem|port|nvram",  GROUP="kmem", MODE="0640"
21
22 # input
23 KERNEL=="mouse*|mice|event*",   MODE="0640"
24 KERNEL=="ts[0-9]*|uinput",      MODE="0640"
25 KERNEL=="js[0-9]*",             MODE="0644"
26
27 # video4linux
28 SUBSYSTEM=="video4linux",       GROUP="video"
29 KERNEL=="vttuner*",             GROUP="video"
30 KERNEL=="vtx*|vbi*",            GROUP="video"
31 KERNEL=="winradio*",            GROUP="video"
32
33 # graphics
34 KERNEL=="agpgart",              GROUP="video"
35 KERNEL=="pmu",                  GROUP="video"
36 KERNEL=="nvidia*|nvidiactl*",   GROUP="video"
37 SUBSYSTEM=="graphics",          GROUP="video"
38 SUBSYSTEM=="drm",               GROUP="video"
39
40 # sound
41 SUBSYSTEM=="sound",             GROUP="audio", \
42   OPTIONS+="static_node=snd/seq", OPTIONS+="static_node=snd/timer"
43
44 # DVB (video)
45 SUBSYSTEM=="dvb", GROUP="video"
46
47 # FireWire (firewire-core driver: IIDC devices, AV/C devices)
48 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", GROUP="video"
49 SUBSYSTEM=="firewire", ATTR{units}=="*0x00b09d:0x00010*", GROUP="video"
50 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", GROUP="video"
51 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", GROUP="video"
52
53 # libusb device nodes
54 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664"
55 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="", IMPORT{program}="usb_id --export %p"
56
57 # printer
58 KERNEL=="parport[0-9]*",        GROUP="lp"
59 SUBSYSTEM=="printer",           KERNEL=="lp*", GROUP="lp"
60 SUBSYSTEM=="ppdev",             GROUP="lp"
61 SUBSYSTEM=="usb",               KERNEL=="lp*", SYMLINK+="usb%k", GROUP="lp"
62 KERNEL=="lp[0-9]*",             GROUP="lp"
63 KERNEL=="irlpt[0-9]*",          GROUP="lp"
64 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", GROUP="lp"
65
66 # block
67 SUBSYSTEM=="block", GROUP="disk"
68
69 # floppy
70 SUBSYSTEM=="block", KERNEL=="fd[0-9]", GROUP="floppy"
71
72 # cdrom
73 SUBSYSTEM=="block", KERNEL=="sr[0-9]*", SYMLINK+="scd%n", GROUP="cdrom"
74 SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", GROUP="cdrom"
75 KERNEL=="pktcdvd[0-9]*", GROUP="cdrom"
76 KERNEL=="pktcdvd", GROUP="cdrom"
77
78 # tape
79 KERNEL=="ht[0-9]*|nht[0-9]*", GROUP="tape"
80 KERNEL=="pt[0-9]*|npt[0-9]*|pht[0-9]*", GROUP="tape"
81 SUBSYSTEM=="scsi_generic|scsi_tape", SUBSYSTEMS=="scsi", ATTRS{type}=="1|8", GROUP="tape"
82
83 # block-related
84 KERNEL=="sch[0-9]*", GROUP="disk"
85 SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="0", GROUP="disk"
86 KERNEL=="pg[0-9]*", GROUP="disk"
87 KERNEL=="qft[0-9]*|nqft[0-9]*|zqft[0-9]*|nzqft[0-9]*|rawqft[0-9]*|nrawqft[0-9]*", GROUP="disk"
88 KERNEL=="rawctl", GROUP="disk"
89 SUBSYSTEM=="raw", KERNEL=="raw[0-9]*", GROUP="disk"
90 SUBSYSTEM=="aoe", GROUP="disk", MODE="0220"
91 SUBSYSTEM=="aoe", KERNEL=="err", MODE="0440"
92
93 # network
94 KERNEL=="tun",                  MODE="0666", OPTIONS+="static_node=net/tun"
95 KERNEL=="rfkill",               MODE="0644"
96
97 # CPU
98 KERNEL=="cpu[0-9]*",            MODE="0444"
99
100 KERNEL=="fuse",                 MODE="0666", OPTIONS+="static_node=fuse", \
101   RUN+="/bin/mount -t fusectl fusectl /sys/fs/fuse/connections"
102
103 SUBSYSTEM=="rtc", DRIVERS=="rtc_cmos", SYMLINK+="rtc"
104 KERNEL=="mmtimer",              MODE="0644"
105 KERNEL=="rflash[0-9]*",         MODE="0400"
106 KERNEL=="rrom[0-9]*",           MODE="0400"