[GH-ISSUE #1546] Cannot authenticate SSH with smartcard though gpg-agent because of /run/user/UID/gnupg blacklist #1032

Closed
opened 2026-05-05 07:19:47 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @Ryujinra on GitHub (Sep 12, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1546

The following commit blacklists the 'gnupg' directory under /run/user/{UID}: #0c5aa59.

If you are using a OpenPGP smartcard to publickey authenticate, ssh needs access to this directory because it contains the gpg-agent ssh socket (S.gpg-agent.ssh) for accessing the keys on the smartcard.

--noprofile / noblacklist has no effect on this directory/files.

I suppose that an option to disable the blacklisting of this directory in a program's .local file would be the best solution.

Originally created by @Ryujinra on GitHub (Sep 12, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1546 The following commit blacklists the 'gnupg' directory under /run/user/{UID}: #0c5aa59. If you are using a OpenPGP smartcard to publickey authenticate, ssh needs access to this directory because it contains the gpg-agent ssh socket (S.gpg-agent.ssh) for accessing the keys on the smartcard. --noprofile / noblacklist has no effect on this directory/files. I suppose that an option to disable the blacklisting of this directory in a program's .local file would be the best solution.
gitea-mirror 2026-05-05 07:19:47 -06:00
Author
Owner

@netblue30 commented on GitHub (Sep 13, 2017):

You cannot disable it, it is hardcoded in this moment. I'll bring in support to allow you to disable it from a profile file.

<!-- gh-comment-id:329300139 --> @netblue30 commented on GitHub (Sep 13, 2017): You cannot disable it, it is hardcoded in this moment. I'll bring in support to allow you to disable it from a profile file.
Author
Owner

@netblue30 commented on GitHub (Sep 14, 2017):

I added on mainline --writable-run-user command and profile option. I also included it in ssh and ssh-agent profiles. Thanks for the bug.

<!-- gh-comment-id:329472555 --> @netblue30 commented on GitHub (Sep 14, 2017): I added on mainline --writable-run-user command and profile option. I also included it in ssh and ssh-agent profiles. Thanks for the bug.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1032
No description provided.