pcscd spams syslog whenever mozilla is running and CAC card is not inserted/present

Bug #776082 reported by kenburgi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pcsc-lite (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

pcscd spams syslog whenever mozilla firefox 4.0.1 is running. This was not present in Ubuntu 10.04 with its version of firefox. I have a SCR3340 ExpressCard54 card reader. Following 2 messages are continuously asserted in syslog occur whenever CAC is not present and Firefox is running. Created a 13GB syslog overnight!
May 2 22:12:27 simple-laptop pcscd: winscard.c:290:SCardConnect() Card Not Inserted
May 2 22:12:27 simple-laptop pcscd: winscard_svc.c:447:ContextThread() CONNECT rv=0x8010000C for client 6

Occurs once whenever CAC (smart card) is removed
May 2 22:12:19 simple-laptop pcscd: winscard_svc.c:555:ContextThread() STATUS rv=0x80100069 for client 6

Following 2 messages are continuously asserted in syslog when card reader is removed from the ExpressCard slot
May 2 22:31:27 simple-laptop pcscd: winscard_svc.c:447:ContextThread() CONNECT rv=0x80100009 for client 6
May 2 22:31:28 simple-laptop pcscd: winscard.c:241:SCardConnect() Reader SCM SCR 3340 ExpressCard54 [CCID Interface] (21220827700942) 00 00 Not Found

I have tried to suppress the messages with DAEMON_ARGS="--critical" in the '/etc/default/pcscd' file to no avail.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: pcscd 1.7.0-2ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
Architecture: amd64
Date: Mon May 2 22:23:10 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: pcsc-lite
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
kenburgi (kwburgi) wrote :
Revision history for this message
Nicolas DERIVE (kalon33) wrote : Re: [Bug 776082] [NEW] pcscd spams syslog whenever mozilla is running and CAC card is not inserted/present

Was it present with previous firefox version (4.0)? It's not
reproductible here on ix86 (latest updated), only nearly 10 messages in
syslog (mainly because of reader detection and trying to authenticate me
with card when using sudo, which is what I configured). Is this a fresh
install or did you install other programs (except pcscd)?

Le 03/05/2011 05:40, kenburgi a écrit :
> Public bug reported:
>
> pcscd spams syslog whenever mozilla firefox 4.0.1 is running. This was not present in Ubuntu 10.04 with its version of firefox. I have a SCR3340 ExpressCard54 card reader. Following 2 messages are continuously asserted in syslog occur whenever CAC is not present and Firefox is running. Created a 13GB syslog overnight!
> May 2 22:12:27 simple-laptop pcscd: winscard.c:290:SCardConnect() Card Not Inserted
> May 2 22:12:27 simple-laptop pcscd: winscard_svc.c:447:ContextThread() CONNECT rv=0x8010000C for client 6
>
> Occurs once whenever CAC (smart card) is removed
> May 2 22:12:19 simple-laptop pcscd: winscard_svc.c:555:ContextThread() STATUS rv=0x80100069 for client 6
>
> Following 2 messages are continuously asserted in syslog when card reader is removed from the ExpressCard slot
> May 2 22:31:27 simple-laptop pcscd: winscard_svc.c:447:ContextThread() CONNECT rv=0x80100009 for client 6
> May 2 22:31:28 simple-laptop pcscd: winscard.c:241:SCardConnect() Reader SCM SCR 3340 ExpressCard54 [CCID Interface] (21220827700942) 00 00 Not Found
>
> I have tried to suppress the messages with DAEMON_ARGS="--critical" in
> the '/etc/default/pcscd' file to no avail.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 11.04
> Package: pcscd 1.7.0-2ubuntu2
> ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
> Uname: Linux 2.6.38-8-generic x86_64
> Architecture: amd64
> Date: Mon May 2 22:23:10 2011
> InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
> ProcEnviron:
> LANGUAGE=en_US:en
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> SourcePackage: pcsc-lite
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> ** Affects: pcsc-lite (Ubuntu)
> Importance: Undecided
> Status: New
>
>
> ** Tags: amd64 apport-bug natty running-unity
>

Revision history for this message
Ludovic Rousseau (ludovic-rousseau-gmail) wrote :

The problem is also with the PKCS#11 lib for your CAC smart card. The software should not try to connect to a card if no card is present.

What PKCS#11 library are you using?

Revision history for this message
Ludovic Rousseau (ludovic-rousseau-gmail) wrote :

Using /etc/default/pcscd is also a good idea. But it will work only if pcscd is started from the /etc/init.d/pcscd init script.
pcscd is now started on-demand. See http://ludovicrousseau.blogspot.com/2010/09/pcscd-auto-start.html

Revision history for this message
kenburgi (kwburgi) wrote :

This was not present in 10.04, I believe I was still using Firefox 3.5 (whichever was normal, I did not manually install Firefox 4.0). I did a fresh install of 11.04, with a completely new partition table. I am using the CACKey (libcackey.so) downloaded from software.forge.mil. The original 'libcoolkeypk11.so' doesn't work with newer 144K government ID cards; when I tired to use it, firefox crashed when I inserted the card.

I'm now leaning toward this being a bug in PKCS11 lib or perhaps an incompatibility with Firefox 4.

Revision history for this message
Ludovic Rousseau (ludovic-rousseau-gmail) wrote :

@kenburgi, it is most likely a bug in libcackey.so.

I can't access software.forge.mil myself. Maybe the website is not public.

Revision history for this message
kenburgi (kwburgi) wrote :

Yes, https://software.forge.mil requires a smartcard login. Presently I'm forced to use virtualbox w/ WinXP. I also posted a comment on the libcackey forum on that site. Firefox 4 compatibility appears to be a known issue.

Revision history for this message
Leho Kraav (lkraav) wrote :

seeing the same thing on Gentoo.

@kenburgi: a link to the "known ff4 issue" please?

Revision history for this message
kenburgi (kwburgi) wrote :

https://software.forge.mil/sf/discussion/do/listPosts/projects.community_cac/discussion.development.topc2568

That is the link to the discussion forum. You need a gov CAC (smartcard) to login.

Revision history for this message
Ludovic Rousseau (ludovic-rousseau-gmail) wrote :

Logging of:
May 2 22:31:27 simple-laptop pcscd: winscard_svc.c:447:ContextThread() CONNECT rv=0x80100009 for client 6
has been fixed in revision 5765 to be released in pcsc-lite 1.7.3

The line:
May 2 22:31:28 simple-laptop pcscd: winscard.c:241:SCardConnect() Reader SCM SCR 3340 ExpressCard54 [CCID Interface] (21220827700942) 00 00 Not Found
is because of a another bug. I would need a complete pcscd log including the moment you remove the ExpressCard reader.

Revision history for this message
Joy Latten (j-latten) wrote :

This bugreport has had no activity and has eol. Closing.

Changed in pcsc-lite (Ubuntu):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.