]> err.no Git - systemd/commitdiff
udev-acl: add joystick devices
authorAnssi Hannula <anssi.hannula@iki.fi>
Mon, 27 Jul 2009 20:59:44 +0000 (23:59 +0300)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 5 Aug 2009 03:08:45 +0000 (05:08 +0200)
User needs read-write access to joystick devices in order to use force
feedback features.

extras/udev-acl/70-acl.rules

index f41bb66f7f1f9a47b406cfedd6b2ae5e1fb4bcf1..12225136235548c6504325407956b02739418082 100644 (file)
@@ -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}"