chiark / gitweb /
70-acl.rules: Use new-style input properties
authorMartin Pitt <martin.pitt@ubuntu.com>
Mon, 30 Nov 2009 17:46:51 +0000 (18:46 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Mon, 30 Nov 2009 17:46:51 +0000 (18:46 +0100)
ID_CLASS is deprecated for input devices. Use new ID_INPUT_JOYSTICK instead.

extras/udev-acl/70-acl.rules

index 8259a7a..278b9aa 100644 (file)
@@ -46,7 +46,7 @@ SUBSYSTEM=="misc", KERNEL=="kvm", ENV{ACL_MANAGE}="1"
 ENV{ID_SMARTCARD_READER}=="*?", ENV{ACL_MANAGE}="1"
 
 # joysticks
-SUBSYSTEM=="input", ENV{ID_CLASS}=="joystick", ENV{ACL_MANAGE}="1"
+SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ACL_MANAGE}="1"
 
 # apply ACL for all locally logged in users
 LABEL="acl_apply", ENV{ACL_MANAGE}=="?*", TEST=="/var/run/ConsoleKit/database", \