capabilities: leak-detective using dlsym() does not need CAP_SYS_NICE anymore
[strongswan.git] / 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 */
 #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);
 
 #ifdef EMULATE_R_FUNCS
        this->mutex = mutex_create(MUTEX_TYPE_DEFAULT);