mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-04 15:13:58 +01:00
HBSD: harden_rtld is gated
Refine one conditional to reflect the fact that harden_rtld is gated behind HARDENEDBSD. Signed-off-by: Shawn Webb <shawn.webb@hardenedbsd.org>
This commit is contained in:
parent
f59142ed1c
commit
10918f8297
@ -641,9 +641,15 @@ _rtld(Elf_Addr *sp, func_ptr_type *exit_proc, Obj_Entry **objp)
|
|||||||
cache_harden_rtld();
|
cache_harden_rtld();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
trust = !(issetugid() || harden_rtld);
|
trust = !issetugid();
|
||||||
direct_exec = false;
|
direct_exec = false;
|
||||||
|
|
||||||
|
#ifdef HARDENEDBSD
|
||||||
|
if (trust && harden_rtld) {
|
||||||
|
trust = false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
md_abi_variant_hook(aux_info);
|
md_abi_variant_hook(aux_info);
|
||||||
rtld_init_env_vars(env);
|
rtld_init_env_vars(env);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user