]> 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, 20 May 2025 19:08:16 +0000 (21:08 +0200)
commitbff3b0f16c991b825016afee53a85b4d2b4f6b72
tree88ca44c845f2f327139ffe7623608da55078b718
parentd2febe7c407665c18cfea1930c65f41899ab3aa3
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:

git/elf/dl-support.c
  (missing commit 55f41ef8de4a4d0c5762d78659e11202d3c765d4
   ("elf: Remove LD_PROFILE for static binaries"),
   missing removal of tunables support)
elf/dl-support.c