Propagate GLIBC_TUNABLES in setxid binaries
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 19 Sep 2023 17:25:40 +0000 (13:25 -0400)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 2 Oct 2023 19:35:05 +0000 (15:35 -0400)
GLIBC_TUNABLES scrubbing happens earlier than envvar scrubbing and some
tunables are required to propagate past setxid boundary, like their
env_alias.  Rely on tunable scrubbing to clean out GLIBC_TUNABLES like
before, restoring behaviour in glibc 2.37 and earlier.

Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/generic/unsecvars.h

index 81397fb..8278c50 100644 (file)
@@ -4,7 +4,6 @@
 #define UNSECURE_ENVVARS \
   "GCONV_PATH\0"                                                             \
   "GETCONF_DIR\0"                                                            \
-  "GLIBC_TUNABLES\0"                                                         \
   "HOSTALIASES\0"                                                            \
   "LD_AUDIT\0"                                                               \
   "LD_DEBUG\0"                                                               \