forked from enlightenment/efl
eina debug - fix setuid process shutdown by initting fully except conn
init eina debug fully except for the debug daemon connection that the setuid check was meant to skip. this fixes T7055
This commit is contained in:
parent
4aad39ce03
commit
194971342b
|
@ -715,6 +715,9 @@ eina_debug_init(void)
|
|||
self = pthread_self();
|
||||
_eina_debug_thread_mainloop_set(&self);
|
||||
_eina_debug_thread_add(&self);
|
||||
_eina_debug_cpu_init();
|
||||
_eina_debug_bt_init();
|
||||
_eina_debug_timer_init();
|
||||
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
|
||||
// if we are setuid - don't debug!
|
||||
if (getuid() != geteuid()) return EINA_TRUE;
|
||||
|
@ -726,9 +729,6 @@ eina_debug_init(void)
|
|||
{
|
||||
eina_debug_local_connect(EINA_FALSE);
|
||||
}
|
||||
_eina_debug_cpu_init();
|
||||
_eina_debug_bt_init();
|
||||
_eina_debug_timer_init();
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue