The Assimilation Project  based on Assimilation version 0.5.1440692045
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
cma.cma Namespace Reference

Functions

def main
 
def supplementary_groups_for_user
 
def drop_privileges_permanently
 
def make_pid_dir
 
def make_key_dir
 
def logger
 
def process_main_exception
 

Variables

list optional_modules
 
 pyversion = sys.version_info
 
int exitrc = 1
 

Function Documentation

def cma.cma.drop_privileges_permanently (   userid)
Drop our privileges permanently and run as the given user with
the privileges to which they would be entitled if they logged in.
That is, the uid, gid, and supplementary group list are all set correctly.
We are careful to make sure we have exactly the permissions we need
as 'userid'.
Either we need to be started as root or as 'userid' or this function
will fail and exit the program.

Definition at line 381 of file cma.py.

References cma.cma.supplementary_groups_for_user().

Referenced by cma.cma.main().

Here is the call graph for this function:

Here is the caller graph for this function:

def cma.cma.logger (   msg)

Definition at line 454 of file cma.py.

Referenced by cma.cma.process_main_exception().

Here is the caller graph for this function:

def cma.cma.make_key_dir (   keydir,
  userid 
)

Definition at line 441 of file cma.py.

Referenced by cma.cma.main().

Here is the caller graph for this function:

def cma.cma.make_pid_dir (   pidfile,
  userid 
)

Definition at line 427 of file cma.py.

Referenced by cma.cma.main().

Here is the caller graph for this function:

def cma.cma.process_main_exception (   ex)

Definition at line 458 of file cma.py.

References cma.cma.logger().

Here is the call graph for this function:

def cma.cma.supplementary_groups_for_user (   userid)
Return the list of supplementary groups to which this member
would belong if they logged in as a tuple of (groupnamelist, gidlist)

Definition at line 368 of file cma.py.

Referenced by cma.cma.drop_privileges_permanently().

Here is the caller graph for this function:

Variable Documentation

tuple cma.cma.exitrc = 1

Definition at line 475 of file cma.py.

Referenced by _childprocess_childexit().

list cma.cma.optional_modules
Initial value:
1 = [ 'discoverylistener' # NOT OPTIONAL(!)
2  , 'linkdiscovery'
3  , 'checksumdiscovery'
4  , 'monitoringdiscovery'
5  , 'arpdiscovery'
6  ]

Definition at line 113 of file cma.py.

cma.cma.pyversion = sys.version_info

Definition at line 472 of file cma.py.