mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-27 09:35:52 +07:00
[PATCH] add SUBSYSTEM rule to catch all block devices and apply the disk permissions
This commit is contained in:
parent
c07068d5e0
commit
87da5b2c65
@ -207,6 +207,9 @@ KERNEL="diskonkey*", NAME="%k", GROUP="disk"
|
|||||||
# rem_ide devices
|
# rem_ide devices
|
||||||
KERNEL="microdrive*", NAME="%k", GROUP="disk"
|
KERNEL="microdrive*", NAME="%k", GROUP="disk"
|
||||||
|
|
||||||
|
# all block devices
|
||||||
|
SUBSYSTEM="block", NAME="%k", GROUP="disk"
|
||||||
|
|
||||||
# kbd devices
|
# kbd devices
|
||||||
KERNEL="kbd", NAME="%k", MODE="0664"
|
KERNEL="kbd", NAME="%k", MODE="0664"
|
||||||
|
|
||||||
|
@ -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="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]*", BUS="ide", SYSFS{removable}="1", NAME{ignore_remove}="%k", GROUP="disk", MODE="0640"
|
||||||
|
|
||||||
KERNEL="hd[a-z]*", NAME="%k", GROUP="disk", MODE="0640"
|
# all block devices
|
||||||
KERNEL="sd[a-z]*", NAME="%k", GROUP="disk", MODE="0640"
|
SUBSYSTEM="block", NAME="%k", GROUP="disk", MODE="0640"
|
||||||
|
|
||||||
KERNEL="dvb*", PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c"
|
KERNEL="dvb*", PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c"
|
||||||
|
@ -215,7 +215,7 @@ EOF
|
|||||||
#\\
|
#\\
|
||||||
|
|
||||||
KERNEL="ttyUSB0", \\
|
KERNEL="ttyUSB0", \\
|
||||||
NAME="visor"
|
NAME="visor"
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user