diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-05-29 08:17:01 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-05-29 08:17:01 +0200 |
commit | c98de2a4bf5ae4adcceacdcb48347555fdbff00e (patch) | |
tree | 802354b43e68ccf6495a75bf7c53d0d5aa505357 /src/main.c | |
parent | d1c9cac6beb88ff5e59d6d471280edac20d4d996 (diff) | |
download | ofono-c98de2a4bf5ae4adcceacdcb48347555fdbff00e.tar.bz2 |
build: Remove dependency on libcap-ng
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -32,10 +32,6 @@ #include <gdbus.h> -#ifdef HAVE_CAPNG -#include <cap-ng.h> -#endif - #include "ofono.h" #define SHUTDOWN_GRACE_SECONDS 10 @@ -173,15 +169,6 @@ int main(int argc, char **argv) DBusError error; guint signal; -#ifdef HAVE_CAPNG - /* Drop capabilities */ - capng_clear(CAPNG_SELECT_BOTH); - capng_updatev(CAPNG_ADD, CAPNG_EFFECTIVE | CAPNG_PERMITTED, - CAP_NET_BIND_SERVICE, CAP_NET_ADMIN, - CAP_NET_RAW, CAP_SYS_ADMIN, -1); - capng_apply(CAPNG_SELECT_BOTH); -#endif - #ifdef NEED_THREADS if (g_thread_supported() == FALSE) g_thread_init(NULL); |