capabilities: leak-detective using dlsym() does not need CAP_SYS_NICE anymore
This commit is contained in:
@@ -309,15 +309,9 @@ capabilities_t *capabilities_create()
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
#ifdef CAPABILITIES
|
|
||||||
#ifdef CAPABILITIES_LIBCAP
|
#ifdef CAPABILITIES_LIBCAP
|
||||||
this->caps = cap_init();
|
this->caps = cap_init();
|
||||||
#endif /* CAPABILITIES_LIBCAP */
|
#endif /* CAPABILITIES_LIBCAP */
|
||||||
if (lib->leak_detective)
|
|
||||||
{
|
|
||||||
keep(this, CAP_SYS_NICE);
|
|
||||||
}
|
|
||||||
#endif /* CAPABILITIES */
|
|
||||||
|
|
||||||
#ifdef EMULATE_R_FUNCS
|
#ifdef EMULATE_R_FUNCS
|
||||||
this->mutex = mutex_create(MUTEX_TYPE_DEFAULT);
|
this->mutex = mutex_create(MUTEX_TYPE_DEFAULT);
|
||||||
|
|||||||
Reference in New Issue
Block a user