diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-12-20 22:24:19 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:19:09 -0700 |
commit | 87da5b2c65e0a889093c27189212505328aea4ab (patch) | |
tree | da39209e02280a1028826e04f512df0f0038815d /etc | |
parent | c07068d5e0b153634c4457aff3dd16700161be00 (diff) |
[PATCH] add SUBSYSTEM rule to catch all block devices and apply the disk permissions
Diffstat (limited to 'etc')
-rw-r--r-- | etc/udev/gentoo/udev.rules | 3 | ||||
-rw-r--r-- | etc/udev/redhat/udev.rules | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/etc/udev/gentoo/udev.rules b/etc/udev/gentoo/udev.rules index dbb0e6f51e..d89d8d0a2c 100644 --- a/etc/udev/gentoo/udev.rules +++ b/etc/udev/gentoo/udev.rules @@ -207,6 +207,9 @@ KERNEL="diskonkey*", NAME="%k", GROUP="disk" # rem_ide devices KERNEL="microdrive*", NAME="%k", GROUP="disk" +# all block devices +SUBSYSTEM="block", NAME="%k", GROUP="disk" + # kbd devices KERNEL="kbd", NAME="%k", MODE="0664" diff --git a/etc/udev/redhat/udev.rules b/etc/udev/redhat/udev.rules index d394e99016..30d8ba7c98 100644 --- a/etc/udev/redhat/udev.rules +++ b/etc/udev/redhat/udev.rules @@ -104,7 +104,7 @@ KERNEL="sr[0-9]*", BUS="scsi", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD- KERNEL="sr[0-9]*", BUS="scsi", NAME="scd%n", GROUP="disk", MODE="0640" KERNEL="hd[a-z]*", BUS="ide", SYSFS{removable}="1", NAME{ignore_remove}="%k", GROUP="disk", MODE="0640" -KERNEL="hd[a-z]*", NAME="%k", GROUP="disk", MODE="0640" -KERNEL="sd[a-z]*", NAME="%k", GROUP="disk", MODE="0640" +# all block devices +SUBSYSTEM="block", NAME="%k", GROUP="disk", MODE="0640" KERNEL="dvb*", PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c" |