[Pcsclite-muscle] need to restart pcscd for USB after boot

Lew Wolfgang wolfgang at sweet-haven.com
Wed Aug 16 07:19:42 PDT 2023


On 8/16/23 00:09, Johannes Berg wrote:
> Hi,
>
> I've been using a yubikey for years now with pcscd to use gpg/ssh, and
> sadly this issue hasn't really been getting any better; if anything, it
> has gotten worse throughout time. Could be something kernel related too,
> I suppose.
>
> Anyway, almost every time I boot my machine, I need to manually restart
> pcscd before it will talk to my yubikey. Originally I thought maybe it's
> related to whether I have it plugged in while booting or not, but really
> it isn't, I normally don't have it plugged in, and yet it won't work
> until I've restarted pcscd. Which is then fine until I reboot again. For
> the record, this is with various recent versions of Fedora, and
>
> pcsc-lite version 1.9.9.
> Copyright (C) 1999-2002 by David Corcoran <corcoran at musclecard.com>.
> Copyright (C) 2001-2022 by Ludovic Rousseau <ludovic.rousseau at free.fr>.
> Copyright (C) 2003-2004 by Damien Sauveron <sauveron at labri.fr>.
> Report bugs to <pcsclite-muscle at lists.infradead.org>.
> Enabled features: Linux x86_64-redhat-linux-gnu libsystemd serial usb
> libudev usbdropdir=/usr/lib64/pcsc/drivers ipcdir=/run/pcscd filter
> configdir=/etc/reader.conf.d
> MAX_READERNAME: 128, PCSCLITE_MAX_READERS_CONTEXTS: 16
>
>
> I'm not sure how I can generate the logs, certainly I couldn't run with
> --foreground since the issue only ever happens with the pcscd instance
> that starts during boot. Could also be something permissions related, I
> suppose, but I honestly don't even know where to start looking.
>
> Has anyone encountered such an issue before, or have any ideas where to
> start looking?

This reminds me of a rinetd problem with systemd that I encountered on
openSUSE Leap.  One of our guys fixed the issue, rinetd was starting too
soon in the boot sequence.  But I'm not systemd fluent and don't remember
how it was fixed.  We haven't had any issues with pcscd and smartcards
on openSUSE.

Regards,
Lew




More information about the pcsclite-muscle mailing list