mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg,agent,kbx,sm,scd,tpm2d,g13: Use assuan_control.
* agent/gpg-agent.c (thread_init_once): Call assuan_control. * g10/gpg.c (main): Likewise. * g13/g13.c (main): Likewise. * kbx/keyboxd.c (thread_init_once): Likewise. * scd/scdaemon.c (main): Likewise. * sm/gpgsm.c (main): Likewise. * tpm2d/tpm2daemon.c (main): Likewise. -- GnuPG-bug-id: 6606 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
ed4050e011
commit
1d73806972
7 changed files with 9 additions and 0 deletions
|
@ -754,6 +754,7 @@ main (int argc, char **argv )
|
|||
npth_init ();
|
||||
setup_signal_mask ();
|
||||
gpgrt_set_syscall_clamp (npth_unprotect, npth_protect);
|
||||
assuan_control (ASSUAN_CONTROL_REINIT_SYSCALL_CLAMP, NULL);
|
||||
|
||||
/* If --debug-allow-core-dump has been given we also need to
|
||||
switch the working directory to a place where we can actually
|
||||
|
@ -895,6 +896,7 @@ main (int argc, char **argv )
|
|||
npth_init ();
|
||||
setup_signal_mask ();
|
||||
gpgrt_set_syscall_clamp (npth_unprotect, npth_protect);
|
||||
assuan_control (ASSUAN_CONTROL_REINIT_SYSCALL_CLAMP, NULL);
|
||||
|
||||
/* Detach from tty and put process into a new session. */
|
||||
if (!nodetach )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue