]> err.no Git - systemd/commitdiff
extras/udev-acl: add smartcard readers
authorMartin Pitt <martin.pitt@ubuntu.com>
Fri, 3 Jul 2009 12:57:43 +0000 (14:57 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Fri, 3 Jul 2009 12:57:43 +0000 (14:57 +0200)
gnupg, psc-lite, etc. will ship udev rules for supported smartcard readers
soon. Add the ACL management bit.

Thanks to Michael Bienia!

extras/udev-acl/70-acl.rules

index 26b805565abb9e11ca9d35d08e3eda0fa378b5c3..f41bb66f7f1f9a47b406cfedd6b2ae5e1fb4bcf1 100644 (file)
@@ -41,6 +41,9 @@ SUBSYSTEM=="drm", KERNEL=="card*", ENV{ACL_MANAGE}="1"
 # KVM
 SUBSYSTEM=="misc", KERNEL=="kvm", ENV{ACL_MANAGE}="1"
 
+# smart-card readers
+ENV{ID_SMARTCARD_READER}=="*?", 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}"