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 |