MCPcopy Create free account
hub / github.com/apache/httpd / ap_os_create_privileged_process

Function ap_os_create_privileged_process

os/unix/unixd.c:197–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197AP_DECLARE(apr_status_t) ap_os_create_privileged_process(
198 const request_rec *r,
199 apr_proc_t *newproc, const char *progname,
200 const char * const *args,
201 const char * const *env,
202 apr_procattr_t *attr, apr_pool_t *p)
203{
204 ap_unix_identity_t *ugid = ap_run_get_suexec_identity(r);
205
206 if (ugid == NULL) {
207 return apr_proc_create(newproc, progname, args, env, attr, p);
208 }
209
210 return ap_unix_create_privileged_process(newproc, progname, args, env,
211 attr, ugid, p);
212}
213
214/* XXX move to APR and externalize (but implement differently :) ) */
215static apr_lockmech_e proc_mutex_mech(apr_proc_mutex_t *pmutex)

Callers 2

cgid_serverFunction · 0.50
mod_cgi.cFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected