From d24a74c5b4fb62b720a79b632021746b69de7c45 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 30 Apr 2009 11:37:54 +0000 Subject: merging changes from portability branch back to trunk important change for developers: %Y replaces %D to print identities! --- src/charon/daemon.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/charon/daemon.c') diff --git a/src/charon/daemon.c b/src/charon/daemon.c index 6dcb39a89..339846a85 100644 --- a/src/charon/daemon.c +++ b/src/charon/daemon.c @@ -17,7 +17,9 @@ */ #include +#ifdef HAVE_PRCTL #include +#endif #include #include #include @@ -240,8 +242,10 @@ static void kill_daemon(private_daemon_t *this, char *reason) * drop daemon capabilities */ static void drop_capabilities(private_daemon_t *this) -{ +{ +#ifdef HAVE_PRCTL prctl(PR_SET_KEEPCAPS, 1); +#endif if (setgid(charon->gid) != 0) { -- cgit v1.2.3