From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frederic Crozat Date: Thu, 14 Jan 2010 14:37:37 +0000 Subject: [PATCH] add ACL for color measurement devices Message-Id: <4B4F2C31.6000509@mandriva.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------070304080901080303020305" List-Id: To: linux-hotplug@vger.kernel.org This is a multi-part message in MIME format. --------------070304080901080303020305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------070304080901080303020305 Content-Type: text/plain; name="0001-rules-udev-acl-add-color-measurement-devices.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-rules-udev-acl-add-color-measurement-devices.patch" >From 403687a4855f8098bdbc7ac72874630b83e11678 Mon Sep 17 00:00:00 2001 From: Frederic Crozat 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 --------------070304080901080303020305--