On Fri, Feb 25, 2011 at 9:55 AM, Peter Palfrader <[email protected]> wrote: > We should probably start a campaign in Debian to have all init scripts > sanitize the environment of daemons they start. > > I usually run initscripts using "env -i /etc/init.d/$foo start" to > achieve exactly that, but ideally the init script itself would do that. > > Maybe start-stop-daemon should have an option to delete all but a > specified set of environment variables, maybe even enabled by default.
Why start-stop-daemon? I'd create /lib/deb/init-functions and either supply a function to sanitize the environment or do this automatically. -- Olaf -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

