The Fellowship / Fellows / lfittl / Simpler udev rules for SCM USB and Cardman 4040 smartcard readers

Simpler udev rules for SCM USB and Cardman 4040 smartcard readers

|
|

At the moment I am trying to get the necessary udev rules (originally written by various people here) for the SCM USB and the Cardman 4040 PCMCIA card readers integrated into Ubuntu. Which means, if the patch gets accepted, at least the USB card readers will work out-of-the-box with Ubuntu 6.10. The cm4040 needs a patch for gnupg, and this one won't get accepted as it rewrites the whole ccid code of gnupg, therefore you will have to use the gnupg2 package.

To get all this done I need your help, as I simplified the cm4040 rules, and also used the simpler rules for the SCM USB readers by Andrea Borgia. To make sure it works, testers are needed.

Please copy the following into /etc/udev/rules.d/45-gnupg-ccid.rules (assuming you are using Ubuntu), and reply back with your results and the card reader you used. Make sure you have removed the old rules before testing.

ACTION!="add", GOTO="gnupg-ccid_rules_end"

SUBSYSTEM=="cardman_4040", GROUP="scard", MODE="0660"
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="04e6", SYSFS{idProduct}=="e003", GROUP="scard", MODE="0660"
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="04e6", SYSFS{idProduct}=="5115", GROUP="scard", MODE="0660"

LABEL="gnupg-ccid_rules_end"

Any feedback is welcome, also it would be great if people with other readers could provide their udev rules :)

This document is in public domain

Kommentare

check the device class

I don't know much about this udev sillyness. However checking for the vendor and product id is not the right whay.

What needs to be checked is the device/interface class which is 11 for a CCID compliant device. Only for a few readers special rules are required because they are older then the CCID standards (e.g. the SPR 532) . The majority of modern readers have correct USB descriptors.

Log in or join the Fellowship to post comments.



Right menu

Fellow Events

<< Januar 2009 >>
Mon Tue Wed Thu Fri Sat Sun
  1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31 
Selected Day Today


FSFE Card


DRM.info
© FSFE