mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-04 07:01:52 +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();
|
||||
#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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user