[Bug 1596662] Re: pcscd fails to read CAC card data, errors out
I'm confirming that the info from @nunojpg seems to hold for my reader as well. It updated from 0a5c:5800 to 0a5c:5832, using the Dell ControlVault2 update you listed above. This firmware seems to work correctly (although now my security devices in the browser aren't working, but that's another matter): debuglog.c:289:DebugLogSetLevel() debug level=debug 0012 debuglog.c:310:DebugLogSetCategory() Debug options: APDU ^[[36m0006^[[0m ^[[34mpcscdaemon.c:357:main() Force colored logs^[[0m ^[[36m0312^[[0m configfile.l:358:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d ^[[36m0019^[[0m ^[[34mpcscdaemon.c:672:main() pcsc-lite 1.8.17 daemon ready.^[[0m ^[[36m2333^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 ^[[36m0041^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 ^[[36m0035^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x0A5C, PID: 0x5832, path: /dev/bus/usb/001/007 ^[[36m0033^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x0A5C, PID: 0x5832, path: /dev/bus/usb/001/007 ^[[36m0030^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 ^[[36m0035^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1BCF, PID: 0x2B91, path: /dev/bus/usb/001/008 ^[[36m0030^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1BCF, PID: 0x2B91, path: /dev/bus/usb/001/008 ^[[36m0032^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 ^[[36m0032^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x413C, PID: 0x2513, path: /dev/bus/usb/001/002 ^[[36m0033^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x0C45, PID: 0x0133, path: /dev/bus/usb/001/004 ^[[36m0033^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x0C45, PID: 0x0133, path: /dev/bus/usb/001/004 ^[[36m0030^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x413C, PID: 0x2513, path: /dev/bus/usb/001/002 ^[[36m0034^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x045E, PID: 0x0040, path: /dev/bus/usb/001/006 ^[[36m0032^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x413C, PID: 0x2513, path: /dev/bus/usb/001/002 ^[[36m0030^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 ^[[36m0033^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x8087, PID: 0x0A2B, path: /dev/bus/usb/001/003 ^[[36m0031^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x8087, PID: 0x0A2B, path: /dev/bus/usb/001/003 ^[[36m0031^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 ^[[36m0031^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x413C, PID: 0x2513, path: /dev/bus/usb/001/005 ^[[36m0044^[[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/002/001 ^[[36m17434070^[[0m winscard_msg_srv.c:251:ProcessEventsServer() Common channel packet arrival ^[[36m0047^[[0m winscard_msg_srv.c:263:ProcessEventsServer() ProcessCommonChannelRequest detects: 7 ^[[36m0002^[[0m pcscdaemon.c:132:SVCServiceRunLoop() A new context thread creation is requested: 7 ^[[36m0086^[[0m winscard_svc.c:329:ContextThread() Authorized PC/SC client ^[[36m0004^[[0m winscard_svc.c:333:ContextThread() Thread is started: dwClientID=7, threadContext @0x2497890 ^[[36m0020^[[0m winscard_svc.c:351:ContextThread() Received command: CMD_VERSION from client 7 ^[[36m0003^[[0m winscard_svc.c:363:ContextThread() Client is protocol version 4:3 ^[[36m0001^[[0m winscard_svc.c:383:ContextThread() CMD_VERSION rv=0x0 for client 7 ^[[36m0113^[[0m winscard_svc.c:351:ContextThread() Received command: ESTABLISH_CONTEXT from client 7 ^[[36m0022^[[0m winscard.c:213:SCardEstablishContext() Establishing Context: 0x7A22B4A6 ^[[36m0002^[[0m winscard_svc.c:444:ContextThread() ESTABLISH_CONTEXT rv=0x0 for client 7 ^[[36m0181^[[0m winscard_svc.c:351:ContextThread() Received command: CMD_GET_READERS_STATE from client 7 ^[[36m0151^[[0m winscard_svc.c:351:ContextThread() Received command: CMD_GET_READERS_STATE from client 7 ^[[36m1811^[[0m winscard_svc.c:351:ContextThread() Received command: CMD_GET_READERS_STATE from client 7 ^[[36m01001014^[[0m winscard_svc.c:351:ContextThread() Received command: CMD_GET_READERS_STATE from client 7 ^[[36m01000993^[[0m winscard_svc.c:351:ContextThread() Received command: CMD_GET_READERS_STATE from client 7
[Bug 1596662] Re: pcscd fails to read CAC card data, errors out
** Attachment added: "verbose log" https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+attachment/4691606/+files/log.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1596662 Title: pcscd fails to read CAC card data, errors out To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1596662] Re: pcscd fails to read CAC card data, errors out
The versions I were using before (from the Trusty repositories) are pcscd 1.8.10 and libccid 1.4.15. I've installed PCSC version 1.8.17 and libccid 1.4.24: $ /usr/local/sbin/pcscd --version pcsc-lite version 1.8.17. Copyright (C) 1999-2002 by David Corcoran. Copyright (C) 2001-2015 by Ludovic Rousseau . Copyright (C) 2003-2004 by Damien Sauveron . Report bugs to . Enabled features: Linux x86_64-pc-linux-gnu serial usb libudev usbdropdir=/usr/local/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/usr/local/etc/reader.conf.d Both configurations cause the same errors, where it seems that it fails to read the card. I've attached the lsusb of the broadcom device, as well as the complete log. ** Attachment added: "lsusb of broadcom device" https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+attachment/4691605/+files/lsusb.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1596662 Title: pcscd fails to read CAC card data, errors out To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1596662] Re: pcscd fails to read CAC card data, errors out
** Attachment added: "lsusb of broadcom device" https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+attachment/4691607/+files/lsusb.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1596662 Title: pcscd fails to read CAC card data, errors out To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1596662] [NEW] pcscd fails to read CAC card data, errors out
Public bug reported: When I use Firefox to try and access a website using my CAC card, with a Broadcom Corp 5880 [Contacted SmartCard] smart card reader on a Dell Precision 7510 and libcackey, my web browser hangs for a bit, then fails, and looking at pcscd's log shows the following (note the lines: "0026 ifdwrapper.c:348:IFDStatusICC() Card not transacted: 612 0002 winscard.c:592:SCardReconnect() Error resetting card." Ubuntu 14.04.4, kernel 4.2.0-38-generic. See below: winscard.c:1632:SCardTransmit() UnrefReader() count was: 2 0003 winscard_svc.c:608:ContextThread() TRANSMIT rv=0x0 for client 15 0039 winscard_svc.c:319:ContextThread() Received command: TRANSMIT from client 15 0008 readerfactory.c:772:RFReaderInfoById() RefReader() count was: 1 0003 winscard.c:1587:SCardTransmit() Send Protocol: T=0 0003 APDU: 00 C0 00 00 BA 0003 ifdhandler.c:1266:IFDHTransmitToICC() usb:0a5c/5800:libudev:1:/dev/bus/usb/001/005 (lun: 0) 00014006 commands.c:1456:CCID_Receive() Can't read all data (54 out of 188 expected) 0012 SW: 0003 ifdwrapper.c:527:IFDTransmit() Card not transacted: 612 0003 winscard.c:1612:SCardTransmit() Card not transacted: 0x80100016 0002 winscard.c:1632:SCardTransmit() UnrefReader() count was: 2 0003 winscard_svc.c:608:ContextThread() TRANSMIT rv=0x80100016 for client 15 0038 winscard_svc.c:319:ContextThread() Received command: RECONNECT from client 15 0007 winscard.c:504:SCardReconnect() Attempting reconnect to token. 0003 readerfactory.c:772:RFReaderInfoById() RefReader() count was: 1 00230568 ccid_usb.c:790:ReadUSB() read failed (1/5): -8 Resource temporarily unavailable 0026 ifdwrapper.c:348:IFDStatusICC() Card not transacted: 612 0002 winscard.c:592:SCardReconnect() Error resetting card. 0002 winscard.c:793:SCardReconnect() UnrefReader() count was: 2 0003 winscard_svc.c:472:ContextThread() RECONNECT rv=0x80100066 for client 15 0049 winscard_svc.c:319:ContextThread() Received command: TRANSMIT from client 15 0007 readerfactory.c:772:RFReaderInfoById() RefReader() count was: 1 0002 winscard.c:1632:SCardTransmit() UnrefReader() count was: 2 0001 winscard_svc.c:608:ContextThread() TRANSMIT rv=0x80100068 for client 15 0014 winscard_svc.c:319:ContextThread() Received command: DISCONNECT from client 15 0004 readerfactory.c:772:RFReaderInfoById() RefReader() count was: 1 0002 winscard.c:850:SCardDisconnect() Active Contexts: 1 0002 winscard.c:851:SCardDisconnect() dwDisposition: 0 0001 winscard.c:1016:SCardDisconnect() powerState: POWER_STATE_GRACE_PERIOD 0003 ifdhandler.c:362:IFDHGetCapabilities() tag: 0xFB2, usb:0a5c/5800:libudev:1:/dev/bus/usb/001/005 (lun: 0) 0002 winscard.c:1030:SCardDisconnect() Stopping polling thread 0014 ifdhandler.c:327:IFDHStopPolling() usb:0a5c/5800:libudev:1:/dev/bus/usb/001/005 (lun: 0) 0147 winscard.c:1043:SCardDisconnect() UnrefReader() count was: 2 0007 winscard_svc.c:490:ContextThread() DISCONNECT rv=0x0 for client 15 0049 winscard_svc.c:319:ContextThread() Received command: CONNECT from client 15 0024 winscard.c:235:SCardConnect() Attempting Connect to Broadcom Corp 5880 [Contacted SmartCard] (0123456789ABCD) 00 00 using protocol: 3 0002 readerfactory.c:745:RFReaderInfo() RefReader() count was: 1 0002 winscard.c:322:SCardConnect() Card Not Powered ** Affects: pcsc-lite (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1596662 Title: pcscd fails to read CAC card data, errors out To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1596662/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1445219] Re: aa-logprof hangs indefinitely in Ubuntu 14.04 LTS
Thank you. I'm still a bit confused, because the bug 1307665 report seems to indicate that a patch has been released, but an update isn't coming through the PPAs. Oh well...I'll go bother them over there. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1445219 Title: aa-logprof hangs indefinitely in Ubuntu 14.04 LTS To manage notifications about this bug go to: https://bugs.launchpad.net/apparmor/+bug/1445219/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1445219] Re: aa-logprof hangs indefinitely in Ubuntu 14.04 LTS
I've attached the selective audit.log generated with the grep command above. Here's the backtrace I got when hitting Ctrl-C: Reading log entries from /var/log/audit/audit.log. Updating AppArmor profiles in /etc/apparmor.d. ^CTraceback (most recent call last): File /usr/sbin/aa-logprof, line 52, in module apparmor.do_logprof_pass(logmark) File /usr/lib/python3/dist-packages/apparmor/aa.py, line 2257, in do_logprof_pass log = log_reader.read_log(logmark) File /usr/lib/python3/dist-packages/apparmor/logparser.py, line 359, in read_log event = self.parse_log_record(line) File /usr/lib/python3/dist-packages/apparmor/logparser.py, line 93, in parse_log_record record_event = self.parse_event(record) File /usr/lib/python3/dist-packages/apparmor/logparser.py, line 139, in parse_event mask, name = log_str_to_mode(ev['profile'], dmask, ev['name2']) File /usr/lib/python3/dist-packages/apparmor/aamode.py, line 254, in log_str_to_mode mode = str_to_mode(string) File /usr/lib/python3/dist-packages/apparmor/aamode.py, line 79, in str_to_mode mode = sub_str_to_mode(user) File /usr/lib/python3/dist-packages/apparmor/aamode.py, line 95, in sub_str_to_mode string = MODE_MAP_RE.sub('', string, 1) KeyboardInterrupt ** Attachment added: audit.log https://bugs.launchpad.net/apparmor/+bug/1445219/+attachment/4380206/+files/audit.log -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1445219 Title: aa-logprof hangs indefinitely in Ubuntu 14.04 LTS To manage notifications about this bug go to: https://bugs.launchpad.net/apparmor/+bug/1445219/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1445219] Re: aa-logprof hangs indefinitely in Ubuntu 14.04 LTS
Also (and I admit, I'm don't use python that often) I tried to run the userspace tools from 2.9.1 and get the following: Traceback (most recent call last): File ./aa-logprof, line 18, in module import apparmor.aa as apparmor File /home/lacelle/apparmor-2.9.1/utils/apparmor/aa.py, line 29, in module import apparmor.logparser File /home/lacelle/apparmor-2.9.1/utils/apparmor/logparser.py, line 18, in module import LibAppArmor ImportError: No module named LibAppArmor Obviously I don't have my python env set up correctly, just not sure how to do so. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1445219 Title: aa-logprof hangs indefinitely in Ubuntu 14.04 LTS To manage notifications about this bug go to: https://bugs.launchpad.net/apparmor/+bug/1445219/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs