summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-12-18 22:59:21 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:19:08 -0700
commit2c97d705dc2550885ecc392765755511b549bfc7 (patch)
treebf2f683e2a7737087f775ca6e398375a9d7da132
parenta866c0a305372305bc8363b8f3b24832082711aa (diff)
[PATCH] initial merge of fedora udev.permissions into udev.rules
-rw-r--r--etc/udev/redhat/udev.rules50
1 files changed, 39 insertions, 11 deletions
diff --git a/etc/udev/redhat/udev.rules b/etc/udev/redhat/udev.rules
index 6605915446..f95d2c1a10 100644
--- a/etc/udev/redhat/udev.rules
+++ b/etc/udev/redhat/udev.rules
@@ -8,16 +8,44 @@
# note devmap_name comes with extras/multipath
#KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c"
+KERNEL="console", NAME="%k", GROUP="tty", MODE="0600"
+KERNEL="tty", NAME="%k", GROUP="tty", MODE="0666"
+KERNEL="tty[0-9]*", NAME="%k", GROUP="tty", MODE="0660
+
+KERNEL="ptmx", NAME="%k", GROUP="tty", MODE="0666"
+KERNEL="pty[p-za-e][0-9a-f]*", NAME="%k", GROUP="tty", MODE="0660"
+KERNEL="tty[p-za-e][0-9a-f]*", NAME="%k", GROUP="tty", MODE="0660"
+
+KERNEL="ttyS[0-9]*", NAME="%k", GROUP="uucp", MODE="0660"
+KERNEL="ttyUSB[0-9]*", NAME="%k", GROUP="uucp", MODE="0600"
+KERNEL="ippp0", NAME="%k", MODE="0660"
+KERNEL="isdn*", NAME="%k", MODE="0660"
+KERNEL="dcbri*", NAME="%k", MODE="0660"
+KERNEL="ircomm*", NAME="%k", GROUP="uucp", MODE="0660"
+
+KERNEL="vcs", NAME="%k", OWNER="vcsa", GROUP="tty", MODE="0600"
+KERNEL="vcsa[0-9]*", NAME="%k", OWNER="vcsa", GROUP="tty", MODE="0600
+
+# memory devicesĀ¶
+KERNEL="random", NAME="%k", MODE="0666"
+KERNEL="urandom", NAME="%k", MODE="0444"
+KERNEL="mem", NAME="%k", MODE="0640"
+KERNEL="kmem", NAME="%k", MODE="0640"
+KERNEL="port", NAME="%k", MODE="0640"
+KERNEL="full", NAME="%k", MODE="0666"
+KERNEL="null", NAME="%k", MODE="0666"
+KERNEL="zero", NAME="%k", MODE="0666"
+
# DRI devices always go into a subdirectory (as per the LSB spec)
KERNEL="card*", NAME="dri/card%n"
# alsa devices
-KERNEL="controlC[0-9]*", NAME="snd/%k"
-KERNEL="hw[CD0-9]*", NAME="snd/%k"
-KERNEL="pcm[CD0-9cp]*", NAME="snd/%k"
-KERNEL="midi[CD0-9]*", NAME="snd/%k"
-KERNEL="timer", NAME="snd/%k"
-KERNEL="seq", NAME="snd/%k"
+KERNEL="controlC[0-9]*", NAME="snd/%k"
+KERNEL="hw[CD0-9]*", NAME="snd/%k"
+KERNEL="pcm[CD0-9cp]*", NAME="snd/%k"
+KERNEL="midi[CD0-9]*", NAME="snd/%k"
+KERNEL="timer", NAME="snd/%k"
+KERNEL="seq", NAME="snd/%k"
# input devices
KERNEL="mice", NAME="input/%k"
@@ -53,11 +81,11 @@ KERNEL="tun", NAME="net/%k"
KERNEL="device-mapper", NAME="mapper/control"
# old compat symlinks with enumeration
-KERNEL="sr[0-9]*", SYMLINK="cdrom%e"
-KERNEL="scd[0-9]*", SYMLINK="cdrom%e"
-KERNEL="pcd[0-9]*", SYMLINK="cdrom%e"
-KERNEL="fd[0-9]*", SYMLINK="floppy%e"
-KERNEL="nst[0-9]*", SYMLINK="tape%e"
+KERNEL="sr[0-9]*", SYMLINK="cdrom%e"
+KERNEL="scd[0-9]*", SYMLINK="cdrom%e"
+KERNEL="pcd[0-9]*", SYMLINK="cdrom%e"
+KERNEL="fd[0-9]*", SYMLINK="floppy%e"
+KERNEL="nst[0-9]*", SYMLINK="tape%e"
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"