Home GnuPG
Diffusion GnuPG 1ead1ca818bd

agent: Shutdown on removal of the home directory.

Description

agent: Shutdown on removal of the home directory.

* common/sysutils.c (gnupg_inotify_watch_delete_self): New.
* agent/gpg-agent.c (handle_connections): Rename my_inotify_fd to
sock_inotify_fd.
(handle_connections): Add home_inotify_fd to watch the home directory.

Note that we should add this also to dirmngr. And for non-Linux
systems a stat in ticker should be implemented.

  • GnuPG-bug-id: T3218
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jun 23 2017, 1:20 PM
Parents
rG815ecdf08a42: build: Add missing LIBASSUAN_CFLAGS to dirmngr/.
Branches
Unknown
Tags
Unknown
Tasks
T3218: gpg-agent instances leak