Debian Bug report logs - #543217
gnupg2: udev acl rules to give gpg access to some smartcard readers

version graph

Package: gnupg2; Maintainer for gnupg2 is Eric Dorland <eric@debian.org>; Source for gnupg2 is src:gnupg2.

Reported by: "Michael Bienia" <geser@ubuntu.com>

Date: Sun, 23 Aug 2009 09:54:14 UTC

Severity: wishlist

Tags: patch

Found in version gnupg2/2.0.11-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Eric Dorland <eric@debian.org>:
Bug#543217; Package gnupg2. (Sun, 23 Aug 2009 09:54:17 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Michael Bienia" <geser@ubuntu.com>:
New Bug report received and forwarded. Copy sent to Eric Dorland <eric@debian.org>. (Sun, 23 Aug 2009 09:54:18 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: "Michael Bienia" <geser@ubuntu.com>
To: "Debian Bug Tracking System" <submit@bugs.debian.org>
Subject: gnupg2: udev acl rules to give gpg access to some smartcard readers
Date: 23 Aug 2009 11:45:55 +0200
Package: gnupg2
Version: 2.0.11-1
Severity: wishlist
Tags: patch

Hello,

here are some udev rules to give gpg2/scdaemon access to some SCM
smartcard readers for the currently logged-in user. This patch is
already tested on the gnupg2 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 gnupg2-2.0.11/debian/rules gnupg2-2.0.11/debian/rules
--- gnupg2-2.0.11/debian/rules
+++ gnupg2-2.0.11/debian/rules
@@ -114,6 +114,7 @@
 	dh_installexamples -a
 	dh_installinfo -a
 	dh_installchangelogs -a
+	dh_installudev -a
 
 	$(install_dir) debian/gnupg2/usr/share/lintian/overrides/
 	$(install_file) debian/gnupg2.lintian debian/gnupg2/usr/share/lintian/overrides/gnupg2
--- gnupg2-2.0.11.orig/debian/gnupg2.udev
+++ gnupg2-2.0.11/debian/gnupg2.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"




Information forwarded to debian-bugs-dist@lists.debian.org, Eric Dorland <eric@debian.org>:
Bug#543217; Package gnupg2. (Thu, 25 Oct 2012 04:18:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to NIIBE Yutaka <gniibe@fsij.org>:
Extra info received and forwarded to list. Copy sent to Eric Dorland <eric@debian.org>. (Thu, 25 Oct 2012 04:18:03 GMT) Full text and rfc822 format available.

Message #10 received at 543217@bugs.debian.org (full text, mbox):

From: NIIBE Yutaka <gniibe@fsij.org>
To: 543217@bugs.debian.org
Subject: udev rules
Date: Thu, 25 Oct 2012 12:47:54 +0900
Now, scdaemon is a different binary package.  I think that udev rules
should be in that package (instead of gnupg2 package).  Thus, it is
debian/scdaemon.udev which should be added to the source package now.

Today, I submit a bug report to add more entries to gnupg udev rules.

   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691392

Please use those rules.  Then, #648331 can be also closed.
-- 





Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 01:54:23 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.