From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4AB5E1388BF for ; Tue, 12 Jan 2016 20:12:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BE014E0882; Tue, 12 Jan 2016 20:12:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 656D4E0881 for ; Tue, 12 Jan 2016 20:12:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 87F6E340A9F for ; Tue, 12 Jan 2016 20:12:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E4DD8C7A for ; Tue, 12 Jan 2016 20:12:22 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1451942055.53bc986ce5f9725d7117356e28224ac898f9c9bf.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/rc-misc.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 53bc986ce5f9725d7117356e28224ac898f9c9bf X-VCS-Branch: master Date: Tue, 12 Jan 2016 20:12:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b4f26bcd-6a8b-4508-8ec4-c39bf59ecc26 X-Archives-Hash: 2364d1a2534ef4a807c2c40bd7c11bee commit: 53bc986ce5f9725d7117356e28224ac898f9c9bf Author: William Hubbs gmail com> AuthorDate: Mon Jan 4 18:32:16 2016 +0000 Commit: William Hubbs gentoo 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 };