1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 20:25:38 +03:00

udev-acl: add joystick devices

User needs read-write access to joystick devices in order to use force
feedback features.
This commit is contained in:
Anssi Hannula 2009-07-27 23:59:44 +03:00 committed by Kay Sievers
parent d256454415
commit 2a0c6867cb

View File

@ -44,6 +44,9 @@ SUBSYSTEM=="misc", KERNEL=="kvm", ENV{ACL_MANAGE}="1"
# smart-card readers # smart-card readers
ENV{ID_SMARTCARD_READER}=="*?", ENV{ACL_MANAGE}="1" 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 # apply ACL for all locally logged in users
LABEL="acl_apply", ENV{ACL_MANAGE}=="?*", TEST=="/var/run/ConsoleKit/database", \ LABEL="acl_apply", ENV{ACL_MANAGE}=="?*", TEST=="/var/run/ConsoleKit/database", \
RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}" RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"