The Assimilation Project  based on Assimilation version 1.1.7.1474836767
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,3)
 
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 422 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 495 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 482 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 468 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 499 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 409 of file cma.py.

Referenced by cma.cma.drop_privileges_permanently().

Here is the caller graph for this function:

Variable Documentation

cma.cma.exitrc = 1

Definition at line 516 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 129 of file cma.py.

cma.cma.PY2NEO_VERSION = py2neo.__version__

Definition at line 135 of file cma.py.

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

Definition at line 124 of file cma.py.

cma.cma.pyversion = sys.version_info

Definition at line 513 of file cma.py.

tuple cma.cma.SUPPORTED_NEO4J_VERSIONS = (2,3)

Definition at line 122 of file cma.py.

tuple cma.cma.SUPPORTED_PY2NEO_VERSIONS = (2,)

Definition at line 121 of file cma.py.

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

Definition at line 120 of file cma.py.