From: Martin Pitt Date: Fri, 3 Jul 2009 12:57:43 +0000 (+0200) Subject: extras/udev-acl: add smartcard readers X-Git-Tag: 174~915 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84176f979f487392de9a7f01e804e72669cf5590;p=systemd extras/udev-acl: add smartcard readers gnupg, psc-lite, etc. will ship udev rules for supported smartcard readers soon. Add the ACL management bit. Thanks to Michael Bienia! --- diff --git a/extras/udev-acl/70-acl.rules b/extras/udev-acl/70-acl.rules index 26b80556..f41bb66f 100644 --- a/extras/udev-acl/70-acl.rules +++ b/extras/udev-acl/70-acl.rules @@ -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}"