diff options
Diffstat (limited to 'meta/packages/udev/files/permissions.rules')
-rw-r--r-- | meta/packages/udev/files/permissions.rules | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/meta/packages/udev/files/permissions.rules b/meta/packages/udev/files/permissions.rules new file mode 100644 index 0000000000..86d771276b --- /dev/null +++ b/meta/packages/udev/files/permissions.rules | |||
@@ -0,0 +1,81 @@ | |||
1 | # default permissions for block devices | ||
2 | SUBSYSTEM=="block", GROUP="disk" | ||
3 | SUBSYSTEM=="block", SYSFS{removable}=="1", GROUP="floppy" | ||
4 | |||
5 | # IDE devices | ||
6 | BUS=="ide", KERNEL=="hd[a-z]", SYSFS{removable}="1", \ | ||
7 | PROGRAM="/bin/cat /proc/ide/%k/media", RESULT=="cdrom*", GROUP="cdrom" | ||
8 | BUS=="ide", KERNEL=="ht[0-9]*", GROUP="tape" | ||
9 | BUS=="ide", KERNEL=="nht[0-9]*", GROUP="tape" | ||
10 | |||
11 | # SCSI devices | ||
12 | BUS=="scsi", SYSFS{type}=="1", GROUP="tape" | ||
13 | BUS=="scsi", SYSFS{type}=="5", GROUP="cdrom" | ||
14 | BUS=="scsi", SYSFS{type}=="6", GROUP="scanner" | ||
15 | |||
16 | # USB devices | ||
17 | BUS=="usb", KERNEL=="legousbtower*", MODE="0666" | ||
18 | BUS=="usb", KERNEL=="lp[0-9]*", GROUP="lp" | ||
19 | |||
20 | # serial devices | ||
21 | SUBSYSTEM=="tty", GROUP="dialout" | ||
22 | SUBSYSTEM=="capi", GROUP="dialout" | ||
23 | SUBSYSTEM=="slamr", GROUP="dialout" | ||
24 | |||
25 | # vc devices (all members of the tty subsystem) | ||
26 | KERNEL=="ptmx", MODE="0666", GROUP="root" | ||
27 | KERNEL=="console", MODE="0600", GROUP="root" | ||
28 | KERNEL=="tty", MODE="0666", GROUP="root" | ||
29 | KERNEL=="tty[0-9]*", GROUP="root" | ||
30 | KERNEL=="pty*", MODE="0666", GROUP="tty" | ||
31 | |||
32 | # video devices | ||
33 | SUBSYSTEM=="video4linux", GROUP="video" | ||
34 | SUBSYSTEM=="drm", GROUP="video" | ||
35 | SUBSYSTEM=="dvb", GROUP="video" | ||
36 | SUBSYSTEM=="em8300", GROUP="video" | ||
37 | SUBSYSTEM=="graphics", GROUP="video" | ||
38 | SUBSYSTEM=="nvidia", GROUP="video" | ||
39 | |||
40 | # misc devices | ||
41 | KERNEL=="random", MODE="0666" | ||
42 | KERNEL=="urandom", MODE="0444" | ||
43 | KERNEL=="mem", MODE="0640", GROUP="kmem" | ||
44 | KERNEL=="kmem", MODE="0640", GROUP="kmem" | ||
45 | KERNEL=="port", MODE="0640", GROUP="kmem" | ||
46 | KERNEL=="full", MODE="0666" | ||
47 | KERNEL=="null", MODE="0666" | ||
48 | KERNEL=="zero", MODE="0666" | ||
49 | KERNEL=="inotify", MODE="0666" | ||
50 | KERNEL=="sgi_fetchop", MODE="0666" | ||
51 | KERNEL=="sonypi", MODE="0666" | ||
52 | KERNEL=="agpgart", GROUP="video" | ||
53 | KERNEL=="nvram", GROUP="nvram" | ||
54 | KERNEL=="rtc", MODE="0660", GROUP="audio" | ||
55 | |||
56 | KERNEL=="cdemu[0-9]*", GROUP="cdrom" | ||
57 | KERNEL=="pktcdvd[0-9]*", GROUP="cdrom" | ||
58 | KERNEL=="pktcdvd", MODE="0644" | ||
59 | |||
60 | # printers and parallel devices | ||
61 | SUBSYSTEM=="printer", GROUP="lp" | ||
62 | SUBSYSTEM=="ppdev", GROUP="lp" | ||
63 | KERNEL=="pt[0-9]*", GROUP="tape" | ||
64 | KERNEL=="pht[0-9]*", GROUP="tape" | ||
65 | |||
66 | # sound devices | ||
67 | SUBSYSTEM=="sound", GROUP="audio" | ||
68 | |||
69 | # ieee1394 devices | ||
70 | KERNEL=="raw1394", GROUP="disk" | ||
71 | KERNEL=="dv1394*", GROUP="video" | ||
72 | KERNEL=="video1394*", GROUP="video" | ||
73 | |||
74 | # input devices | ||
75 | KERNEL=="event[0-9]*", MODE="0664" | ||
76 | KERNEL=="js[0-9]*", MODE="0664" | ||
77 | |||
78 | # AOE character devices | ||
79 | SUBSYSTEM=="aoe", MODE="0220", GROUP="disk" | ||
80 | SUBSYSTEM=="aoe", KERNEL=="err", MODE="0440" | ||
81 | |||