]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Drop GLIBC_TUNABLES in setxid processes
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 2 Feb 2017 10:45:45 +0000 (16:15 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 2 Feb 2017 10:45:45 +0000 (16:15 +0530)
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.

ChangeLog
sysdeps/generic/unsecvars.h

index 61d02b572eb6b76b58e54c2ff4c70378bffeb901..32af8098b7c5874694460a97c6d697cd1b600a60 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
+
+       * sysdeps/generic/unsecvars.h: Add GLIBC_TUNABLES.
+
 2017-01-23  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
            Steven Munroe  <sjmunroe@us.ibm.com>
            Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
index d5b8119c9cb5cf5f1391325282287c5935c86589..3e56538b51c4acefff9aa9fb805ae22c641646f1 100644 (file)
@@ -4,6 +4,7 @@
 #define UNSECURE_ENVVARS \
   "GCONV_PATH\0"                                                             \
   "GETCONF_DIR\0"                                                            \
+  "GLIBC_TUNABLES\0"                                                         \
   "HOSTALIASES\0"                                                            \
   "LD_AUDIT\0"                                                               \
   "LD_DEBUG\0"                                                               \