From 53bc986ce5f9725d7117356e28224ac898f9c9bf Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 4 Jan 2016 12:32:16 -0600 Subject: 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(-) (limited to 'src/rc/rc-misc.c') diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c index bb401e13..dbdac685 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 }; -- cgit v1.2.3