summaryrefslogtreecommitdiff
path: root/extras/udev-acl
diff options
context:
space:
mode:
authorAnssi Hannula <anssi.hannula@iki.fi>2009-07-27 23:59:44 +0300
committerKay Sievers <kay.sievers@vrfy.org>2009-08-05 05:08:45 +0200
commit2a0c6867cb0c8120cc1b8f48b755abb2a405fef7 (patch)
tree9df5971ebd3a65625fb54a68c05694be8164d1e7 /extras/udev-acl
parentd25645441549b3ca61b7257d6712da6facd411e7 (diff)
udev-acl: add joystick devices
User needs read-write access to joystick devices in order to use force feedback features.
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 f41bb66f7f..1222513623 100644
--- a/extras/udev-acl/70-acl.rules
+++ b/extras/udev-acl/70-acl.rules
@@ -44,6 +44,9 @@ SUBSYSTEM=="misc", KERNEL=="kvm", ENV{ACL_MANAGE}="1"
# smart-card readers
ENV{ID_SMARTCARD_READER}=="*?", ENV{ACL_MANAGE}="1"
+# joysticks
+SUBSYSTEM=="input", ENV{ID_CLASS}=="joystick", 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}"