udev-acl: do not mistake all SCSI "processor" devices for scanner
authorMarco d'Itri <md@linux.it>
Wed, 18 Aug 2010 11:35:25 +0000 (13:35 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 18 Aug 2010 11:35:25 +0000 (13:35 +0200)
Both rules can be removed since now libsane sets libsane_matched also
for SCSI scanners.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=589751

extras/udev-acl/70-acl.rules

index 6ec04ee..c7134bc 100644 (file)
@@ -13,11 +13,7 @@ SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:060101:*", TAG+="udev-acl"
 # digicams with proprietary protocol
 ENV{ID_GPHOTO2}=="*?", TAG+="udev-acl"
 
-# SCSI scanners
-KERNEL=="sg[0-9]*", ATTRS{type}=="6", TAG+="udev-acl"
-KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP|EPSON|Epson", TAG+="udev-acl"
-
-# USB scanners
+# SCSI and USB scanners
 ENV{libsane_matched}=="yes", TAG+="udev-acl"
 
 # HPLIP devices (necessary for ink level check and HP tool maintenance)