chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d256454
)
udev-acl: add joystick devices
author
Anssi Hannula
<anssi.hannula@iki.fi>
Mon, 27 Jul 2009 20:59:44 +0000
(23:59 +0300)
committer
Kay 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
patch
|
blob
|
history
diff --git
a/extras/udev-acl/70-acl.rules
b/extras/udev-acl/70-acl.rules
index f41bb66f7f1f9a47b406cfedd6b2ae5e1fb4bcf1..12225136235548c6504325407956b02739418082 100644
(file)
--- 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}"