Skip to contentSkip to conversation

Add joystick devices to 70-acl.rules

PATCH New Anssi Hannula 1 participant 1 message Jul 27, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add joystick devices to 70-acl.rules

User needs read-write access to joystick devices in order to use force feedback features. Add joystick devices to 70-acl.rules.

---
 extras/udev-acl/70-acl.rules |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
extras/udev-acl/70-acl.rules +3 -0
index f41bb66..1222513 100644
@@ -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}"
Signature · 1 line
1.6.2.4