about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2017-02-02 16:15:45 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2017-02-02 16:15:45 +0530
commit537a06fbdeb9a6c2184c745c15ef3346681f5eeb (patch)
treecef4cef218fc81ec5c9d79069ddae58a151b2efe /sysdeps
parent2762a7145bba9681b30ed5d4aed0c5d1df4329c8 (diff)
downloadglibc-537a06fbdeb9a6c2184c745c15ef3346681f5eeb.tar.gz
glibc-537a06fbdeb9a6c2184c745c15ef3346681f5eeb.tar.xz
glibc-537a06fbdeb9a6c2184c745c15ef3346681f5eeb.zip
Drop GLIBC_TUNABLES in setxid processes
Drop the GLIBC_TUNABLES environment variable from the environment of
setxid processes to avoid passing it on to non-setxid children.  This
prevents potentially insecure tunables in the GLIBC_TUNABLES envvar
from crossing over into a child that may use a libc that has tunables
support.

	* sysdeps/generic/unsecvars.h: Add GLIBC_TUNABLES.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/unsecvars.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/generic/unsecvars.h b/sysdeps/generic/unsecvars.h
index d5b8119c9c..3e56538b51 100644
--- a/sysdeps/generic/unsecvars.h
+++ b/sysdeps/generic/unsecvars.h
@@ -4,6 +4,7 @@
 #define UNSECURE_ENVVARS \
   "GCONV_PATH\0"							      \
   "GETCONF_DIR\0"							      \
+  "GLIBC_TUNABLES\0"							      \
   "HOSTALIASES\0"							      \
   "LD_AUDIT\0"								      \
   "LD_DEBUG\0"								      \