aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/daemon.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-07-27 14:45:15 +0200
committerTobias Brunner <tobias@strongswan.org>2012-07-27 14:46:42 +0200
commit63ac6d00b0b40042b7edce487a86f79940fe6f4a (patch)
tree9c181563c0be676b5fad49dd6934c9522c4c7731 /src/libcharon/daemon.c
parent8ff109482351b23f8f1009c901dcd45b7c341378 (diff)
downloadstrongswan-63ac6d00b0b40042b7edce487a86f79940fe6f4a.tar.bz2
strongswan-63ac6d00b0b40042b7edce487a86f79940fe6f4a.tar.xz
Proper fallback if capability dropping is not available
Diffstat (limited to 'src/libcharon/daemon.c')
-rw-r--r--src/libcharon/daemon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcharon/daemon.c b/src/libcharon/daemon.c
index ece5afff9..612796a78 100644
--- a/src/libcharon/daemon.c
+++ b/src/libcharon/daemon.c
@@ -29,6 +29,10 @@
#include <kernel/kernel_handler.h>
#include <processing/jobs/start_action_job.h>
+#ifndef CAP_NET_ADMIN
+#define CAP_NET_ADMIN 12
+#endif
+
typedef struct private_daemon_t private_daemon_t;
/**