Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

mod_suexec.c File Reference

#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_log.h"
#include "http_request.h"
#include "apr_strings.h"
#include "unixd.h"
#include "mpm_common.h"
#include "mod_suexec.h"

Include dependency graph for mod_suexec.c:

Go to the source code of this file.

Defines

#define CORE_PRIVATE
#define SUEXEC_POST_CONFIG_USERDATA   "suexec_post_config_userdata"

Functions

static void * mkconfig (apr_pool_t *p)
static void * create_mconfig_for_server (apr_pool_t *p, server_rec *s)
static void * create_mconfig_for_directory (apr_pool_t *p, char *dir)
static const char * set_suexec_ugid (cmd_parms *cmd, void *mconfig, const char *uid, const char *gid)
static ap_unix_identity_tget_suexec_id_doer (const request_rec *r)
static int suexec_post_config (apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s)
static void suexec_hooks (apr_pool_t *p)

Variables

module AP_MODULE_DECLARE_DATA suexec_module
static const command_rec suexec_cmds []


Define Documentation

#define CORE_PRIVATE
 

Definition at line 17 of file mod_suexec.c.

#define SUEXEC_POST_CONFIG_USERDATA   "suexec_post_config_userdata"
 

Definition at line 89 of file mod_suexec.c.

Referenced by suexec_post_config().


Function Documentation

static void* create_mconfig_for_directory apr_pool_t p,
char *  dir
[static]
 

Definition at line 54 of file mod_suexec.c.

References mkconfig().

Here is the call graph for this function:

static void* create_mconfig_for_server apr_pool_t p,
server_rec s
[static]
 

Definition at line 46 of file mod_suexec.c.

References mkconfig().

Here is the call graph for this function:

static ap_unix_identity_t* get_suexec_id_doer const request_rec r  )  [static]
 

Definition at line 81 of file mod_suexec.c.

References suexec_config_t::active, ap_get_module_config, NULL, request_rec::per_dir_config, suexec_module, and suexec_config_t::ugid.

Referenced by register_hooks(), and suexec_hooks().

static void* mkconfig apr_pool_t p  )  [static]
 

Definition at line 34 of file mod_suexec.c.

References suexec_config_t::active.

Referenced by create_mconfig_for_directory(), and create_mconfig_for_server().

static const char* set_suexec_ugid cmd_parms cmd,
void *  mconfig,
const char *  uid,
const char *  gid
[static]
 

Definition at line 59 of file mod_suexec.c.

References suexec_config_t::active, err, ap_unix_identity_t::gid, NOT_IN_DIR_LOC_FILE, NOT_IN_LIMIT, NULL, suexec_config_t::ugid, ap_unix_identity_t::uid, unixd_config, and ap_unix_identity_t::userdir.

static void suexec_hooks apr_pool_t p  )  [static]
 

Definition at line 123 of file mod_suexec.c.

References APR_HOOK_MIDDLE, get_suexec_id_doer(), NULL, and suexec_post_config().

Here is the call graph for this function:

static int suexec_post_config apr_pool_t p,
apr_pool_t plog,
apr_pool_t ptemp,
server_rec s
[static]
 

Definition at line 90 of file mod_suexec.c.

References APLOG_MARK, APLOG_NOTICE, NULL, OK, process_rec::pool, server_rec::process, SUEXEC_POST_CONFIG_USERDATA, and unixd_config.

Referenced by suexec_hooks().


Variable Documentation

const command_rec suexec_cmds[] [static]
 

Initial value:

{
    
    AP_INIT_TAKE2("SuexecUserGroup", set_suexec_ugid, NULL, RSRC_CONF,
      "User and group for spawned processes"),
    { NULL }
}

Definition at line 114 of file mod_suexec.c.

module AP_MODULE_DECLARE_DATA suexec_module
 

Initial value:

Definition at line 129 of file mod_suexec.c.

Referenced by get_suexec_id_doer().