From: Frederic Crozat <fcrozat@mandriva.com>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] add ACL for color measurement devices
Date: Thu, 14 Jan 2010 14:37:37 +0000 [thread overview]
Message-ID: <4B4F2C31.6000509@mandriva.com> (raw)
[-- 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
---
| 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
--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
next reply other threads:[~2010-01-14 14:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-14 14:37 Frederic Crozat [this message]
2010-01-14 15:12 ` [PATCH] add ACL for color measurement devices Marco d'Itri
2010-01-14 15:18 ` Kay Sievers
2010-01-14 17:22 ` Frederic Crozat
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B4F2C31.6000509@mandriva.com \
--to=fcrozat@mandriva.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).