commit: 53bc986ce5f9725d7117356e28224ac898f9c9bf Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> AuthorDate: Mon Jan 4 18:32:16 2016 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Mon Jan 4 21:14:15 2016 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=53bc986c
Clean default env_whitelist The whitelist of environment variables we pass to service scripts included several unnecessary variables. The default whitelist now includes EERROR_QUIET, EINFO_QUIET, IN_BACKGROUND and IN_HOTPLUG. X-Gentoo-Bug: 569542 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=569542 src/rc/rc-misc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c index bb401e1..dbdac68 100644 --- a/src/rc/rc-misc.c +++ b/src/rc/rc-misc.c @@ -48,12 +48,8 @@ rc_conf_yesno(const char *setting) } static const char *const env_whitelist[] = { - "CONSOLE", "PATH", "SHELL", "USER", "HOME", "TERM", - "LANG", "LC_CTYPE", "LC_NUMERIC", "LC_TIME", "LC_COLLATE", - "LC_MONETARY", "LC_MESSAGES", "LC_PAPER", "LC_NAME", "LC_ADDRESS", - "LC_TELEPHONE", "LC_MEASUREMENT", "LC_IDENTIFICATION", "LC_ALL", - "IN_HOTPLUG", "IN_BACKGROUND", "RC_INTERFACE_KEEP_CONFIG", "EERROR_QUIET", "EINFO_QUIET", + "IN_BACKGROUND", "IN_HOTPLUG", NULL };