summaryrefslogtreecommitdiff
path: root/debian/patches/06_fix_udev_rule.patch
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-09-01 14:42:10 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-09-01 14:42:10 +0200
commitad6ab4cb4c8086c9b8854c965c984ab848c6b6c2 (patch)
tree6b266d55626c15c6ef39d03b9c65d8b5efa89f71 /debian/patches/06_fix_udev_rule.patch
parentebf181ce25f98bfdd5a6beb0327f7cfa10a39ac6 (diff)
add missing debian directory
Diffstat (limited to 'debian/patches/06_fix_udev_rule.patch')
-rw-r--r--debian/patches/06_fix_udev_rule.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/06_fix_udev_rule.patch b/debian/patches/06_fix_udev_rule.patch
new file mode 100644
index 0000000..fb5c283
--- /dev/null
+++ b/debian/patches/06_fix_udev_rule.patch
@@ -0,0 +1,23 @@
+Description: Fix udev rules to actually work; ENV{ACL_MANAGE} has stopped working ages ago, and with logind it's now the "uaccess" tag.
+Author: Martin Pitt <martin.pitt@ubuntu.com>
+Bug-Ubuntu: https://launchpad.net/bugs/468345
+Last-Update: 2014-02-03
+
+--- a/usb/55-Argyll.rules
++++ b/usb/55-Argyll.rules
+@@ -77,12 +77,12 @@ ATTRS{idVendor}=="04d8", ATTRS{idProduct
+ ATTRS{idVendor}=="273f", ATTRS{idProduct}=="1001", ENV{COLOR_MEASUREMENT_DEVICE}="1"
+
+
+-# Let udev-acl manage these devices, if it's available
+-TEST=="/var/run/ConsoleKit/database", ENV{COLOR_MEASUREMENT_DEVICE}=="*?", ENV{ACL_MANAGE}="1"
++# Let users access these devices
++ENV{COLOR_MEASUREMENT_DEVICE}=="*?", TAG+="uaccess"
+
+ # Otherwise, restrict access to members of the plugdev group,
+ # which the user may have to add to the system.
+-ENV{COLOR_MEASUREMENT_DEVICE}=="*?", ENV{ACL_MANAGE}!="*?", MODE="660", GROUP="plugdev"
++ENV{COLOR_MEASUREMENT_DEVICE}=="*?", MODE="660", GROUP="plugdev"
+
+ # Set ID_VENDOR and ID_MODEL acording to VID and PID
+ IMPORT{builtin}="hwdb --subsystem=usb"