Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182451 - net-www/apache-2.2.4-r7: erroneous quotes for suexec safepath
Summary: net-www/apache-2.2.4-r7: erroneous quotes for suexec safepath
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-18 12:52 UTC by Martin von Gagern
Modified: 2007-07-08 20:32 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 Martin von Gagern 2007-06-18 12:52:17 UTC
The single quotes around the argument of --with-suexec-safepath are wrong.

I created this small CGI program:

#!/bin/bash
echo "Content-type: text/plain"
echo ""
set

When run without suexec I see a line like this:
PATH=/bin:/sbin:...:/usr/qt/3/bin
When run through suexec I see this line instead:
PATH=''\''/usr/local/bin:/usr/bin:/bin'\'''

Is there any special reason why the safepath should not be user configurable?
I guess there could be users who might wish to restrict the set of available interpreters for CGIs. As all other suexec settings seem configurable, why not this one as well?
Comment 1 Christian Heim (RETIRED) gentoo-dev 2007-06-29 12:49:33 UTC
(In reply to comment #0)
> The single quotes around the argument of --with-suexec-safepath are wrong.
> 
> I created this small CGI program:
> 
> #!/bin/bash
> echo "Content-type: text/plain"
> echo ""
> set
> 
> When run without suexec I see a line like this:
> PATH=/bin:/sbin:...:/usr/qt/3/bin
> When run through suexec I see this line instead:
> PATH=''\''/usr/local/bin:/usr/bin:/bin'\'''
> 
> Is there any special reason why the safepath should not be user configurable?
> I guess there could be users who might wish to restrict the set of available
> interpreters for CGIs. As all other suexec settings seem configurable, why not
> this one as well?

Because I figured there's no way we could support stuff with custom SUEXEC_SAFEPATH settings (like insane ones), but /usr/sbin/suexec -V lists the variables nicely ...

I have an ebuild ready, just need to check a couple of other things.

Comment 2 Christian Heim (RETIRED) gentoo-dev 2007-07-08 20:32:18 UTC
(In reply to comment #1)
> Because I figured there's no way we could support stuff with custom
> SUEXEC_SAFEPATH settings (like insane ones), but /usr/sbin/suexec -V lists the
> variables nicely ...
> 
> I have an ebuild ready, just need to check a couple of other things.

Thank you Martin, I just committed a fixed ebuild to the tree.