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=a0c7c4ebeea470eb00dcd1c8200a902a00b5470b;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. (cherry picked from commit 537a06fbdeb9a6c2184c745c15ef3346681f5eeb) --- 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" \