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
9from sys import version_info
10if 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
28else:
29    import _capng
30del version_info
31try:
32    _swig_property = property
33except NameError:
34    pass # Python < 2.2 doesn't have 'property'.
35def _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
48def _swig_setattr(self,class_type,name,value):
49    return _swig_setattr_nondynamic(self,class_type,name,value,0)
50
51def _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
57def _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
62try:
63    _object = object
64    _newclass = 1
65except AttributeError:
66    class _object : pass
67    _newclass = 0
68
69
70CAP_CHOWN = _capng.CAP_CHOWN
71CAP_DAC_OVERRIDE = _capng.CAP_DAC_OVERRIDE
72CAP_DAC_READ_SEARCH = _capng.CAP_DAC_READ_SEARCH
73CAP_FOWNER = _capng.CAP_FOWNER
74CAP_FSETID = _capng.CAP_FSETID
75CAP_KILL = _capng.CAP_KILL
76CAP_SETGID = _capng.CAP_SETGID
77CAP_SETUID = _capng.CAP_SETUID
78CAP_SETPCAP = _capng.CAP_SETPCAP
79CAP_LINUX_IMMUTABLE = _capng.CAP_LINUX_IMMUTABLE
80CAP_NET_BIND_SERVICE = _capng.CAP_NET_BIND_SERVICE
81CAP_NET_BROADCAST = _capng.CAP_NET_BROADCAST
82CAP_NET_ADMIN = _capng.CAP_NET_ADMIN
83CAP_NET_RAW = _capng.CAP_NET_RAW
84CAP_IPC_LOCK = _capng.CAP_IPC_LOCK
85CAP_IPC_OWNER = _capng.CAP_IPC_OWNER
86CAP_SYS_MODULE = _capng.CAP_SYS_MODULE
87CAP_SYS_RAWIO = _capng.CAP_SYS_RAWIO
88CAP_SYS_CHROOT = _capng.CAP_SYS_CHROOT
89CAP_SYS_PTRACE = _capng.CAP_SYS_PTRACE
90CAP_SYS_PACCT = _capng.CAP_SYS_PACCT
91CAP_SYS_ADMIN = _capng.CAP_SYS_ADMIN
92CAP_SYS_BOOT = _capng.CAP_SYS_BOOT
93CAP_SYS_NICE = _capng.CAP_SYS_NICE
94CAP_SYS_RESOURCE = _capng.CAP_SYS_RESOURCE
95CAP_SYS_TIME = _capng.CAP_SYS_TIME
96CAP_SYS_TTY_CONFIG = _capng.CAP_SYS_TTY_CONFIG
97CAP_MKNOD = _capng.CAP_MKNOD
98CAP_LEASE = _capng.CAP_LEASE
99CAP_AUDIT_WRITE = _capng.CAP_AUDIT_WRITE
100CAP_AUDIT_CONTROL = _capng.CAP_AUDIT_CONTROL
101CAP_SETFCAP = _capng.CAP_SETFCAP
102CAP_MAC_OVERRIDE = _capng.CAP_MAC_OVERRIDE
103CAP_MAC_ADMIN = _capng.CAP_MAC_ADMIN
104CAP_SYSLOG = _capng.CAP_SYSLOG
105CAP_WAKE_ALARM = _capng.CAP_WAKE_ALARM
106CAP_LAST_CAP = _capng.CAP_LAST_CAP
107CAPNG_DROP = _capng.CAPNG_DROP
108CAPNG_ADD = _capng.CAPNG_ADD
109CAPNG_EFFECTIVE = _capng.CAPNG_EFFECTIVE
110CAPNG_PERMITTED = _capng.CAPNG_PERMITTED
111CAPNG_INHERITABLE = _capng.CAPNG_INHERITABLE
112CAPNG_BOUNDING_SET = _capng.CAPNG_BOUNDING_SET
113CAPNG_SELECT_CAPS = _capng.CAPNG_SELECT_CAPS
114CAPNG_SELECT_BOUNDS = _capng.CAPNG_SELECT_BOUNDS
115CAPNG_SELECT_BOTH = _capng.CAPNG_SELECT_BOTH
116CAPNG_FAIL = _capng.CAPNG_FAIL
117CAPNG_NONE = _capng.CAPNG_NONE
118CAPNG_PARTIAL = _capng.CAPNG_PARTIAL
119CAPNG_FULL = _capng.CAPNG_FULL
120CAPNG_PRINT_STDOUT = _capng.CAPNG_PRINT_STDOUT
121CAPNG_PRINT_BUFFER = _capng.CAPNG_PRINT_BUFFER
122CAPNG_NO_FLAG = _capng.CAPNG_NO_FLAG
123CAPNG_DROP_SUPP_GRP = _capng.CAPNG_DROP_SUPP_GRP
124CAPNG_CLEAR_BOUNDING = _capng.CAPNG_CLEAR_BOUNDING
125
126def capng_clear(*args):
127  return _capng.capng_clear(*args)
128capng_clear = _capng.capng_clear
129
130def capng_fill(*args):
131  return _capng.capng_fill(*args)
132capng_fill = _capng.capng_fill
133
134def capng_setpid(*args):
135  return _capng.capng_setpid(*args)
136capng_setpid = _capng.capng_setpid
137
138def capng_get_caps_process():
139  return _capng.capng_get_caps_process()
140capng_get_caps_process = _capng.capng_get_caps_process
141
142def capng_update(*args):
143  return _capng.capng_update(*args)
144capng_update = _capng.capng_update
145
146def capng_updatev(*args):
147  return _capng.capng_updatev(*args)
148capng_updatev = _capng.capng_updatev
149
150def capng_apply(*args):
151  return _capng.capng_apply(*args)
152capng_apply = _capng.capng_apply
153
154def capng_lock():
155  return _capng.capng_lock()
156capng_lock = _capng.capng_lock
157
158def capng_change_id(*args):
159  return _capng.capng_change_id(*args)
160capng_change_id = _capng.capng_change_id
161
162def capng_get_caps_fd(*args):
163  return _capng.capng_get_caps_fd(*args)
164capng_get_caps_fd = _capng.capng_get_caps_fd
165
166def capng_apply_caps_fd(*args):
167  return _capng.capng_apply_caps_fd(*args)
168capng_apply_caps_fd = _capng.capng_apply_caps_fd
169
170def capng_have_capabilities(*args):
171  return _capng.capng_have_capabilities(*args)
172capng_have_capabilities = _capng.capng_have_capabilities
173
174def capng_have_capability(*args):
175  return _capng.capng_have_capability(*args)
176capng_have_capability = _capng.capng_have_capability
177
178def capng_print_caps_numeric(*args):
179  return _capng.capng_print_caps_numeric(*args)
180capng_print_caps_numeric = _capng.capng_print_caps_numeric
181
182def capng_print_caps_text(*args):
183  return _capng.capng_print_caps_text(*args)
184capng_print_caps_text = _capng.capng_print_caps_text
185
186def capng_name_to_capability(*args):
187  return _capng.capng_name_to_capability(*args)
188capng_name_to_capability = _capng.capng_name_to_capability
189
190def capng_capability_to_name(*args):
191  return _capng.capng_capability_to_name(*args)
192capng_capability_to_name = _capng.capng_capability_to_name
193# This file is compatible with both classic and new-style classes.
194
195
196