Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201750 - sys-process/daemontools-0.76-r5 - /etc/init.d/svscan starts svscan without cleaning the environment
Summary: sys-process/daemontools-0.76-r5 - /etc/init.d/svscan starts svscan without cl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High minor
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-09 09:34 UTC by Tavin Cole
Modified: 2007-12-09 10:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tavin Cole 2007-12-09 09:34:43 UTC
consider the start() function:

start() {
        ebegin "Starting service scan"
        start-stop-daemon --start --exec /usr/bin/svscan \
                --background --make-pidfile \
                --pidfile /var/run/svscan.pid -- /service
        eend $?
}

i have changed mine to this in order to clean up the environment inherited by all supervised daemons (passing along only PATH):

start() {
        ebegin "Starting service scan"
        env - PATH="$PATH" start-stop-daemon --start --exec /usr/bin/svscan \
                --background --make-pidfile \
                --pidfile /var/run/svscan.pid -- /service
        eend $?
}

even this is a bit weird, you wind up with a PATH like this:

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/sbin:/usr/sbin

apparently somewhere during system init the PATH entries get duplicated.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-12-09 09:36:48 UTC
No idea what installs /etc/init.d/svscan; reopen with exact ebuild name and version.
Comment 2 Tavin Cole 2007-12-09 09:40:37 UTC
sys-process/daemontools-0.76-r5

there was no input field for that in the bug submission form.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-12-09 09:44:54 UTC
Thanks.
Comment 4 SpanKY gentoo-dev 2007-12-09 10:04:37 UTC
this is already fixed in baselayout-2 with env whitelisting