Moving the agent's socket to /var/run ?

Neal H. Walfield neal at walfield.org
Tue Feb 23 16:33:29 CET 2016


On Tue, 23 Feb 2016 16:24:45 +0100,
Werner Koch wrote:
> What about changing the _default_ name for the sockets from, say,
> ~/.gnupg/S.gpg-agent to /var/run/user/<uid>/S.gpg-agent ?  This is
> similar to what system daemons use for their socket names and has the
> further advantage that /var/run is always locally mounted and would thus
> avoid the re-direction file hack used for NFS etc.  This would only be
> done if GNUPGHOME/--homedir is not set so that it is still possible to
> run a second instance of gnupg.

Why not use something like:

  /var/run/user/<uid>/S.gpg-agent-hash

where hash is the hash of GNUPGHOME?

:) Neal



More information about the Gnupg-devel mailing list