[arch-general] Starting gpg-agent from systemd?

Magnus Therning magnus at therning.org
Sun Jun 8 16:21:32 EDT 2014


On Fri, Jun 06, 2014 at 10:41:24AM -0700, Patrick Burroughs (Celti) wrote:
> On Fri, Jun 6, 2014 at 10:14 AM, Magnus Therning <magnus at therning.org> wrote:
> > I have a feeling this ought to be solvable using systemd but I can't
> > really see how.  Writing a service for gpg-agent is not that
> > difficult, and it creates the required environment file without
> > problems.  But, how do I hook it in to the user login in the right
> > way?  Who should be wanting my gpg-agent.service, and then load the
> > generated file using EnvironmentFile=?
> 
> Rather than starting it purely with systemd, have you looked into
> using Envoy [1] and using its PAM module to ensure it gets propagated
> to the entire login session?

Thanks.  I did the following

- start the systemd service envoy at ssh-agent.socket
- add pam_envoy.so to /etc/pam.d/system-login

That got it working for ssh, but not for gpg.  Is there something else
I should do to also get gpg-agent support?

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus

I invented the term Object-Oriented, and I can tell you I did not have
C++ in mind.
     -- Alan Kay
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20140608/136339b6/attachment.asc>


More information about the arch-general mailing list