linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch: add ACL for parallel printer and scanner
@ 2009-10-07  8:38 Frederic Crozat
  2009-10-07 11:13 ` Kay Sievers
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Frederic Crozat @ 2009-10-07  8:38 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 274 bytes --]

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 <fcrozat@mandriva.com>
Mandriva

[-- Attachment #2: Type: text/x-patch, Size: 1110 bytes --]

From 72a672a407a099b0981dbb13365b4e4bd6001e5c Mon Sep 17 00:00:00 2001
From: Frederic Crozat <fcrozat@mandriva.com>
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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-10-08  2:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-07  8:38 Patch: add ACL for parallel printer and scanner Frederic Crozat
2009-10-07 11:13 ` Kay Sievers
2009-10-07 16:31 ` Frederic Crozat
2009-10-07 16:59 ` Martin Pitt
2009-10-07 17:40 ` Frederic Crozat
2009-10-08  2:18 ` Karl O. Pinc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).