-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yubikey-agent: drop transaction on SIGHUP
When running yubikey-agent has an exclusive lock on the YubiKey which applies to both PIV and PGP applets (presumably because they are mediated by the same daemon) but not FIDO2. This is necessary in order to keep the PIN cached, see go-piv/piv-go#47. Handle SIGHUP by releasing that lock. Never was a signal name more apt. This allows using "killall -HUP yubikey-agent" in a script or alias to release the applet when needed. $ ssh -T [email protected] $ killall -HUP yubikey-agent; pass filippo.io $ killall gpg-agent # couldn't find a command to make it drop its tx yubikey-agent will seamlessly make a new transaction and ask for a PIN the next time a signing operation is requested.
- Loading branch information
1 parent
ed4b7bc
commit 0096c09
Showing
1 changed file
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters