rtld: Add glibc.rtld.enable_secure tunable.
commit71648e80042658f23965924616fb7db9c2fccff9
authorJoe Simmons-Talbott <josimmon@redhat.com>
Thu, 29 Feb 2024 19:55:58 +0000 (29 19:55 +0000)
committerJoe Talbott <joetalbott@gmail.com>
Thu, 29 Feb 2024 19:55:58 +0000 (29 19:55 +0000)
tree6f8e71df3792ff126df2b7c74cef072af8a28df7
parent9b7091415af47082664717210ac49d51551456ab
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>
NEWS
elf/Makefile
elf/dl-tunables.c
elf/dl-tunables.list
elf/tst-rtld-list-tunables.exp
elf/tst-tunables-enable_secure.c [new file with mode: 0644]