summaryrefslogtreecommitdiff
path: root/etc/udev/debian/permissions.rules
diff options
context:
space:
mode:
Diffstat (limited to 'etc/udev/debian/permissions.rules')
-rw-r--r--etc/udev/debian/permissions.rules73
1 files changed, 73 insertions, 0 deletions
diff --git a/etc/udev/debian/permissions.rules b/etc/udev/debian/permissions.rules
new file mode 100644
index 0000000000..48510e67f6
--- /dev/null
+++ b/etc/udev/debian/permissions.rules
@@ -0,0 +1,73 @@
+# default permissions for block devices
+SUBSYSTEM="block", GROUP="disk"
+SUBSYSTEM="block", SYSFS{removable}="1", GROUP="floppy"
+
+# IDE devices
+BUS="ide", KERNEL="hd[a-z]", SYSFS{removable}="1", \
+ PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom*", GROUP="cdrom"
+BUS="ide", KERNEL="ht[0-9]*", GROUP="tape"
+BUS="ide", KERNEL="nht[0-9]*", GROUP="tape"
+
+# SCSI devices
+BUS="scsi", SYSFS{type}="1", GROUP="tape"
+BUS="scsi", SYSFS{type}="5", GROUP="cdrom"
+BUS="scsi", SYSFS{type}="6", GROUP="scanner"
+
+# USB devices
+BUS="usb", KERNEL="legousbtower*", MODE="0666"
+
+# serial devices
+SUBSYSTEM="tty", GROUP="dialout"
+SUBSYSTEM="capi", GROUP="dialout"
+
+# vc devices (all members of the tty subsystem)
+KERNEL="ptmx", MODE="0666", GROUP="root"
+KERNEL="console", MODE="0600", GROUP="root"
+KERNEL="tty", MODE="0666", GROUP="root"
+KERNEL="tty[0-9]*", GROUP="root"
+
+# video devices
+SUBSYSTEM="video4linux", GROUP="video"
+SUBSYSTEM="dvb", GROUP="video"
+SUBSYSTEM="graphics", GROUP="video"
+SUBSYSTEM="nvidia", GROUP="video"
+SUBSYSTEM="drm", GROUP="video"
+
+# misc devices
+KERNEL="random", MODE="0666"
+KERNEL="urandom", MODE="0444"
+KERNEL="mem", MODE="0640", GROUP="kmem"
+KERNEL="kmem", MODE="0640", GROUP="kmem"
+KERNEL="port", MODE="0640", GROUP="kmem"
+KERNEL="full", MODE="0666"
+KERNEL="null", MODE="0666"
+KERNEL="zero", MODE="0666"
+KERNEL="inotify", MODE="0666"
+KERNEL="sgi_fetchop", MODE="0666"
+KERNEL="sonypi", MODE="0666"
+KERNEL="agpgart", GROUP="video"
+KERNEL="nvram", GROUP="nvram"
+KERNEL="rtc", MODE="0660", GROUP="audio"
+
+KERNEL="cdemu[0-9]*", GROUP="cdrom"
+KERNEL="pktcdvd[0-9]*", GROUP="cdrom"
+KERNEL="pktcdvd", MODE="0644"
+
+# printers and parallel devices
+SUBSYSTEM="printer", GROUP="lp"
+SUBSYSTEM="ppdev", GROUP="lp"
+KERNEL="pt[0-9]*", GROUP="tape"
+KERNEL="pht[0-9]*", GROUP="tape"
+
+# sound devices
+SUBSYSTEM="sound", GROUP="audio"
+
+# input devices
+KERNEL="event[0-9]*", PROGRAM="/etc/udev/scripts/inputdev.sh %k", \
+ RESULT="inputdev", MODE="0664", GROUP="video"
+KERNEL="js[0-9]*", MODE="0664"
+
+# AOE character devices
+SUBSYSTEM="aoe", MODE="0220", GROUP="disk"
+SUBSYSTEM="aoe", KERNEL="err", MODE="0440"
+