Summary: | app-crypt/gnupg - Message is not clear to me; does `gpg-agent --daemon` need to be run for one session or for all of them? | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Arnaud Vallette d'Osia <arnaudv6> |
Component: | Current packages | Assignee: | Crypto team [DISABLED] <crypto+disabled> |
Status: | RESOLVED CANTFIX | ||
Severity: | normal | CC: | alonbl, arnaudv6 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Arnaud Vallette d'Osia
2013-10-19 18:01:14 UTC
Not sure, I think it depends on if the environment it returns changes; but yes, would be nice to see this clarified on how this applies to multiple sessions. Well, it is much more complex than that. If you use gpg-agent as daemon you should know how and where it is started, there are lots of configuration options to do so. The important thing to remember is that once executed using --daemon you get the following message: GPG_AGENT_INFO=/tmp/gpg-LbxI52/S.gpg-agent:14258:1; export GPG_AGENT_INFO; This environment variable must be available for applications that are to use the agent. So although you are right that the message does not describe the entire solution, it is consider friendly reminder that daemon need to be restarted as well... If you can provide alternate phrasing that is more generic it would be great. Marking this as CANTFIX unless some valuable input arrives. Thanks both for answering. I am very willing to propose a message in an attempt to make it clearer. (even though not a native english speaker), I have no certitude on whether the deamon can be system-wide or session-level. Can you tell me, Alon Bar-Lev, maybe ? regards ArnaudV6 (In reply to Arnaud Vallette d'Osia from comment #4) > Thanks both for answering. > I am very willing to propose a message in an attempt to make it clearer. > (even though not a native english speaker), > I have no certitude on whether the deamon can be system-wide or > session-level. > Can you tell me, Alon Bar-Lev, maybe ? > > regards > ArnaudV6 I am unsure what you refer as 'session'... A daemon uses unix domain sockets to communicate with utilities. Unix domian sockets is accessible to uid/gid who runs the daemon. In order for utilities to know how to locate the unix domain socket, an environment variable (GPG_AGENT_INFO) should be provided. Usually this can be run at X session initialization, then the environment variable is exposed to all applications. |