linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] add ACL for color measurement devices
@ 2010-01-14 14:37 Frederic Crozat
  2010-01-14 15:12 ` Marco d'Itri
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Frederic Crozat @ 2010-01-14 14:37 UTC (permalink / raw)
  To: linux-hotplug

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

Hi,
sftp://fcrozat@kenobi/home/fcrozat/checkout/udev/0001-rules-udev-acl-add-color-measurement-devices.patch
as part of writing udev rules for Argyllcms supported color measurement 
devices, it would be great if udev upstream could merge attached patch 
which set ACL on such devices, when detected using Argyllcms own rules. 
This is similar to what is done in gphoto2 and other packages and allows 
to centralize ACL policy in udev own 70-acl.rules file.

-- 
Frederic Crozat
Mandriva

[-- Attachment #2: 0001-rules-udev-acl-add-color-measurement-devices.patch --]
[-- Type: text/plain, Size: 974 bytes --]

From 403687a4855f8098bdbc7ac72874630b83e11678 Mon Sep 17 00:00:00 2001
From: Frederic Crozat <fcrozat@mandriva.com>
Date: Thu, 14 Jan 2010 15:11:27 +0100
Subject: [PATCH] rules: udev-acl -add color measurement devices

---
 extras/udev-acl/70-acl.rules |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/extras/udev-acl/70-acl.rules b/extras/udev-acl/70-acl.rules
index ab2984c..78e3eba 100644
--- a/extras/udev-acl/70-acl.rules
+++ b/extras/udev-acl/70-acl.rules
@@ -60,6 +60,9 @@ SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ACL_MANAGE}="1"
 # smart phones
 SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", ENV{ACL_MANAGE}="1"
 
+# color measurement devices
+ENV{COLOR_MEASUREMENT_DEVICE}=="*?", ENV{ACL_MANAGE}="1"
+
 # apply ACL for all locally logged in users
 LABEL="acl_apply", ENV{ACL_MANAGE}=="?*", TEST=="/var/run/ConsoleKit/database", \
   RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"
-- 
1.6.6


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

end of thread, other threads:[~2010-01-14 17:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-14 14:37 [PATCH] add ACL for color measurement devices Frederic Crozat
2010-01-14 15:12 ` Marco d'Itri
2010-01-14 15:18 ` Kay Sievers
2010-01-14 17:22 ` Frederic Crozat

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).