]> 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:43:13 +0000 (21:43 +0200)
commita4a1752edb10c136863cc617cf4f49574c24fcd5
tree10ef034a25618830388f34a770c5f659adfb22f9
parent26b14f335d53ce4bdaed5dbdd0e7268b8c7b5484
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