Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: init.d-scripts don't see stuff from /etc/profile.env
Date: Wed, 31 Aug 2005 02:02:01
Message-Id: 200508302157.52550.vapier@gentoo.org
In Reply to: [gentoo-dev] Re: init.d-scripts don't see stuff from /etc/profile.env by "Sven Köhler"
1 On Tuesday 30 August 2005 09:41 pm, Sven Köhler wrote:
2 > > init.d scripts should have a pure env given to them ... which means, they
3 > > should be run with `env -i` and have only whitelisted variables given to
4 > > them (and everything that appears in /etc/conf.d/$service /etc/conf.d/rc
5 > > and /etc/rc.conf) ...
6 >
7 > Now that may be too few variables. At least the variable LANG (or
8 > whatever the system-admin may chose to set) could be seen as a
9 > system-wide language-setting. It could be intentional, that at least
10 > some variables are available to the started server-processes. Especially
11 > a system-wide language-setting would be a good idea.
12
13 that is the point of the whitelist idea ... we gather a 'full
14 env' (source /etc/profile i guess) and rip out just the whitelisted variables
15 to pass on to init scripts
16 -mike
17
18 --
19 gentoo-dev@g.o mailing list

Replies