The Assimilation Project  based on Assimilation version 1.1.2.1454953989
cma.cma Namespace Reference

Functions

def main ()
 
def supplementary_groups_for_user (userid)
 
def drop_privileges_permanently (userid)
 
def make_pid_dir (pidfile, userid)
 
def make_key_dir (keydir, userid)
 
def logger (msg)
 
def process_main_exception (ex)
 

Variables

tuple SUPPORTED_PYTHON_VERSIONS = ('2.7',)
 
tuple SUPPORTED_PY2NEO_VERSIONS = (2,)
 
tuple SUPPORTED_NEO4J_VERSIONS = (2,)
 
tuple PYTHON_VERSION = ('%s.%s' % sys.version_info[0:2])
 
list optional_modules
 
 PY2NEO_VERSION = py2neo.__version__
 
 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 414 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 487 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 474 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 460 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 491 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 401 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 508 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 120 of file cma.py.

cma.cma.PY2NEO_VERSION = py2neo.__version__

Definition at line 126 of file cma.py.

tuple cma.cma.PYTHON_VERSION = ('%s.%s' % sys.version_info[0:2])

Definition at line 101 of file cma.py.

cma.cma.pyversion = sys.version_info

Definition at line 505 of file cma.py.

tuple cma.cma.SUPPORTED_NEO4J_VERSIONS = (2,)

Definition at line 99 of file cma.py.

tuple cma.cma.SUPPORTED_PY2NEO_VERSIONS = (2,)

Definition at line 98 of file cma.py.

tuple cma.cma.SUPPORTED_PYTHON_VERSIONS = ('2.7',)

Definition at line 97 of file cma.py.