roddhjav / apparmor.d

Full set of AppArmor profiles (~ 1500 profiles)
https://apparmor.pujol.io
GNU General Public License v2.0
410 stars 35 forks source link

Multiple GPG Agent lead to broken signing #404

Open Stoppedpuma opened 4 weeks ago

Stoppedpuma commented 4 weeks ago

Not sure which profile causes this as setting gpg* to complain doesn't fix this. I encountered this with lazygit and was unable to commit until a teardown. Logs don't show anything, just this from journalctl:

gpg-agent[58120]: command 'PKSIGN' failed: No pinentry gpg-agent[58120]: failed to read the secret key gpg-agent[58120]: failed to unprotect the secret key: No pinentry gpg-agent[58120]: can't connect to the PIN entry module '/usr/bin/pinentry': End of file gpg-agent[58120]: SIGHUP received - re-reading configuration and flushing cache

roddhjav commented 4 weeks ago

That is a tricky one.

To sum up the issue,

I currently don't know how to fix this in a correct way.