| 195 | } |
| 196 | |
| 197 | AP_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 :) ) */ |
| 215 | static apr_lockmech_e proc_mutex_mech(apr_proc_mutex_t *pmutex) |
no outgoing calls
no test coverage detected