Florian Weimer 8dcb6d0af0 dlfcn: Do not use rtld_active () to determine ld.so state (bug 29078)
When audit modules are loaded, ld.so initialization is not yet
complete, and rtld_active () returns false even though ld.so is
mostly working.  Instead, the static dlopen hook is used, but that
does not work at all because this is not a static dlopen situation.

Commit 466c1ea15f461edb8e3ffaf5d86d708876343bbf ("dlfcn: Rework
static dlopen hooks") moved the hook pointer into _rtld_global_ro,
which means that separate protection is not needed anymore and the
hook pointer can be checked directly.

The guard for disabling libio vtable hardening in _IO_vtable_check
should stay for now.

Fixes commit 8e1472d2c1e25e6eabc2059170731365f6d5b3d1 ("ld.so:
Examine GLRO to detect inactive loader [BZ #20204]").

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2022-04-26 14:24:36 +02:00
..
2005-09-28 00:14:50 +00:00
2005-09-28 00:14:50 +00:00
2021-09-03 22:06:44 +05:30
2013-06-05 20:44:03 +00:00
2003-08-15 03:58:56 +00:00
2003-08-15 03:58:56 +00:00
2014-11-27 16:00:08 +00:00
2007-07-12 18:17:11 +00:00
2015-01-21 01:51:10 -05:00
2015-01-21 01:51:10 -05:00
2001-12-28 16:43:13 +00:00
2021-06-03 08:26:04 +02:00