From: Anssi Hannula Date: Mon, 27 Jul 2009 20:59:44 +0000 (+0300) Subject: udev-acl: add joystick devices X-Git-Tag: 174~865 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a0c6867cb0c8120cc1b8f48b755abb2a405fef7;p=systemd udev-acl: add joystick devices User needs read-write access to joystick devices in order to use force feedback features. --- diff --git a/extras/udev-acl/70-acl.rules b/extras/udev-acl/70-acl.rules index f41bb66f..12225136 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}"