I have a U2F yubikey device that works as expected, i.e. I can use it in Firefox and Chromium for U2F style authentication, and it even works on the command line with key-located/bound gpg and ssh sk keys.
However, whenever I browse the web in Firefox, my system journal is spammed with messages like the following:
Oct 03 13:27:13 example.org pcscd[3995]: 00627056 ../src/winscard.c:281:SCardConnect() Error Reader Exclusive Oct 03 13:27:13 example.org pcscd[3995]: 00016093 ../src/winscard.c:281:SCardConnect() Error Reader Exclusive Oct 03 13:27:18 example.org pcscd[3995]: 05082935 ../src/winscard.c:281:SCardConnect() Error Reader Exclusive Oct 03 13:27:18 example.org pcscd[3995]: 00014093 ../src/winscard.c:281:SCardConnect() Error Reader Exclusive Oct 03 13:27:18 example.org pcscd[3995]: 00126862 ../src/winscard.c:281:SCardConnect() Error Reader Exclusive Oct 03 13:27:18 example.org pcscd[3995]: 00019371 ../src/winscard.c:281:SCardConnect() Error Reader Exclusive Oct 03 13:27:19 example.org pcscd[3995]: 00969073 ../src/winscard.c:281:SCardConnect() Error Reader Exclusive Oct 03 13:27:19 example.org pcscd[3995]: 00014576 ../src/winscard.c:281:SCardConnect() Error Reader Exclusive Oct 03 13:27:59 example.org pcscd[3995]: 40081162 ../src/winscard.c:281:SCardConnect() Error Reader Exclusive Oct 03 13:27:59 example.org pcscd[3995]: 00013050 ../src/winscard.c:281:SCardConnect() Error Reader Exclusive Oct 03 13:28:00 example.org pcscd[3995]: 01170137 ../src/winscard.c:281:SCardConnect() Error Reader Exclusive Oct 03 13:28:00 example.org pcscd[3995]: 00018057 ../src/winscard.c:281:SCardConnect() Error Reader Exclusive Oct 03 13:28:24 example.org pcscd[3995]: 23750498 ../src/winscard.c:281:SCardConnect() Error Reader Exclusive That means I can trigger those bursts of messages whenever I'm clicking on yet another link in firefox.
NB: This happens on all pages, i.e. also pages that doesn't try to do anything with U2F, also the U2F key isn't flashing nor requesting user-presence interaction, or something like that. Meanwhile, U2F features continue to work fine.
When running execsnoop in parallel, I can see that those messages correlates with bursts of /usr/bin/pkla-check-authorization invocations by /usr/lib/polkit-1/polkitd:
783.356 998 pkla-check-auth 3280463 1591 0 /usr/bin/pkla-check-authorization juser true true org.debian.pcsc-lite.access_card 783.381 998 pkla-check-auth 3280466 1591 0 /usr/bin/pkla-check-authorization juser true true org.debian.pcsc-lite.access_card 783.446 998 pkla-check-auth 3280470 1591 0 /usr/bin/pkla-check-authorization juser true true org.debian.pcsc-lite.access_card 783.469 998 pkla-check-auth 3280473 1591 0 /usr/bin/pkla-check-authorization juser true true org.debian.pcsc-lite.access_card 798.342 998 pkla-check-auth 3280737 1591 0 /usr/bin/pkla-check-authorization juser true true org.debian.pcsc-lite.access_card 798.359 998 pkla-check-auth 3280740 1591 0 /usr/bin/pkla-check-authorization juser true true org.debian.pcsc-lite.access_card 798.426 998 pkla-check-auth 3280743 1591 0 /usr/bin/pkla-check-authorization juser true true org.debian.pcsc-lite.access_card 798.440 998 pkla-check-auth 3280746 1591 0 /usr/bin/pkla-check-authorization juser true true org.debian.pcsc-lite.access_card 799.639 998 pkla-check-auth 3280788 1591 0 /usr/bin/pkla-check-authorization juser true true org.debian.pcsc-lite.access_pcsc NB: process 1591 is polkitd
Curiously, I can trigger and observe the same behaviour when browsing with chromium ...
Naturally I want to fix these two things:
- stop that journal log spam
- eliminate that wasteful forking of all these
pkla-check-authorizationprocesses
How can I archive that?
Are there some firefox/chromium settings I need to look into and change?
Do I need to perhaps make play gpg play nicer together with polkitd/pcscd?
This happens on a Fedora 41 system.