From: Siddhesh Poyarekar Date: Thu, 2 Feb 2017 10:45:45 +0000 (+0530) Subject: Drop GLIBC_TUNABLES in setxid processes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=800f9aa06b64427336eb1f11469d854bf5889122;p=thirdparty%2Fglibc.git 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. --- diff --git a/ChangeLog b/ChangeLog index ae1c7676928..d4efa41002d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2017-02-02 Siddhesh Poyarekar + + * sysdeps/generic/unsecvars.h: Add GLIBC_TUNABLES. + 2017-01-23 Rajalakshmi Srinivasaraghavan Steven Munroe Tulio Magno Quites Machado Filho diff --git a/sysdeps/generic/unsecvars.h b/sysdeps/generic/unsecvars.h index d5b8119c9cb..3e56538b51c 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" \