]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Ignore LD_LIBRARY_PATH and debug env var for setuid for static
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 6 Nov 2023 20:25:49 +0000 (17:25 -0300)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 3 Jun 2025 12:10:36 +0000 (14:10 +0200)
commit35018c0fd20eac9ceaf60060fed2745b3177359d
tree3d654682bd0cb24a5d77b2032ee59ae2b2673673
parent7dd31560a7081c5ff5f51d6ba16bf68bd1c54c46
elf: Ignore LD_LIBRARY_PATH and debug env var for setuid for static

It mimics the ld.so behavior.

Checked on x86_64-linux-gnu.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit 5451fa962cd0a90a0e2ec1d8910a559ace02bba0)

Changes:
Keep EXTRA_UNSECURE_ENVVARS support.
Use __rawmemchr instead of strchr.
Keep LD_PROFILE_OUTPUT support.
Make tunables support optional via HAVE_TUNABLES.
elf/dl-support.c