Bug 668242

Summary: Smartcard reader no longer works
Product: [openSUSE] openSUSE 11.4 Reporter: Forgotten User gj9_3EwFEj <forgotten_gj9_3EwFEj>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: VERIFIED NORESPONSE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Factory   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User gj9_3EwFEj 2011-01-31 08:12:32 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:2.0b10) Gecko/20110121 Firefox/4.0b10

After upgrading to MS6 my smart card reader stopped working. With MS5 everything worked like a charm. I'm not really an expert of this and unsure where to look. I see with the MS6 a new group and user have been added called scard so it seem something have been changed. Tried to add myself to this group, but that makes no difference

To my understanding this is a fully CCID Compatible reader. If running:

isrjo@svarde:~> /usr/sbin/openct-control status
No.   Name                         Info
===================================================
  0   CCID Compatible              slot0: card present

also removing the card is detected by the above command, still:

isrjo@svarde:~> pkcs15-tool -c
No smart card readers found.

Nor is Firefox any more able to authenticate me using the certificate present on the card. (using /usr/lib64/onepin-opensc-pkcs11.so)

Bus 005 Device 002: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor

I also (right or wrong) have added this reader to /etc/openct.conf

usb:0a5c/5800,  # Dell

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Forgotten User gj9_3EwFEj 2011-01-31 08:18:35 UTC
Forgot, before I also had to add this rule to /etc/udev/rules.d otherwise then starting openct it complained about permission denied. I still see this if leaving out that rule and have therefore changed the group to scard.
 
# udev rules for pcscd and CCID readers

# generic CCID device
BUS=="usb", SYSFS{bInterfaceClass}=="0b", ACTION=="add", RUN+="/usr/sbin/pcscd --hotplug"
# Change group owner when a card reader is plugged in.
## BUS=="usb", SYSFS{idProduct}=="5800", SYSFS{idVendor}=="0a5c", GROUP=="daemon", MODE="0666"
BUS=="usb", SYSFS{idProduct}=="5800", SYSFS{idVendor}=="0a5c", GROUP=="scard", MODE="0666"
Comment 2 Forgotten User gj9_3EwFEj 2011-02-01 09:00:22 UTC
I think I found the problem. I was unaware of the somewhat conflict between openct and pcsc-lite where I seem MS5 was/could use openct and now pcsc-lite is used. Starting pcscd in foreground I saw 

00000159 hotplug_libusb.c:244:HPReadBundleValues() No bundle files in pcsc drivers directory: /usr/lib64/readers
00000023 hotplug_libusb.c:245:HPReadBundleValues() Disabling USB support for pcscd

So it was just a matter of installing the correct pcsc-driver.
One thought though, what good does pcscd do if having no drivers installed ? Would at least adding ccid drivers as default not be a good idea ?