The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cma.cma Namespace Reference


def main
def supplementary_groups_for_user
def drop_privileges_permanently
def make_pid_dir


list optional_modules
 pyversion = sys.version_info
tuple exitrc = main()

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 372 of file

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.make_pid_dir (   pidfile,

Definition at line 418 of file

Referenced by cma.cma.main().

Here is the caller 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 359 of file

Referenced by cma.cma.drop_privileges_permanently().

Here is the caller graph for this function:

Variable Documentation

tuple cma.cma.exitrc = main()

Definition at line 436 of file

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.cma.pyversion = sys.version_info

Definition at line 433 of file