Repository URL to install this package:
Version:
4.0.109 ▾
|
contego
/
home
/
tvault
/
.virtenv
/
lib
/
python2.7
/
site-packages
/
oslo_privsep
/
priv_context.pyc
|
---|
ó ōEYc @ s d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z e j e Z d Z e j d d e d e j d d e d e j d d e j e d g d e d e j d d e d g Z d Z d g a e j d e j f d Y Z d d Z d e f d YZ d S( iÿÿÿÿN( t cfg( t types( t importutils( t _( t capabilities( t daemonc C s@ t | j } y t j | SWn t k r; t | SXd S( N( t strt stripR t CAPS_BYNAMEt KeyErrort int( t value( ( sN /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_privsep/priv_context.pyt CapNameOrInt" s t usert helps+ User that the privsep daemon should run as.t groups, Group that the privsep daemon should run as.R t typet defaults: List of Linux capabilities retained by the privsep daemon.t helper_commands' Command to invoke to start the privsep daemon if not using the "fork" method. If not specified, a default is generated using "sudo privsep-helper" and arguments designed to recreate the current configuration. This command must accept suitable --privsep_context and --privsep_sock_path arguments.t privsep_entrypointt sudot Methodc B s e Z d Z d Z RS( i i ( t __name__t __module__t FORKt ROOTWRAP( ( ( sN /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_privsep/priv_context.pyR A s c C s | r | a n d S( sß Initialise oslo.privsep library. This function should be called at the top of main(), after the command line is parsed, oslo.config is initialised and logging is set up, but before calling any privileged entrypoint, changing user id, forking, or anything else "odd". :param root_helper: List of command and arguments to prefix privsep-helper with, in order to run helper as root. Note, ignored if context's helper_command config option is set. N( t _HELPER_COMMAND_PREFIX( t root_helper( ( sN /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_privsep/priv_context.pyt initG s t PrivContextc B sw e Z d d d d Z e d Z d Z d Z d Z d Z d Z d Z e j d Z d Z RS( t privsepc C s | d k r t d n | | _ | | _ | | _ t j d k | _ d | _ t j j t d | t j j d d | d | d S( Ns$ capabilities is a required parametert win32R R R ( t Nonet ValueErrort pypatht prefixt cfg_sectiont syst platformt client_modet channelR t CONFt register_optst OPTSt set_default( t selfR# R$ R" R ( ( sN /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_privsep/priv_context.pyt __init__Z s c C s t j | j S( s<