[Pkg-gnupg-maint] Bug#543216: gnupg: udev acl rules to give gpg access to some smartcard readers
Michael Bienia
geser at ubuntu.com
Sun Aug 23 09:45:13 UTC 2009
Package: gnupg
Version: 1.4.9-4
Severity: wishlist
Tags: patch
Hello,
here are some udev rules to give gpg access to some SCM smartcard
readers for the currently logged-in user. This patch is already tested
on the gnupg package in Ubuntu karmic and it needs the udev version from
experimental to work properly (applying the ACLs).
Similar rules exist in gnupg2 to let the ACL get set when either gnupg
or gnupg2 is installed.
Michael
diff -u gnupg-1.4.9/debian/rules gnupg-1.4.9/debian/rules
--- gnupg-1.4.9/debian/rules
+++ gnupg-1.4.9/debian/rules
@@ -99,6 +99,7 @@
dh_movefiles -pgpgv --sourcedir=debian/gnupg
dh_install
dh_installman
+ dh_installudev
dh_link
dh_strip
dh_compress
--- gnupg-1.4.9.orig/debian/gnupg.udev
+++ gnupg-1.4.9/debian/gnupg.udev
@@ -0,0 +1,12 @@
+# do not edit this file, it will be overwritten on update
+
+SUBSYSTEM!="usb", GOTO="gnupg_rules_end"
+ACTION!="add", GOTO="gnupg_rules_end"
+
+# USB SmartCard Readers
+## SCM readers (SCR335, SPR532, & Co)
+ATTR{idVendor}=="04e6", ATTR{idProduct}=="e001",
ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
+ATTR{idVendor}=="04e6", ATTR{idProduct}=="e003",
ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
+ATTR{idVendor}=="04e6", ATTR{idProduct}=="5115",
ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
+
+LABEL="gnupg_rules_end"
More information about the Pkg-gnupg-maint
mailing list