diff options
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); |