summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-11-30 00:41:05 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-11-30 00:41:05 +0100
commit8cb219bfdc0ae3763e19a0f96511f32f9b06e243 (patch)
tree1d4e6fc03a267b02e4e2df9257649dc099de628f /src/main.c
parentc77bce46779cd2c9f25b7be78243f34a0ef1777e (diff)
downloadconnman-8cb219bfdc0ae3763e19a0f96511f32f9b06e243.tar.gz
connman-8cb219bfdc0ae3763e19a0f96511f32f9b06e243.tar.bz2
connman-8cb219bfdc0ae3763e19a0f96511f32f9b06e243.zip
Check for capabilities support via libcap-ng
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 312b823f..327eb245 100644
--- a/src/main.c
+++ b/src/main.c
@@ -34,6 +34,10 @@
#include <gdbus.h>
+#ifdef HAVE_CAPNG
+#include <cap-ng.h>
+#endif
+
#include "connman.h"
static GMainLoop *main_loop = NULL;
@@ -109,6 +113,10 @@ int main(int argc, char *argv[])
struct sigaction sa;
mode_t old_umask;
+#ifdef HAVE_CAPNG
+ /* Drop capabilities */
+#endif
+
#ifdef NEED_THREADS
if (g_thread_supported() == FALSE)
g_thread_init(NULL);