tags 697364 + patch
thanks

Hi there!

On Fri, 04 Jan 2013 14:15:32 +0100, Luca Capello wrote:
> I will provide a Git patch as soon as this bug gets its number.  IMHO
> this deserves a wheezy unblock, I will be glad to do an NMU and contact
> the RM, if needed.

Here we are, attached the Git patch.

Thx, bye,
Gismo / Luca

From 567ff3b4ee94692ff149d1ce38c0135d49df3b53 Mon Sep 17 00:00:00 2001
From: Luca Capello <l...@pca.it>
Date: Fri, 4 Jan 2013 14:28:51 +0100
Subject: [PATCH] debian/libcolorhug1.udev: (#697364) always set plugdev
 ownership

---
 debian/changelog         |    8 ++++++++
 debian/libcolorhug1.udev |    8 +++-----
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 998cf36..e73de96 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+colorhug-client (0.1.12-2) UNRELEASED; urgency=low
+
+  * debian/libcolorhug1.udev:
+    + always set ownership to plugdev group, since relying on
+      ConsoleKit only is not enough (Closes: #697364).
+
+ --
+
 colorhug-client (0.1.12-1) experimental; urgency=low
 
   * New upstream release.
diff --git a/debian/libcolorhug1.udev b/debian/libcolorhug1.udev
index d2a70d2..d752c8e 100644
--- a/debian/libcolorhug1.udev
+++ b/debian/libcolorhug1.udev
@@ -12,11 +12,9 @@ ATTRS{idVendor}=="273f", ATTRS{idProduct}=="1000", ENV{COLOR_MEASUREMENT_DEVICE}
 # ColorHug Hughski Limited ID, firmware mode
 ATTRS{idVendor}=="273f", ATTRS{idProduct}=="1001", ENV{COLOR_MEASUREMENT_DEVICE}="1"
 
-# Let udev-acl and ConsoleKit manage these devices, if applicable
-TEST=="/lib/udev/udev-acl", TEST=="/var/run/ConsoleKit/database", ENV{COLOR_MEASUREMENT_DEVICE}=="*?", ENV{ACL_MANAGE}="1"
-
-# Otherwise, restrict access to members of the plugdev group
-ENV{COLOR_MEASUREMENT_DEVICE}=="*?", ENV{ACL_MANAGE}!="*?", MODE="660", GROUP="plugdev"
+# Restrict access to members of the plugdev group, since relying on
+# ConsoleKit only is not enough <http://bugs.debian.org/597937)
+ENV{COLOR_MEASUREMENT_DEVICE}=="*?", MODE="660", GROUP="plugdev"
 
 # Set ID_VENDOR and ID_MODEL acording to VID and PID
 IMPORT{program}="usb-db %p"
-- 
1.7.10.4

Attachment: pgpDULtL9xmX8.pgp
Description: PGP signature

Reply via email to