commit d7adbe4da527be01f2abebc511008c9a0670219f
Author: Bastien Roucariès <rouca@debian.org>
Date: Sat Aug 13 21:09:20 2022 +0000
Re-apply merge request debian/gnupg2!8
Improve systemd integration of gnupg by injecting environment variable
at start/stop
Previously we used to set SSH_AUTH_SOCK using systemd environment.
The former approach has the following drawbacks:
- the lifetime of SSH_AUTH_SOCK is not tied to the lifetime of the service
- it is hard to know where variables are set
- it is hard custumize the socket variable, for instance for running multiple ssh-agent or testing purpuse
Moreover conceptually it is better to set the environment variable in the same file that run the
service (or socket)
Among the 26 debian patches available in version 2.2.40-1.1 of the package, we noticed the following issues: