]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Make glibc.rtld.enable_secure ignore alias environment variables
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 6 May 2024 16:18:48 +0000 (13:18 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 7 May 2024 15:16:36 +0000 (12:16 -0300)
commiteb59c7b43dd5c64c38e4c3cd21e7ad75d8d29cb0
tree1e328170bed00764e57cb25bda2a1829e1da4f6a
parent1e1ad714ee9a663eda0e2bffad1d9f258b00a4e9
elf: Make glibc.rtld.enable_secure ignore alias environment variables

Tunable with environment variables aliases are also ignored if
glibc.rtld.enable_secure is enabled.  The tunable parsing is also
optimized a bit, where the loop that checks each environment variable
only checks for the tunables with aliases instead of all tables.

Checked on aarch64-linux-gnu and x86_64-linux-gnu.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
elf/dl-tunables.c
elf/tst-tunables-enable_secure.c
scripts/gen-tunables.awk