<div>Ah, that makes sense. Thanks. I'll try asking on an selinux help forum and see if they have any ideas.</div><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user protonmail_signature_block-empty"><br></div><div class="protonmail_signature_block-proton">Sent with <a href="https://protonmail.com">ProtonMail</a> Secure Email.<br></div></div><div><br></div><blockquote class="protonmail_quote" type="cite"><div>-------- Original Message --------<br></div><div>Subject: Re: Problems reading smartcard<br></div><div>Local Time: December 22, 2017 1:14 PM<br></div><div>UTC Time: December 22, 2017 7:14 PM<br></div><div>From: peter@digitalbrains.com<br></div><div>To: Healer64 <Healer64@protonmail.com>, gnupg-users@gnupg.org <gnupg-users@gnupg.org><br></div><div><br></div><h2><div>I think the problem is that gpg2 is not the one doing the smartcard calls. It<br></div><div> spawns a gpg-agent process, which then spawns an scdaemon process. These two are<br></div><div> still running when you're back at the command prompt.<br></div><div>  <br></div><div> gpg does not do this by default, it talks to the card directly. However, after<br></div><div> gpg2 has spawned its helpers, these helpers are still alive, and <i>holding the<br> card reader exclusively</i>. So now gpg can no longer access the card reader</div><div> because scdaemon, running in the background, already has it open.<br></div><div>  <br></div><div> I don't know /anything/ about SELinux. But hopefully now you can look in the<br></div><div> right place, because I think you got sidetracked by the gpg2 process not<br></div><div> actually doing the business.<br></div><div>  <br></div><div> HTH,<br></div><div>  <br></div><div> Peter.<br></div><div>  <br></div></h2><div><div>I use the GNU Privacy Guard (GnuPG) in combination with Enigmail.<br></div><div> You can send me encrypted mail if you want some privacy.<br></div><div> My key is available at <a href="http://digitalbrains.com/2012/openpgp-key-peter">http://digitalbrains.com/2012/openpgp-key-peter</a><br></div></div><div> <br></div></blockquote><div><br></div>