From: Todd C. Miller Date: Sun, 28 Sep 2014 01:52:45 +0000 (-0600) Subject: Add BASH_FUNC_* to environment blacklist for newer-style bash functions. X-Git-Tag: SUDO_1_8_12^2~174 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c823eb3ef9837e45a4255f48b01f574743661a2e;p=sudo Add BASH_FUNC_* to environment blacklist for newer-style bash functions. --- diff --git a/plugins/sudoers/env.c b/plugins/sudoers/env.c index 482e14c1d..7a74d4f56 100644 --- a/plugins/sudoers/env.c +++ b/plugins/sudoers/env.c @@ -170,6 +170,7 @@ static const char *initial_badenv_table[] = { "PYTHONUSERBASE", /* python, per user site-packages directory */ "RUBYLIB", /* ruby, library load path */ "RUBYOPT", /* ruby, extra command line options */ + "BASH_FUNC_*", /* new-style bash functions */ NULL };