]> err.no Git - systemd/commitdiff
[PATCH] add SUBSYSTEM rule to catch all block devices and apply the disk permissions
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Mon, 20 Dec 2004 21:24:19 +0000 (22:24 +0100)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 06:19:09 +0000 (23:19 -0700)
etc/udev/gentoo/udev.rules
etc/udev/redhat/udev.rules
test/udev-test.pl

index dbb0e6f51e93f50e88b3dd9077863d827a8e523a..d89d8d0a2c4524b84ed7f84e796f3b4f1ec0d87c 100644 (file)
@@ -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"
 
index d394e9901679b283b014cd36e47aeca5cc14dec5..30d8ba7c985312756a5fb4a40e7fff7dcbc57690 100644 (file)
@@ -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"
index 53eee35457012fcd2575a11cbff727f4abca5521..bc8c4560d35558fbbb0ed28833c39421406f1bf5 100644 (file)
@@ -215,7 +215,7 @@ EOF
 #\\
 
 KERNEL="ttyUSB0", \\
-NAME="visor"
+       NAME="visor"
 
 EOF
        },