[pkg-gnupg-maint] Bug#840312: scdaemon: Add udev rule for Fujitsu Siemens smart card reader?
Petter Reinholdtsen
pere at hungry.com
Mon Oct 10 13:11:01 UTC 2016
Package: scdaemon
Version: 2.1.15-4
Hi. I got a smart card reader from Fujitsu Siemens that is not
recognized by scdaemon. Perhaps it should be added to the udev rules.d
file?
--- /lib/udev/rules.d/60-scdaemon.rules 2016-10-04 21:22:30.000000000 +0000
+++ /tmp/60-scdaemon.rules 2016-10-10 12:45:43.581741264 +0000
@@ -40,5 +40,7 @@
ATTR{idVendor}=="234b", ATTR{idProduct}=="0000", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
## Alcor Micro Corp cardreader (in ThinkPad X250)
ATTR{idVendor}=="058f", ATTR{idProduct}=="9540", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
+## Fujitsu Siemens
+ATTR{idVendor}=="0bf8", ATTR{idProduct}=="1006", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
LABEL="gnupg_rules_end"
Perhaps it is better to try to recognize all USB smart card readers
using the bus class instead of trying to list the IDs of all card
readers that exist? For isenkram I use file glob matching for
'usb:*ic0Bisc00ip*' (ie interface class 0B, interface subclass 00) to
match any smart card reader. Can a similar rule be implemented using an
udev rule? I see nothing that seem relevant in the output from 'udevadm
info /dev/bus/usb/001/015 ':
P: /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2
N: bus/usb/001/015
E: BUSNUM=001
E: DEVNAME=/dev/bus/usb/001/015
E: DEVNUM=015
E: DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2
E: DEVTYPE=usb_device
E: DRIVER=usb
E: ID_BUS=usb
E: ID_MODEL=SmartCard_Reader_USB_2A
E: ID_MODEL_ENC=SmartCard\x20Reader\x20USB\x202A
E: ID_MODEL_FROM_DATABASE=SmartCard Reader 2A
E: ID_MODEL_ID=1006
E: ID_REVISION=0100
E: ID_SERIAL=Fujitsu_Siemens_Computers_SmartCard_Reader_USB_2A
E: ID_USB_INTERFACES=:0b0000:
E: ID_VENDOR=Fujitsu_Siemens_Computers
E: ID_VENDOR_ENC=Fujitsu\x20Siemens\x20Computers
E: ID_VENDOR_FROM_DATABASE=Fujitsu Siemens Computers
E: ID_VENDOR_ID=0bf8
E: MAJOR=189
E: MINOR=14
E: PRODUCT=bf8/1006/100
E: SUBSYSTEM=usb
E: TYPE=0/0/0
E: USEC_INITIALIZED=270854249350
--
Happy hacking
Petter Reinholdtsen
More information about the pkg-gnupg-maint
mailing list