Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Collaboration diagram for unix:

Data Structures

struct  ap_unix_identity_t
 
struct  unixd_config_rec
 

Macros

#define PLATFORM   "Unix"
 
#define AP_NEED_SET_MUTEX_PERMS   1
 
#define AP_PLATFORM_REWRITE_ARGS_HOOK   ap_mpm_rewrite_args
 
#define DEFAULT_USER   "#-1"
 
#define DEFAULT_GROUP   "#-1"
 
#define ap_unixd_killpg(x, y)   (kill (-(x), (y)))
 
#define ap_os_killpg(x, y)   (kill (-(x), (y)))
 

Functions

int ap_unixd_setup_child (void)
 
ap_unix_identity_tget_suexec_identity (const request_rec *r)
 
apr_status_t ap_unixd_set_proc_mutex_perms (apr_proc_mutex_t *pmutex)
 
apr_status_t ap_unixd_set_global_mutex_perms (apr_global_mutex_t *gmutex)
 
apr_status_t ap_unixd_accept (void **accepted, ap_listen_rec *lr, apr_pool_t *ptrans)
 

Variables

AP_DECLARE_DATA unixd_config_rec ap_unixd_config
 

Detailed Description

Macro Definition Documentation

#define AP_NEED_SET_MUTEX_PERMS   1
#define ap_os_killpg (   x,
 
)    (kill (-(x), (y)))
#define AP_PLATFORM_REWRITE_ARGS_HOOK   ap_mpm_rewrite_args
#define ap_unixd_killpg (   x,
 
)    (kill (-(x), (y)))
#define DEFAULT_GROUP   "#-1"
#define DEFAULT_USER   "#-1"
#define PLATFORM   "Unix"

Function Documentation

apr_status_t ap_unixd_accept ( void **  accepted,
ap_listen_rec lr,
apr_pool_t ptrans 
)
apr_status_t ap_unixd_set_global_mutex_perms ( apr_global_mutex_t gmutex)
apr_status_t ap_unixd_set_proc_mutex_perms ( apr_proc_mutex_t pmutex)

One of the functions to set mutex permissions should be called in the parent process on platforms that switch identity when the server is started as root. If the child init logic is performed before switching identity (e.g., MPM setup for an accept mutex), it should only be called for SysV semaphores. Otherwise, it is safe to call it for all mutex types.

int ap_unixd_setup_child ( void  )
ap_unix_identity_t* get_suexec_identity ( const request_rec r)

Variable Documentation