]> granicus.if.org Git - apache/commit
Fix PR36410; Change how the get_suexec_identity hook is handled by CGID.
authorColm MacCarthaigh <colm@apache.org>
Tue, 30 Aug 2005 11:26:45 +0000 (11:26 +0000)
committerColm MacCarthaigh <colm@apache.org>
Tue, 30 Aug 2005 11:26:45 +0000 (11:26 +0000)
commitc8e6fa78af6dc3dcf342d2079740d82e95d77bd5
treed5e44f42172ce36e381d7efb8b82f195c8477062
parent4f1d428f25187001e75a12647b3cc940b934f47e
Fix PR36410; Change how the get_suexec_identity hook is handled by CGID.
Instead of using mod_userdir and mod_suexec specific hacks, we now run the hook
on the httpd side of the handler.

If this is NULL, we pass on a magic empty_ugid constant, otherwise pass on the
real ugid.

On the cgid side of the equation, we add our own hook, with REALLY_FIRST, and
then order the hooks. This ensures that cgid's doer runs before any other
registered get_suexec_identity doers.

We use cgid's request config to store the ugid. If ugid == empty_ugid, we DON'T
call ap_os_create_privileged_process, because our doer would return the magic
empty_ugid constant. Having the doer return NULL is no good, because then
userdir and mod_suexec's doers would be called. Instead, we call plain old
apr_proc_create().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@264759 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/generators/mod_cgid.c