diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-06-26 15:43:16 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-06-26 15:43:16 +0200 |
commit | 82f21d03274d6a25bb63951d294f69cf7b1052f2 (patch) | |
tree | 4746caabe81a5f94e4e603bd22df850927d389f1 /lib/call-machine.nix | |
parent | 360572c18009e40ab30f6f48f75b6bf896e7c0b2 (diff) |
modules/gnupg: Don't close/remove sockets on stop
When using systemctl restart or systemctl stop on any of the GnuPG services, the sockets were closed and removed. However we are using socket activation, so a simple restart of for example the agent would cause the socket to be closed and removed and afterwards the gpg-agent service is unable to pick up the socket again, thus failing to start. This in turn has led to GnuPG starting the agent by its own, entirely bypassing socket activation and our shiny service module. In order to cope with this, we need to provide LD_PRELOAD wrappers also for remove() and close(), so that we can prevent GnuPG from closing the systemd file descriptors. I've also added a small subtest to ensure this won't happen again in the future. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'lib/call-machine.nix')
0 files changed, 0 insertions, 0 deletions