The Assimilation Project
|pyversion = sys.version_info|
|tuple||exitrc = main()|
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.
Referenced by cma.cma.main().
References are_we_already_running(), assimilation_openlog(), daemonize_me(), cma.cma.drop_privileges_permanently(), kill_pid_service(), cma.cma.make_pid_dir(), pidrunningstat_to_status(), proj_class_incr_debug(), remove_pid_file(), and rmpid_and_exit_on_signal().
|tuple cma.cma.exitrc = main()|