From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frederic Crozat Date: Wed, 07 Oct 2009 08:38:22 +0000 Subject: Patch: add ACL for parallel printer and scanner Message-Id: <1254904702.16942.11.camel@trinidad.mandrakesoft.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-kKRB4V3jGUuTD4P+l3HM" List-Id: To: linux-hotplug@vger.kernel.org --=-kKRB4V3jGUuTD4P+l3HM Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi all, we are getting a lot of bug reports from users with parallel scanners which are not able to using xsane when not running as root. I suggest to apply attached patch to add ACL to parallel port to fix this issue. -- Frederic Crozat Mandriva --=-kKRB4V3jGUuTD4P+l3HM Content-Description: Content-Disposition: inline; filename="0001-add-ACL-for-parallel-printer-and-scanner.patch" Content-Type: text/x-patch; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit >From 72a672a407a099b0981dbb13365b4e4bd6001e5c Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Wed, 7 Oct 2009 10:26:00 +0200 Subject: [PATCH] add ACL for parallel printer and scanner --- extras/udev-acl/70-acl.rules | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/extras/udev-acl/70-acl.rules b/extras/udev-acl/70-acl.rules index 8259a7a..ae31c68 100644 --- a/extras/udev-acl/70-acl.rules +++ b/extras/udev-acl/70-acl.rules @@ -11,6 +11,13 @@ SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:060101:*", ENV{ACL_MANAGE}="1" # digicams with proprietary protocol ENV{ID_GPHOTO2}=="*?", ENV{ACL_MANAGE}="1" +# parallel printer and scanner +KERNEL=="parport[0-9]*", ENV{ACL_MANAGE}="1" +SUBSYSTEM=="printer", KERNEL=="lp*", ENV{ACL_MANAGE}="1" +SUBSYSTEM=="ppdev", ENV{ACL_MANAGE}="1" +KERNEL=="lp[0-9]*", ENV{ACL_MANAGE}="1" +KERNEL=="irlpt[0-9]*", ENV{ACL_MANAGE}="1" + # SCSI scanners KERNEL=="sg[0-9]*", ATTRS{type}=="6", ENV{ACL_MANAGE}="1" KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP|EPSON|Epson", ENV{ACL_MANAGE}="1" -- 1.6.4.4 --=-kKRB4V3jGUuTD4P+l3HM--