From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1EAHvM-0004dJ-JQ for garchives@archives.gentoo.org; Wed, 31 Aug 2005 02:02:01 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7V1wVD7019970; Wed, 31 Aug 2005 01:58:31 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7V1tYgV006541 for ; Wed, 31 Aug 2005 01:55:35 GMT Received: from localhost ([127.0.0.1] helo=home.wh0rd.org) by smtp.gentoo.org with esmtp (Exim 4.43) id 1EAHrF-0002tS-PL for gentoo-dev@lists.gentoo.org; Wed, 31 Aug 2005 01:57:45 +0000 Received: (qmail 29468 invoked from network); 30 Aug 2005 21:52:40 -0400 Received: from unknown (HELO vapier) (192.168.0.2) by 192.168.0.1 with SMTP; 30 Aug 2005 21:52:40 -0400 From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: init.d-scripts don't see stuff from /etc/profile.env Date: Tue, 30 Aug 2005 21:57:52 -0400 User-Agent: KMail/1.8.2 References: <200508301909.51972.vapier@gentoo.org> In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Message-Id: <200508302157.52550.vapier@gentoo.org> X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id j7V1tYgV006541 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id j7V1wVEd019970 X-Archives-Salt: e0cf6d2d-093e-450e-9a48-860f11f0f14c X-Archives-Hash: 636be9c856e2488f40f43e7d5db89a04 On Tuesday 30 August 2005 09:41 pm, Sven K=F6hler wrote: > > init.d scripts should have a pure env given to them ... which means, = they > > should be run with `env -i` and have only whitelisted variables given= to > > them (and everything that appears in /etc/conf.d/$service /etc/conf.d= /rc > > and /etc/rc.conf) ... > > Now that may be too few variables. At least the variable LANG (or > whatever the system-admin may chose to set) could be seen as a > system-wide language-setting. It could be intentional, that at least > some variables are available to the started server-processes. Especiall= y > a system-wide language-setting would be a good idea. that is the point of the whitelist idea ... we gather a 'full=20 env' (source /etc/profile i guess) and rip out just the whitelisted varia= bles=20 to pass on to init scripts -mike --=20 gentoo-dev@gentoo.org mailing list