[PR #6419] [MERGED] profiles: ssh: allow gpgagent socket for custom homedir #6006

Closed
opened 2026-05-05 10:48:56 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/6419
Author: @ayham-1
Created: 7/26/2024
Status: Merged
Merged: 8/7/2024
Merged by: @undefined

Base: masterHead: ssh-gpg-fix


📝 Commits (1)

  • 30bbda4 profiles: ssh: allow gpgagent socket for custom homedir

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 etc/profile-m-z/ssh.profile (+2 -1)

📄 Description

If a custom GPG homedir is used, a hash of its path is used in the path
of the gpg agent socket[1].

For example, when running:

gpgconf --list-dirs agent-ssh-socket

With a custom homedir it returns:

/run/user/1000/gnupg/<hashed homedir>/S.gpg-agent.ssh

Environment: gnupg 2.4.5-4 on Arch Linux.

[1] 91532dc3f4/common/homedir.c (L1342)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netblue30/firejail/pull/6419 **Author:** [@ayham-1](https://github.com/ayham-1) **Created:** 7/26/2024 **Status:** ✅ Merged **Merged:** 8/7/2024 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `ssh-gpg-fix` --- ### 📝 Commits (1) - [`30bbda4`](https://github.com/netblue30/firejail/commit/30bbda42fd8bf562a114936b5e0362846f971a24) profiles: ssh: allow gpgagent socket for custom homedir ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `etc/profile-m-z/ssh.profile` (+2 -1) </details> ### 📄 Description If a custom GPG homedir is used, a hash of its path is used in the path of the gpg agent socket[1]. For example, when running: gpgconf --list-dirs agent-ssh-socket With a custom homedir it returns: /run/user/1000/gnupg/<hashed homedir>/S.gpg-agent.ssh Environment: gnupg 2.4.5-4 on Arch Linux. [1] https://github.com/gpg/gnupg/blob/91532dc3f40599b74fff489cb021c0cd3344ae60/common/homedir.c#L1342 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 10:48:56 -06:00
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#6006
No description provided.