diff options
author | Darren Tucker <dtucker@zip.com.au> | 2016-06-09 16:23:07 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2016-06-09 16:23:07 +1000 |
commit | 0fb7f5985351fbbcd2613d8485482c538e5123be (patch) | |
tree | e1f112e1d19fcb004a643bef8ce24c03ea38e5e2 /ssh-agent.c | |
parent | e6508898c3cd838324ecfe1abd0eb8cf802e7106 (diff) | |
download | openssh-git-0fb7f5985351fbbcd2613d8485482c538e5123be.tar.gz |
Move prctl PR_SET_DUMPABLE into platform.c.
This should make it easier to add additional platform support such as
Solaris (bz#2584).
Diffstat (limited to 'ssh-agent.c')
-rw-r--r-- | ssh-agent.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ssh-agent.c b/ssh-agent.c index 8aa25b30..25d6ebc5 100644 --- a/ssh-agent.c +++ b/ssh-agent.c @@ -88,10 +88,6 @@ #include "ssh-pkcs11.h" #endif -#if defined(HAVE_SYS_PRCTL_H) -#include <sys/prctl.h> /* For prctl() and PR_SET_DUMPABLE */ -#endif - typedef enum { AUTH_UNUSED, AUTH_SOCKET, @@ -1209,10 +1205,7 @@ main(int ac, char **av) setegid(getgid()); setgid(getgid()); -#if defined(HAVE_PRCTL) && defined(PR_SET_DUMPABLE) - /* Disable ptrace on Linux without sgid bit */ - prctl(PR_SET_DUMPABLE, 0); -#endif + platform_disable_tracing(0); /* strict=no */ #ifdef WITH_OPENSSL OpenSSL_add_all_algorithms(); |