about summary refs log tree commit diff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorJoe Simmons-Talbott <josimmon@redhat.com>2024-02-29 19:55:58 +0000
committerJoe Talbott <joetalbott@gmail.com>2024-02-29 19:55:58 +0000
commit71648e80042658f23965924616fb7db9c2fccff9 (patch)
tree6f8e71df3792ff126df2b7c74cef072af8a28df7 /elf/Makefile
parent9b7091415af47082664717210ac49d51551456ab (diff)
downloadglibc-71648e80042658f23965924616fb7db9c2fccff9.tar.gz
glibc-71648e80042658f23965924616fb7db9c2fccff9.tar.xz
glibc-71648e80042658f23965924616fb7db9c2fccff9.zip
rtld: Add glibc.rtld.enable_secure tunable.
Add a tunable for setting __libc_enable_secure to 1.  Do not set
__libc_enable_secure to 0 if the tunable is set to 0.  Ignore all
tunables if glib.rtld.enable_secure is set.  One use-case for this
addition is to enable testing code paths that depend on
__libc_enable_secure being set without the need to use setxid binaries.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile
index f0439ef634..520a270f0f 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -285,6 +285,7 @@ tests-static-internal := \
   tst-tls1-static \
   tst-tls1-static-non-pie \
   tst-tunables \
+  tst-tunables-enable_secure \
   # tests-static-internal
 
 CRT-tst-tls1-static-non-pie := $(csu-objpfx)crt1.o
@@ -2681,6 +2682,7 @@ $(objpfx)tst-glibc-hwcaps-mask.out: \
 $(objpfx)tst-glibc-hwcaps-cache.out: $(objpfx)tst-glibc-hwcaps
 
 tst-tunables-ARGS = -- $(host-test-program-cmd)
+tst-tunables-enable_secure-ARGS = -- $(host-test-program-cmd)
 
 $(objpfx)list-tunables.out: tst-rtld-list-tunables.sh $(objpfx)ld.so
 	$(SHELL) $< $(objpfx)ld.so '$(test-wrapper-env)' \