]> granicus.if.org Git - sudo/commitdiff
Add BASH_FUNC_* to environment blacklist for newer-style bash functions.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 28 Sep 2014 01:52:45 +0000 (19:52 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 28 Sep 2014 01:52:45 +0000 (19:52 -0600)
plugins/sudoers/env.c

index 482e14c1dd1336f1e5c087ca27067fd67dc4426b..7a74d4f5653a17fdc8db32af7498e9ee23978614 100644 (file)
@@ -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
 };