Home | History | Annotate | Download | only in python
      1 # This file was automatically generated by SWIG (http://www.swig.org).
      2 # Version 2.0.7
      3 #
      4 # Do not make changes to this file unless you know what you are doing--modify
      5 # the SWIG interface file instead.
      6 
      7 
      8 
      9 from sys import version_info
     10 if version_info >= (2,6,0):
     11     def swig_import_helper():
     12         from os.path import dirname
     13         import imp
     14         fp = None
     15         try:
     16             fp, pathname, description = imp.find_module('_capng', [dirname(__file__)])
     17         except ImportError:
     18             import _capng
     19             return _capng
     20         if fp is not None:
     21             try:
     22                 _mod = imp.load_module('_capng', fp, pathname, description)
     23             finally:
     24                 fp.close()
     25             return _mod
     26     _capng = swig_import_helper()
     27     del swig_import_helper
     28 else:
     29     import _capng
     30 del version_info
     31 try:
     32     _swig_property = property
     33 except NameError:
     34     pass # Python < 2.2 doesn't have 'property'.
     35 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
     36     if (name == "thisown"): return self.this.own(value)
     37     if (name == "this"):
     38         if type(value).__name__ == 'SwigPyObject':
     39             self.__dict__[name] = value
     40             return
     41     method = class_type.__swig_setmethods__.get(name,None)
     42     if method: return method(self,value)
     43     if (not static):
     44         self.__dict__[name] = value
     45     else:
     46         raise AttributeError("You cannot add attributes to %s" % self)
     47 
     48 def _swig_setattr(self,class_type,name,value):
     49     return _swig_setattr_nondynamic(self,class_type,name,value,0)
     50 
     51 def _swig_getattr(self,class_type,name):
     52     if (name == "thisown"): return self.this.own()
     53     method = class_type.__swig_getmethods__.get(name,None)
     54     if method: return method(self)
     55     raise AttributeError(name)
     56 
     57 def _swig_repr(self):
     58     try: strthis = "proxy of " + self.this.__repr__()
     59     except: strthis = ""
     60     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
     61 
     62 try:
     63     _object = object
     64     _newclass = 1
     65 except AttributeError:
     66     class _object : pass
     67     _newclass = 0
     68 
     69 
     70 CAP_CHOWN = _capng.CAP_CHOWN
     71 CAP_DAC_OVERRIDE = _capng.CAP_DAC_OVERRIDE
     72 CAP_DAC_READ_SEARCH = _capng.CAP_DAC_READ_SEARCH
     73 CAP_FOWNER = _capng.CAP_FOWNER
     74 CAP_FSETID = _capng.CAP_FSETID
     75 CAP_KILL = _capng.CAP_KILL
     76 CAP_SETGID = _capng.CAP_SETGID
     77 CAP_SETUID = _capng.CAP_SETUID
     78 CAP_SETPCAP = _capng.CAP_SETPCAP
     79 CAP_LINUX_IMMUTABLE = _capng.CAP_LINUX_IMMUTABLE
     80 CAP_NET_BIND_SERVICE = _capng.CAP_NET_BIND_SERVICE
     81 CAP_NET_BROADCAST = _capng.CAP_NET_BROADCAST
     82 CAP_NET_ADMIN = _capng.CAP_NET_ADMIN
     83 CAP_NET_RAW = _capng.CAP_NET_RAW
     84 CAP_IPC_LOCK = _capng.CAP_IPC_LOCK
     85 CAP_IPC_OWNER = _capng.CAP_IPC_OWNER
     86 CAP_SYS_MODULE = _capng.CAP_SYS_MODULE
     87 CAP_SYS_RAWIO = _capng.CAP_SYS_RAWIO
     88 CAP_SYS_CHROOT = _capng.CAP_SYS_CHROOT
     89 CAP_SYS_PTRACE = _capng.CAP_SYS_PTRACE
     90 CAP_SYS_PACCT = _capng.CAP_SYS_PACCT
     91 CAP_SYS_ADMIN = _capng.CAP_SYS_ADMIN
     92 CAP_SYS_BOOT = _capng.CAP_SYS_BOOT
     93 CAP_SYS_NICE = _capng.CAP_SYS_NICE
     94 CAP_SYS_RESOURCE = _capng.CAP_SYS_RESOURCE
     95 CAP_SYS_TIME = _capng.CAP_SYS_TIME
     96 CAP_SYS_TTY_CONFIG = _capng.CAP_SYS_TTY_CONFIG
     97 CAP_MKNOD = _capng.CAP_MKNOD
     98 CAP_LEASE = _capng.CAP_LEASE
     99 CAP_AUDIT_WRITE = _capng.CAP_AUDIT_WRITE
    100 CAP_AUDIT_CONTROL = _capng.CAP_AUDIT_CONTROL
    101 CAP_SETFCAP = _capng.CAP_SETFCAP
    102 CAP_MAC_OVERRIDE = _capng.CAP_MAC_OVERRIDE
    103 CAP_MAC_ADMIN = _capng.CAP_MAC_ADMIN
    104 CAP_SYSLOG = _capng.CAP_SYSLOG
    105 CAP_WAKE_ALARM = _capng.CAP_WAKE_ALARM
    106 CAP_LAST_CAP = _capng.CAP_LAST_CAP
    107 CAPNG_DROP = _capng.CAPNG_DROP
    108 CAPNG_ADD = _capng.CAPNG_ADD
    109 CAPNG_EFFECTIVE = _capng.CAPNG_EFFECTIVE
    110 CAPNG_PERMITTED = _capng.CAPNG_PERMITTED
    111 CAPNG_INHERITABLE = _capng.CAPNG_INHERITABLE
    112 CAPNG_BOUNDING_SET = _capng.CAPNG_BOUNDING_SET
    113 CAPNG_SELECT_CAPS = _capng.CAPNG_SELECT_CAPS
    114 CAPNG_SELECT_BOUNDS = _capng.CAPNG_SELECT_BOUNDS
    115 CAPNG_SELECT_BOTH = _capng.CAPNG_SELECT_BOTH
    116 CAPNG_FAIL = _capng.CAPNG_FAIL
    117 CAPNG_NONE = _capng.CAPNG_NONE
    118 CAPNG_PARTIAL = _capng.CAPNG_PARTIAL
    119 CAPNG_FULL = _capng.CAPNG_FULL
    120 CAPNG_PRINT_STDOUT = _capng.CAPNG_PRINT_STDOUT
    121 CAPNG_PRINT_BUFFER = _capng.CAPNG_PRINT_BUFFER
    122 CAPNG_NO_FLAG = _capng.CAPNG_NO_FLAG
    123 CAPNG_DROP_SUPP_GRP = _capng.CAPNG_DROP_SUPP_GRP
    124 CAPNG_CLEAR_BOUNDING = _capng.CAPNG_CLEAR_BOUNDING
    125 
    126 def capng_clear(*args):
    127   return _capng.capng_clear(*args)
    128 capng_clear = _capng.capng_clear
    129 
    130 def capng_fill(*args):
    131   return _capng.capng_fill(*args)
    132 capng_fill = _capng.capng_fill
    133 
    134 def capng_setpid(*args):
    135   return _capng.capng_setpid(*args)
    136 capng_setpid = _capng.capng_setpid
    137 
    138 def capng_get_caps_process():
    139   return _capng.capng_get_caps_process()
    140 capng_get_caps_process = _capng.capng_get_caps_process
    141 
    142 def capng_update(*args):
    143   return _capng.capng_update(*args)
    144 capng_update = _capng.capng_update
    145 
    146 def capng_updatev(*args):
    147   return _capng.capng_updatev(*args)
    148 capng_updatev = _capng.capng_updatev
    149 
    150 def capng_apply(*args):
    151   return _capng.capng_apply(*args)
    152 capng_apply = _capng.capng_apply
    153 
    154 def capng_lock():
    155   return _capng.capng_lock()
    156 capng_lock = _capng.capng_lock
    157 
    158 def capng_change_id(*args):
    159   return _capng.capng_change_id(*args)
    160 capng_change_id = _capng.capng_change_id
    161 
    162 def capng_get_caps_fd(*args):
    163   return _capng.capng_get_caps_fd(*args)
    164 capng_get_caps_fd = _capng.capng_get_caps_fd
    165 
    166 def capng_apply_caps_fd(*args):
    167   return _capng.capng_apply_caps_fd(*args)
    168 capng_apply_caps_fd = _capng.capng_apply_caps_fd
    169 
    170 def capng_have_capabilities(*args):
    171   return _capng.capng_have_capabilities(*args)
    172 capng_have_capabilities = _capng.capng_have_capabilities
    173 
    174 def capng_have_capability(*args):
    175   return _capng.capng_have_capability(*args)
    176 capng_have_capability = _capng.capng_have_capability
    177 
    178 def capng_print_caps_numeric(*args):
    179   return _capng.capng_print_caps_numeric(*args)
    180 capng_print_caps_numeric = _capng.capng_print_caps_numeric
    181 
    182 def capng_print_caps_text(*args):
    183   return _capng.capng_print_caps_text(*args)
    184 capng_print_caps_text = _capng.capng_print_caps_text
    185 
    186 def capng_name_to_capability(*args):
    187   return _capng.capng_name_to_capability(*args)
    188 capng_name_to_capability = _capng.capng_name_to_capability
    189 
    190 def capng_capability_to_name(*args):
    191   return _capng.capng_capability_to_name(*args)
    192 capng_capability_to_name = _capng.capng_capability_to_name
    193 # This file is compatible with both classic and new-style classes.
    194 
    195 
    196