]> err.no Git - systemd/commitdiff
udev-acl: Manage hplip device permissions
authorMartin Pitt <martin.pitt@ubuntu.com>
Fri, 19 Jun 2009 12:49:35 +0000 (14:49 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Fri, 19 Jun 2009 12:49:35 +0000 (14:49 +0200)
hplip tools need user access to the devices for checking ink levels and
user-level configuration. This was formerly done with hal FDIs.

As per discussion with Till Kamppeter.

extras/udev-acl/70-acl.rules

index fc270395970e3f977cffd74fbc29b0c6c3a6a5a4..26b805565abb9e11ca9d35d08e3eda0fa378b5c3 100644 (file)
@@ -17,6 +17,9 @@ KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP|EPSON|Epson", ENV{ACL_M
 # USB scanners
 ENV{libsane_matched}=="yes", ENV{ACL_MANAGE}="1"
 
+# HPLIP devices (necessary for ink level check and HP tool maintenance)
+ENV{ID_HPLIP}=="1", ENV{ACL_MANAGE}="1"
+
 # optical drives
 SUBSYSTEM=="block", ENV{ID_CDROM}=="1", ENV{ACL_MANAGE}="1"