elf: Ignore LD_BIND_NOW and LD_BIND_NOT for setuid binaries
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 22 Nov 2023 20:43:24 +0000 (17:43 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 5 Dec 2023 16:21:36 +0000 (13:21 -0300)
commit61d848b554c8dd1f017b9d187b2a2f6675dbdbe4
tree41de82ebf009ff82eb713b521d0a378d8ed2d11f
parent876a12e51323b4c0f7b6f32ec76f4a5280b7f0b9
elf: Ignore LD_BIND_NOW and LD_BIND_NOT for setuid binaries

To avoid any environment variable to change setuid binaries
semantics.

Checked on x86_64-linux-gnu.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
elf/rtld.c
elf/tst-env-setuid.c
sysdeps/generic/unsecvars.h