summaryrefslogtreecommitdiff
path: root/extras/udev-acl
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2010-11-22 10:49:12 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2010-11-22 10:49:12 +0100
commit0e6546c11f2ec1ed2c5af3f2cdb2a6b507952782 (patch)
tree44ed8f08c45c9947716cb637ca6f30d29e5e9174 /extras/udev-acl
parentd69207c3f20f0af2a5e510515ae5473f4fe54476 (diff)
Add ACL for media player USB devices
Originally we added an ACL for some particular mobile phone product IDs to enable users to run e. g. the Android SDK as non-root. This was removed in 232f180 as we don't want to maintain product/vendor ID lists in udev. However, we already know from media-player-info that devices like this are media players. There is little reason to deny user access to those, so add back a generic rule which adds an ACL to media player raw USB devices. https://launchpad.net/bugs/316215
Diffstat (limited to 'extras/udev-acl')
-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 66375de9f6..e3ff31c22e 100644
--- a/extras/udev-acl/70-acl.rules
+++ b/extras/udev-acl/70-acl.rules
@@ -59,6 +59,9 @@ ENV{COLOR_MEASUREMENT_DEVICE}=="*?", TAG+="udev-acl"
# DDC/CI device, usually high-end monitors such as the DreamColor
ENV{DDC_DEVICE}=="*?", TAG+="udev-acl"
+# media player raw devices (for user-mode drivers, Android SDK, etc.)
+SUBSYSTEM=="usb", ENV{ID_MEDIA_PLAYER}=="?*", TAG+="udev-acl"
+
# apply ACL for all locally logged in users
LABEL="acl_apply", TAG=="udev-acl", TEST=="/var/run/ConsoleKit/database", \
RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"