summaryrefslogtreecommitdiff
path: root/extras/udev-acl/70-acl.rules
diff options
context:
space:
mode:
authorScott James Remnant <scott@ubuntu.com>2009-12-10 20:01:05 +0000
committerScott James Remnant <scott@ubuntu.com>2009-12-10 20:01:05 +0000
commit4fe41ac874afab5d152aff151cba896817a2ab1f (patch)
tree693b48da060bc3f41918ee0bbe82a777b010598a /extras/udev-acl/70-acl.rules
parentd0a161ce6416d925ab66251295e93ffb867ee835 (diff)
70-acl.rules: ACL manage Android G1 dev phones
There doesn't seem to be any special class for their developer interface, so match by Vendor and Device id like we do for things like fingerprint readers. This is better than their current 0666 suggestion <g> Signed-off-by: Scott James Remnant <scott@ubuntu.com>
Diffstat (limited to 'extras/udev-acl/70-acl.rules')
-rw-r--r--extras/udev-acl/70-acl.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/udev-acl/70-acl.rules b/extras/udev-acl/70-acl.rules
index 278b9aae7c..f135bff75c 100644
--- a/extras/udev-acl/70-acl.rules
+++ b/extras/udev-acl/70-acl.rules
@@ -48,6 +48,9 @@ ENV{ID_SMARTCARD_READER}=="*?", ENV{ACL_MANAGE}="1"
# joysticks
SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ACL_MANAGE}="1"
+# smart phones
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", 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}"