capabilities: leak-detective using dlsym() does not need CAP_SYS_NICE anymore
authorMartin Willi <martin@revosec.ch>
Wed, 8 May 2013 12:58:59 +0000 (14:58 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 15 May 2013 15:20:47 +0000 (17:20 +0200)
src/libstrongswan/utils/capabilities.c

index c58ce2f..89f4782 100644 (file)
@@ -309,15 +309,9 @@ capabilities_t *capabilities_create()
                },
        );
 
-#ifdef CAPABILITIES
 #ifdef CAPABILITIES_LIBCAP
        this->caps = cap_init();
 #endif /* CAPABILITIES_LIBCAP */
-       if (lib->leak_detective)
-       {
-               keep(this, CAP_SYS_NICE);
-       }
-#endif /* CAPABILITIES */
 
 #ifdef EMULATE_R_FUNCS
        this->mutex = mutex_create(MUTEX_TYPE_DEFAULT);