chiark / gitweb /
fix typo in GROUP value application
[elogind.git] / etc / udev / redhat / udev.rules
1 # There are a number of modifiers that are allowed to be used in some of the
2 # fields.  See the udev man page for a full description of them.
3 #
4 # default is OWNER="root" GROUP="root", MODE="0600"
5 #
6
7 # all block devices
8 SUBSYSTEM=="block",             GROUP="disk", MODE="0640"
9
10 # console devices
11 KERNEL=="tty",                  MODE="0666"
12 KERNEL=="tty[0-9]",             GROUP="tty", MODE="0660"
13 KERNEL=="tty[0-9][0-9]*",       GROUP="tty", MODE="0660"
14 KERNEL=="vc/[0-9]*",            GROUP="tty", MODE="0660"
15
16 # pty devices
17 #  Set this to 0660 if you only want users belonging to tty group
18 #  to be able to allocate PTYs
19 KERNEL=="ptmx",                 GROUP="tty", MODE="0666"
20 KERNEL=="pty[p-za-e][0-9a-f]*", GROUP="tty", MODE="0660"
21 KERNEL=="tty[p-za-e][0-9a-f]*", GROUP="tty", MODE="0660"
22 KERNEL=="pty/m*",               GROUP="tty", MODE="0660"
23 KERNEL=="vc/s*",                GROUP="tty", MODE="0660"
24
25 # serial+dialup devices
26 KERNEL=="ttyS*",                GROUP="uucp", MODE="0660"
27 KERNEL=="ippp*",                MODE="0660"
28 KERNEL=="isdn*",                MODE="0660"
29 KERNEL=="isdnctrl*",            MODE="0660"
30 KERNEL=="capi*",                MODE="0660"
31 KERNEL=="dcbri*",               MODE="0660"
32 KERNEL=="ircomm*",              GROUP="uucp", MODE="0660"
33 KERNEL=="ttyUSB*",              GROUP="uucp", MODE="0660"
34 KERNEL=="tts/[0-9]*",           GROUP="uucp", MODE="0660"
35 KERNEL=="tts/USB[0-9]*",        GROUP="uucp", MODE="0660"
36
37 # vc devices
38 KERNEL=="vcs",                  OWNER="vcsa", GROUP="tty"
39 KERNEL=="vcs[0-9]*",            OWNER="vcsa", GROUP="tty"
40 KERNEL=="vcsa",                 OWNER="vcsa", GROUP="tty"
41 KERNEL=="vcsa[0-9]*",           OWNER="vcsa", GROUP="tty"
42 KERNEL=="vcc/*",                OWNER="vcsa", GROUP="tty"
43
44 # memory devices
45 KERNEL=="random",               MODE="0666"
46 KERNEL=="urandom",              MODE="0444"
47 KERNEL=="mem",                  GROUP="kmem", MODE="0640"
48 KERNEL=="kmem",                 GROUP="kmem", MODE="0640"
49 KERNEL=="port",                 GROUP="kmem", MODE="0640"
50 KERNEL=="full",                 MODE="0666"
51 KERNEL=="null",                 MODE="0666"
52 KERNEL=="zero",                 MODE="0666"
53
54 # misc devices
55 KERNEL=="nvram",                MODE="0660"
56 KERNEL=="rtc",                  MODE="0644"
57
58 # floppy devices
59 KERNEL=="fd[01]*",              GROUP="floppy", MODE="0660"
60
61 # audio devices
62 KERNEL=="dsp*",                 MODE="0660"
63 KERNEL=="audio*",               MODE="0660"
64 KERNEL=="midi*",                MODE="0660"
65 KERNEL=="mixer*",               MODE="0660"
66 KERNEL=="sequencer*",           MODE="0660"
67 KERNEL=="sound/*",              MODE="0660"
68 KERNEL=="snd/*",                MODE="0660"
69 KERNEL=="beep",                 MODE="0660"
70 KERNEL=="admm*",                MODE="0660"
71 KERNEL=="adsp*",                MODE="0660"
72 KERNEL=="aload*",               MODE="0660"
73 KERNEL=="amidi*",               MODE="0660"
74 KERNEL=="dmfm*",                MODE="0660"
75 KERNEL=="dmmidi*",              MODE="0660"
76 KERNEL=="sndstat",              MODE="0660"
77
78 # pilot/palm devices
79 KERNEL=="pilot",                GROUP="uucp", MODE="0660"
80
81 # lp devices
82 KERNEL=="lp*",                  GROUP="lp", MODE="0660"
83 KERNEL=="parport*",             GROUP="lp", MODE="0660"
84 KERNEL=="irlpt*",               GROUP="lp", MODE="0660"
85 KERNEL=="usblp*",               GROUP="lp", MODE="0660"
86 KERNEL=="usb/lp*",              GROUP="lp", MODE="0660"
87
88 # tape devices
89 KERNEL=="ht*",                  GROUP="disk", MODE="0640"
90 KERNEL=="nht*",                 GROUP="disk", MODE="0640"
91 KERNEL=="pt[0-9]*",             GROUP="disk", MODE="0640"
92 KERNEL=="npt*",                 GROUP="disk", MODE="0640"
93 KERNEL=="st*",                  GROUP="disk", MODE="0640"
94 KERNEL=="nst*",                 GROUP="disk", MODE="0640"
95 KERNEL=="osst*",                GROUP="disk", MODE="0640"
96 KERNEL=="nosst*",               GROUP="disk", MODE="0640"
97
98 # diskonkey devices
99 KERNEL=="diskonkey*",           GROUP="disk", MODE="0640"
100
101 # rem_ide devices
102 KERNEL=="microdrive*",          GROUP="disk", MODE="0640"
103
104 # kbd devices
105 KERNEL=="kbd",                  MODE="0644"
106
107 # joystick devices
108 KERNEL=="js[0-9]*",             MODE="0644"
109 KERNEL=="djs[0-9]*",            MODE="0644"
110
111 # v4l devices
112 KERNEL=="video*",               MODE="0660"
113 KERNEL=="radio*",               MODE="0660"
114 KERNEL=="winradio*",            MODE="0660"
115 KERNEL=="vtx*",                 MODE="0660"
116 KERNEL=="vbi*",                 MODE="0660"
117 KERNEL=="video/*",              MODE="0660"
118 KERNEL=="vttuner",              MODE="0660"
119 KERNEL=="v4l/*",                MODE="0660"
120
121 # input devices
122 KERNEL=="input/*",              MODE="0660"
123
124 # gpm devices
125 KERNEL=="gpmctl",               MODE="0700"
126
127 # dri devices
128 KERNEL=="nvidia*",              MODE="0660"
129 KERNEL=="3dfx*",                MODE="0660"
130 KERNEL=="dri/*",                MODE="0666"
131
132 # usb devices
133 KERNEL=="usb/dabusb*",          GROUP="usb", MODE="0660"
134 KERNEL=="usb/mdc800*",          GROUP="usb", MODE="0660"
135 KERNEL=="usb/rio500",           GROUP="usb", MODE="0660"
136
137 # s390 devices
138 KERNEL=="z90crypt",             MODE="0666"
139
140 # DVB
141 KERNEL=="dvb/*",                MODE="0660"
142 KERNEL=="dvb",                  MODE="0660"
143 KERNEL=="dvb/adapter*",         MODE="0660"
144
145 # create a symlink named after the device map name
146 # note devmap_name comes with extras/multipath
147 #KERNEL=="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c"
148
149 # DRI devices always go into a subdirectory (as per the LSB spec)
150 KERNEL=="card*",                NAME="dri/card%n"
151
152 # alsa devices
153 KERNEL=="controlC[0-9]*",       NAME="snd/%k"
154 KERNEL=="hw[CD0-9]*",           NAME="snd/%k"
155 KERNEL=="pcm[CD0-9cp]*",        NAME="snd/%k"
156 KERNEL=="midi[CD0-9]*",         NAME="snd/%k"
157 KERNEL=="timer",                NAME="snd/%k"
158 KERNEL=="seq",                  NAME="snd/%k"
159
160 # input devices
161 KERNEL=="mice",                 NAME="input/%k"
162 KERNEL=="mouse*",               NAME="input/%k"
163 KERNEL=="event*",               NAME="input/%k"
164 KERNEL=="js*",                  NAME="input/%k"
165 KERNEL=="ts*",                  NAME="input/%k"
166
167 KERNEL=="raw[0-9]*",            NAME="raw/%k"
168
169 KERNEL=="lp[0-9]*",             SYMLINK="par%n"
170 BUS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k"
171
172 KERNEL=="microcode",            NAME="cpu/%k"
173 KERNEL=="ram1",                 SYMLINK="ram"
174 KERNEL=="video0",               SYMLINK="video"
175 KERNEL=="radio0",               SYMLINK="radio"
176 KERNEL=="audio0",               SYMLINK="audio"
177 KERNEL=="dsp0",                 SYMLINK="dsp"
178 KERNEL=="fb0",                  SYMLINK="fb"
179 KERNEL=="qft0",                 SYMLINK="ftape"
180 KERNEL=="isdnctrl0",            SYMLINK="isdnctrl"
181 KERNEL=="mixer0",               SYMLINK="mixer"
182 KERNEL=="ram0",                 SYMLINK="ramdisk"
183 KERNEL=="sbpcd0",               SYMLINK="sbpcd"
184 KERNEL=="radio0",               SYMLINK="radio"
185 KERNEL=="tty0",                 SYMLINK="systty"
186 KERNEL=="vbi0",                 SYMLINK="vbi"
187 KERNEL=="null",                 SYMLINK="XOR"
188
189 KERNEL=="tun",                  NAME="net/%k"
190
191 KERNEL=="device-mapper",        NAME="mapper/control"
192
193 # old compat symlinks with enumeration
194 KERNEL=="sr[0-9]*",             SYMLINK="cdrom%e"
195 KERNEL=="scd[0-9]*",            SYMLINK="cdrom%e"
196 KERNEL=="pcd[0-9]*",            SYMLINK="cdrom%e"
197 KERNEL=="fd[0-9]*",             SYMLINK="floppy%e"
198 KERNEL=="nst[0-9]", BUS=="scsi",        SYMLINK="tape%e"
199 KERNEL=="nosst[0-9]", BUS=="scsi",      SYMLINK="tape%e"
200
201 KERNEL=="umad*",                NAME="infiniband/%k"
202 KERNEL=="issm*",                NAME="infiniband/%k"
203
204 # Section for zaptel device
205 KERNEL=="zapctl",               NAME="zap/ctl"
206 KERNEL=="zaptimer",             NAME="zap/timer"
207 KERNEL=="zapchannel",           NAME="zap/channel"
208 KERNEL=="zappseudo",            NAME="zap/pseudo"
209 KERNEL=="zap[0-9]*",            NAME="zap/%n"
210
211 # do not seperate the next 2 lines!!
212 KERNEL=="hd[a-z]", BUS=="ide", SYSFS{removable}=="1", PROGRAM=="/etc/udev/scripts/ide-media.sh %k", RESULT=="floppy", SYMLINK="floppy%e", NAME{ignore_remove, all_partitions}="%k"
213
214 KERNEL=="hd[a-z]", BUS=="ide", SYSFS{removable}=="1", RESULT=="cdrom", SYMLINK="cdrom%e"
215
216 KERNEL=="hd[a-z]", BUS=="ide", SYSFS{removable}=="1", PROGRAM=="/etc/udev/scripts/check-cdrom.sh %k DVD", SYMLINK="dvd%e"
217 KERNEL=="sr[0-9]*", BUS=="scsi", PROGRAM=="/etc/udev/scripts/check-cdrom.sh %k DVD", SYMLINK="dvd%e"
218
219 KERNEL=="hd[a-z]", BUS=="ide", SYSFS{removable}=="1", PROGRAM=="/etc/udev/scripts/check-cdrom.sh %k CD-R", SYMLINK="cdwriter%e"
220 KERNEL=="sr[0-9]*", BUS=="scsi", PROGRAM=="/etc/udev/scripts/check-cdrom.sh %k CD-R", SYMLINK="cdwriter%e"
221
222 KERNEL=="hd[a-z]", BUS=="ide", SYSFS{removable}=="1", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD-R", SYMLINK="dvdwriter%e"
223 KERNEL=="sr[0-9]*", BUS=="scsi", PROGRAM=="/etc/udev/scripts/check-cdrom.sh %k DVD-R", SYMLINK="dvdwriter%e"
224
225 # rename sr* to scd*
226 KERNEL=="sr[0-9]*", BUS=="scsi", NAME="scd%n"
227 KERNEL=="hd[a-z]*", BUS=="ide", SYSFS{removable}=="1", NAME{ignore_remove}="%k"
228
229 KERNEL=="dvb*", PROGRAM=="/etc/udev/scripts/dvb.sh %k", NAME="%c"