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:
Shawn Webb 2022-06-11 11:26:19 -04:00
parent f59142ed1c
commit 10918f8297

View File

@ -641,9 +641,15 @@ _rtld(Elf_Addr *sp, func_ptr_type *exit_proc, Obj_Entry **objp)
cache_harden_rtld();
#endif
trust = !(issetugid() || harden_rtld);
trust = !issetugid();
direct_exec = false;
#ifdef HARDENEDBSD
if (trust && harden_rtld) {
trust = false;
}
#endif
md_abi_variant_hook(aux_info);
rtld_init_env_vars(env);