You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Fabien COELHO <co...@cri.ensmp.fr> on 2000/02/16 15:01:49 UTC
better suexec control proposal
Hello new-httpd,
I have the following problem when configuring a server : I would like to
enable/disable/let-as-is the suexec mecanism for per server or per
directory configuration. For instance, no suexec on cgi for a given site,
but suexec mandatory for students' cgi.
Basicallym the actual control is (1) suexec exists and is used (2) it
doesn't and it is not used. Pretty poor.
I've look at the source code, and here is the What and How I see it:
WHAT:
a per server/directory directive named "SuExec" for instance
with 3 values: "mandatory", "enable|on|..." (the default),
"disable|off|...".
disable: no suexec for cgi.
enable: suexec if available, otherwise standard cgi execution.
(this is the current default).
mandatory: suexec or no cgi execution at all!
HOW:
SuExec option should be managed by mod_cgi ? However some of the
management must be handled by ap_call_exec() in main/util_script.c. I need
to add one argument to the function, which is also used from mod_include,
thus maybe the option should be put among common stuff in apache core.
In conclusion, I plan to add the suexec option management in apache core,
to change ap_call_exec signature, and to change calls in mod_cgi and
mod_include to match the signature and to handle the extension.
QUESTION:
Is this reasonnable an addition to apache ?
If a reasonnably well-coded patch is presented, should it be accepted or
will it be refused because of some implicit principle (say, suxec must
not be touched, or whatever...), so I shouldn't bother to send it ?
Is someone else interested in coding this small extension, at least
useful to me ? That would be great;-)
--
Fabien.