summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2009-07-03 14:57:43 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2009-07-03 14:57:43 +0200
commit84176f979f487392de9a7f01e804e72669cf5590 (patch)
tree32da2725cbd5d217cc64b101f25660ebfc2e7752 /extras
parent456719b6f941d917e7c9444fa6149f35a188d785 (diff)
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!
Diffstat (limited to 'extras')
-rw-r--r--extras/udev-acl/70-acl.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/udev-acl/70-acl.rules b/extras/udev-acl/70-acl.rules
index 26b805565a..f41bb66f7f 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}"