1# This file was automatically generated by SWIG (http://www.swig.org).
2# Version 2.0.11
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
10
11from sys import version_info
12if version_info >= (2,6,0):
13    def swig_import_helper():
14        from os.path import dirname
15        import imp
16        fp = None
17        try:
18            fp, pathname, description = imp.find_module('_qpol', [dirname(__file__)])
19        except ImportError:
20            import _qpol
21            return _qpol
22        if fp is not None:
23            try:
24                _mod = imp.load_module('_qpol', fp, pathname, description)
25            finally:
26                fp.close()
27            return _mod
28    _qpol = swig_import_helper()
29    del swig_import_helper
30else:
31    import _qpol
32del version_info
33try:
34    _swig_property = property
35except NameError:
36    pass # Python < 2.2 doesn't have 'property'.
37def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38    if (name == "thisown"): return self.this.own(value)
39    if (name == "this"):
40        if type(value).__name__ == 'SwigPyObject':
41            self.__dict__[name] = value
42            return
43    method = class_type.__swig_setmethods__.get(name,None)
44    if method: return method(self,value)
45    if (not static):
46        self.__dict__[name] = value
47    else:
48        raise AttributeError("You cannot add attributes to %s" % self)
49
50def _swig_setattr(self,class_type,name,value):
51    return _swig_setattr_nondynamic(self,class_type,name,value,0)
52
53def _swig_getattr(self,class_type,name):
54    if (name == "thisown"): return self.this.own()
55    method = class_type.__swig_getmethods__.get(name,None)
56    if method: return method(self)
57    raise AttributeError(name)
58
59def _swig_repr(self):
60    try: strthis = "proxy of " + self.this.__repr__()
61    except: strthis = ""
62    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
63
64try:
65    _object = object
66    _newclass = 1
67except AttributeError:
68    class _object : pass
69    _newclass = 0
70
71
72
73def to_str(*args):
74  return _qpol.to_str(*args)
75to_str = _qpol.to_str
76
77def to_int_with_free(*args):
78  return _qpol.to_int_with_free(*args)
79to_int_with_free = _qpol.to_int_with_free
80import logging
81from functools import wraps
82
83def QpolGenerator(cast):
84    """
85    A decorator which converts qpol iterators into Python generators.
86
87    Qpol iterators use void* to be generic about their contents.
88    The purpose of the _from_void functions below is to wrap
89    the pointer casting, hence the "cast" variable name here.
90
91    Decorator parameter:
92    cast    A wrapper function which casts the qpol iterator return pointer
93            to the proper C data type pointer.  The Python function
94            reference to the C Python extension is used, for example:
95
96            @QpolGenerator(_qpol.qpol_type_from_void)
97    """
98
99    def decorate(func):
100        @wraps(func)
101        def wrapper(*args, **kwargs):
102            qpol_iter = func(*args)
103            while not qpol_iter.isend():
104                yield cast(qpol_iter.item())
105                qpol_iter.next_()
106
107        return wrapper
108    return decorate
109
110def qpol_logger(level, msg):
111    """Log qpol messages via Python logging."""
112    logging.getLogger(__name__).debug(msg)
113
114def qpol_policy_factory(path):
115    """Factory function for qpol policy objects."""
116    # The main purpose here is to hook in the
117    # above logger callback.
118    return qpol_policy_t(path, 0, qpol_logger)
119
120QPOL_POLICY_OPTION_NO_NEVERALLOWS = _qpol.QPOL_POLICY_OPTION_NO_NEVERALLOWS
121QPOL_POLICY_OPTION_NO_RULES = _qpol.QPOL_POLICY_OPTION_NO_RULES
122QPOL_POLICY_OPTION_MATCH_SYSTEM = _qpol.QPOL_POLICY_OPTION_MATCH_SYSTEM
123QPOL_POLICY_MAX_VERSION = _qpol.QPOL_POLICY_MAX_VERSION
124QPOL_POLICY_MIN_VERSION = _qpol.QPOL_POLICY_MIN_VERSION
125class qpol_policy_t(_object):
126    __swig_setmethods__ = {}
127    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_policy_t, name, value)
128    __swig_getmethods__ = {}
129    __getattr__ = lambda self, name: _swig_getattr(self, qpol_policy_t, name)
130    __repr__ = _swig_repr
131    def __init__(self, *args):
132        this = _qpol.new_qpol_policy_t(*args)
133        try: self.this.append(this)
134        except: self.this = this
135    __swig_destroy__ = _qpol.delete_qpol_policy_t
136    __del__ = lambda self : None;
137    def version(self): return _qpol.qpol_policy_t_version(self)
138    def handle_unknown(self): return _qpol.qpol_policy_t_handle_unknown(self)
139    def target_platform(self): return _qpol.qpol_policy_t_target_platform(self)
140    def capability(self, *args): return _qpol.qpol_policy_t_capability(self, *args)
141    @QpolGenerator(_qpol.qpol_type_from_void)
142    def type_iter(self): return _qpol.qpol_policy_t_type_iter(self)
143    def type_count(self): return _qpol.qpol_policy_t_type_count(self)
144    @QpolGenerator(_qpol.qpol_role_from_void)
145    def role_iter(self): return _qpol.qpol_policy_t_role_iter(self)
146    def role_count(self): return _qpol.qpol_policy_t_role_count(self)
147    @QpolGenerator(_qpol.qpol_level_from_void)
148    def level_iter(self): return _qpol.qpol_policy_t_level_iter(self)
149    def level_count(self): return _qpol.qpol_policy_t_level_count(self)
150    @QpolGenerator(_qpol.qpol_cat_from_void)
151    def cat_iter(self): return _qpol.qpol_policy_t_cat_iter(self)
152    def cat_count(self): return _qpol.qpol_policy_t_cat_count(self)
153    @QpolGenerator(_qpol.qpol_user_from_void)
154    def user_iter(self): return _qpol.qpol_policy_t_user_iter(self)
155    def user_count(self): return _qpol.qpol_policy_t_user_count(self)
156    @QpolGenerator(_qpol.qpol_bool_from_void)
157    def bool_iter(self): return _qpol.qpol_policy_t_bool_iter(self)
158    def bool_count(self): return _qpol.qpol_policy_t_bool_count(self)
159    @QpolGenerator(_qpol.qpol_class_from_void)
160    def class_iter(self, perm=None): return _qpol.qpol_policy_t_class_iter(self, perm)
161    def class_count(self): return _qpol.qpol_policy_t_class_count(self)
162    @QpolGenerator(_qpol.qpol_common_from_void)
163    def common_iter(self, perm=None): return _qpol.qpol_policy_t_common_iter(self, perm)
164    def common_count(self): return _qpol.qpol_policy_t_common_count(self)
165    @QpolGenerator(_qpol.qpol_fs_use_from_void)
166    def fs_use_iter(self): return _qpol.qpol_policy_t_fs_use_iter(self)
167    def fs_use_count(self): return _qpol.qpol_policy_t_fs_use_count(self)
168    @QpolGenerator(_qpol.qpol_genfscon_from_void)
169    def genfscon_iter(self): return _qpol.qpol_policy_t_genfscon_iter(self)
170    def genfscon_count(self): return _qpol.qpol_policy_t_genfscon_count(self)
171    @QpolGenerator(_qpol.qpol_isid_from_void)
172    def isid_iter(self): return _qpol.qpol_policy_t_isid_iter(self)
173    def isid_count(self): return _qpol.qpol_policy_t_isid_count(self)
174    @QpolGenerator(_qpol.qpol_netifcon_from_void)
175    def netifcon_iter(self): return _qpol.qpol_policy_t_netifcon_iter(self)
176    def netifcon_count(self): return _qpol.qpol_policy_t_netifcon_count(self)
177    @QpolGenerator(_qpol.qpol_nodecon_from_void)
178    def nodecon_iter(self): return _qpol.qpol_policy_t_nodecon_iter(self)
179    def nodecon_count(self): return _qpol.qpol_policy_t_nodecon_count(self)
180    @QpolGenerator(_qpol.qpol_portcon_from_void)
181    def portcon_iter(self): return _qpol.qpol_policy_t_portcon_iter(self)
182    def portcon_count(self): return _qpol.qpol_policy_t_portcon_count(self)
183    @QpolGenerator(_qpol.qpol_constraint_from_void)
184    def constraint_iter(self): return _qpol.qpol_policy_t_constraint_iter(self)
185    def constraint_count(self): return _qpol.qpol_policy_t_constraint_count(self)
186    @QpolGenerator(_qpol.qpol_validatetrans_from_void)
187    def validatetrans_iter(self): return _qpol.qpol_policy_t_validatetrans_iter(self)
188    def validatetrans_count(self): return _qpol.qpol_policy_t_validatetrans_count(self)
189    @QpolGenerator(_qpol.qpol_role_allow_from_void)
190    def role_allow_iter(self): return _qpol.qpol_policy_t_role_allow_iter(self)
191    def role_allow_count(self): return _qpol.qpol_policy_t_role_allow_count(self)
192    @QpolGenerator(_qpol.qpol_role_trans_from_void)
193    def role_trans_iter(self): return _qpol.qpol_policy_t_role_trans_iter(self)
194    def role_trans_count(self): return _qpol.qpol_policy_t_role_trans_count(self)
195    @QpolGenerator(_qpol.qpol_range_trans_from_void)
196    def range_trans_iter(self): return _qpol.qpol_policy_t_range_trans_iter(self)
197    def range_trans_count(self): return _qpol.qpol_policy_t_range_trans_count(self)
198    @QpolGenerator(_qpol.qpol_avrule_from_void)
199    def avrule_iter(self): return _qpol.qpol_policy_t_avrule_iter(self)
200    def avrule_allow_count(self): return _qpol.qpol_policy_t_avrule_allow_count(self)
201    def avrule_auditallow_count(self): return _qpol.qpol_policy_t_avrule_auditallow_count(self)
202    def avrule_neverallow_count(self): return _qpol.qpol_policy_t_avrule_neverallow_count(self)
203    def avrule_dontaudit_count(self): return _qpol.qpol_policy_t_avrule_dontaudit_count(self)
204    @QpolGenerator(_qpol.qpol_avrule_from_void)
205    def avrulex_iter(self): return _qpol.qpol_policy_t_avrulex_iter(self)
206    def avrule_allowx_count(self): return _qpol.qpol_policy_t_avrule_allowx_count(self)
207    def avrule_auditallowx_count(self): return _qpol.qpol_policy_t_avrule_auditallowx_count(self)
208    def avrule_neverallowx_count(self): return _qpol.qpol_policy_t_avrule_neverallowx_count(self)
209    def avrule_dontauditx_count(self): return _qpol.qpol_policy_t_avrule_dontauditx_count(self)
210    @QpolGenerator(_qpol.qpol_terule_from_void)
211    def terule_iter(self): return _qpol.qpol_policy_t_terule_iter(self)
212    def terule_trans_count(self): return _qpol.qpol_policy_t_terule_trans_count(self)
213    def terule_change_count(self): return _qpol.qpol_policy_t_terule_change_count(self)
214    def terule_member_count(self): return _qpol.qpol_policy_t_terule_member_count(self)
215    def cond_iter(self): return _qpol.qpol_policy_t_cond_iter(self)
216    def cond_count(self): return _qpol.qpol_policy_t_cond_count(self)
217    @QpolGenerator(_qpol.qpol_filename_trans_from_void)
218    def filename_trans_iter(self): return _qpol.qpol_policy_t_filename_trans_iter(self)
219    def filename_trans_count(self): return _qpol.qpol_policy_t_filename_trans_count(self)
220    @QpolGenerator(_qpol.qpol_type_from_void)
221    def permissive_iter(self): return _qpol.qpol_policy_t_permissive_iter(self)
222    def permissive_count(self): return _qpol.qpol_policy_t_permissive_count(self)
223    @QpolGenerator(_qpol.qpol_typebounds_from_void)
224    def typebounds_iter(self): return _qpol.qpol_policy_t_typebounds_iter(self)
225    @QpolGenerator(_qpol.qpol_polcap_from_void)
226    def polcap_iter(self): return _qpol.qpol_policy_t_polcap_iter(self)
227    def polcap_count(self): return _qpol.qpol_policy_t_polcap_count(self)
228    @QpolGenerator(_qpol.qpol_default_object_from_void)
229    def default_iter(self): return _qpol.qpol_policy_t_default_iter(self)
230    @QpolGenerator(_qpol.qpol_iomemcon_from_void)
231    def iomemcon_iter(self): return _qpol.qpol_policy_t_iomemcon_iter(self)
232    def iomemcon_count(self): return _qpol.qpol_policy_t_iomemcon_count(self)
233    @QpolGenerator(_qpol.qpol_ioportcon_from_void)
234    def ioportcon_iter(self): return _qpol.qpol_policy_t_ioportcon_iter(self)
235    def ioportcon_count(self): return _qpol.qpol_policy_t_ioportcon_count(self)
236    @QpolGenerator(_qpol.qpol_pcidevicecon_from_void)
237    def pcidevicecon_iter(self): return _qpol.qpol_policy_t_pcidevicecon_iter(self)
238    def pcidevicecon_count(self): return _qpol.qpol_policy_t_pcidevicecon_count(self)
239    @QpolGenerator(_qpol.qpol_pirqcon_from_void)
240    def pirqcon_iter(self): return _qpol.qpol_policy_t_pirqcon_iter(self)
241    def pirqcon_count(self): return _qpol.qpol_policy_t_pirqcon_count(self)
242    @QpolGenerator(_qpol.qpol_devicetreecon_from_void)
243    def devicetreecon_iter(self): return _qpol.qpol_policy_t_devicetreecon_iter(self)
244    def devicetreecon_count(self): return _qpol.qpol_policy_t_devicetreecon_count(self)
245qpol_policy_t_swigregister = _qpol.qpol_policy_t_swigregister
246qpol_policy_t_swigregister(qpol_policy_t)
247
248QPOL_CAP_ATTRIB_NAMES = _qpol.QPOL_CAP_ATTRIB_NAMES
249QPOL_CAP_SYN_RULES = _qpol.QPOL_CAP_SYN_RULES
250QPOL_CAP_LINE_NUMBERS = _qpol.QPOL_CAP_LINE_NUMBERS
251QPOL_CAP_CONDITIONALS = _qpol.QPOL_CAP_CONDITIONALS
252QPOL_CAP_MLS = _qpol.QPOL_CAP_MLS
253QPOL_CAP_MODULES = _qpol.QPOL_CAP_MODULES
254QPOL_CAP_RULES_LOADED = _qpol.QPOL_CAP_RULES_LOADED
255QPOL_CAP_SOURCE = _qpol.QPOL_CAP_SOURCE
256QPOL_CAP_NEVERALLOW = _qpol.QPOL_CAP_NEVERALLOW
257QPOL_CAP_POLCAPS = _qpol.QPOL_CAP_POLCAPS
258QPOL_CAP_BOUNDS = _qpol.QPOL_CAP_BOUNDS
259QPOL_CAP_DEFAULT_OBJECTS = _qpol.QPOL_CAP_DEFAULT_OBJECTS
260QPOL_CAP_DEFAULT_TYPE = _qpol.QPOL_CAP_DEFAULT_TYPE
261QPOL_CAP_PERMISSIVE = _qpol.QPOL_CAP_PERMISSIVE
262QPOL_CAP_FILENAME_TRANS = _qpol.QPOL_CAP_FILENAME_TRANS
263QPOL_CAP_ROLETRANS = _qpol.QPOL_CAP_ROLETRANS
264QPOL_CAP_XPERM_IOCTL = _qpol.QPOL_CAP_XPERM_IOCTL
265class qpol_iterator_t(_object):
266    __swig_setmethods__ = {}
267    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_iterator_t, name, value)
268    __swig_getmethods__ = {}
269    __getattr__ = lambda self, name: _swig_getattr(self, qpol_iterator_t, name)
270    __repr__ = _swig_repr
271    def __init__(self):
272        this = _qpol.new_qpol_iterator_t()
273        try: self.this.append(this)
274        except: self.this = this
275    __swig_destroy__ = _qpol.delete_qpol_iterator_t
276    __del__ = lambda self : None;
277    def item(self): return _qpol.qpol_iterator_t_item(self)
278    def next_(self): return _qpol.qpol_iterator_t_next_(self)
279    def isend(self): return _qpol.qpol_iterator_t_isend(self)
280    def size(self): return _qpol.qpol_iterator_t_size(self)
281qpol_iterator_t_swigregister = _qpol.qpol_iterator_t_swigregister
282qpol_iterator_t_swigregister(qpol_iterator_t)
283
284class qpol_type_t(_object):
285    __swig_setmethods__ = {}
286    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_type_t, name, value)
287    __swig_getmethods__ = {}
288    __getattr__ = lambda self, name: _swig_getattr(self, qpol_type_t, name)
289    __repr__ = _swig_repr
290    def __init__(self, *args):
291        this = _qpol.new_qpol_type_t(*args)
292        try: self.this.append(this)
293        except: self.this = this
294    __swig_destroy__ = _qpol.delete_qpol_type_t
295    __del__ = lambda self : None;
296    def name(self, *args): return _qpol.qpol_type_t_name(self, *args)
297    def value(self, *args): return _qpol.qpol_type_t_value(self, *args)
298    def isalias(self, *args): return _qpol.qpol_type_t_isalias(self, *args)
299    def isattr(self, *args): return _qpol.qpol_type_t_isattr(self, *args)
300    def ispermissive(self, *args): return _qpol.qpol_type_t_ispermissive(self, *args)
301    @QpolGenerator(_qpol.qpol_type_from_void)
302    def type_iter(self, *args): return _qpol.qpol_type_t_type_iter(self, *args)
303    @QpolGenerator(_qpol.qpol_type_from_void)
304    def attr_iter(self, *args): return _qpol.qpol_type_t_attr_iter(self, *args)
305    @QpolGenerator(_qpol.to_str)
306    def alias_iter(self, *args): return _qpol.qpol_type_t_alias_iter(self, *args)
307qpol_type_t_swigregister = _qpol.qpol_type_t_swigregister
308qpol_type_t_swigregister(qpol_type_t)
309
310
311def qpol_type_from_void(*args):
312  return _qpol.qpol_type_from_void(*args)
313qpol_type_from_void = _qpol.qpol_type_from_void
314class qpol_role_t(_object):
315    __swig_setmethods__ = {}
316    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_role_t, name, value)
317    __swig_getmethods__ = {}
318    __getattr__ = lambda self, name: _swig_getattr(self, qpol_role_t, name)
319    __repr__ = _swig_repr
320    def __init__(self, *args):
321        this = _qpol.new_qpol_role_t(*args)
322        try: self.this.append(this)
323        except: self.this = this
324    __swig_destroy__ = _qpol.delete_qpol_role_t
325    __del__ = lambda self : None;
326    def value(self, *args): return _qpol.qpol_role_t_value(self, *args)
327    def name(self, *args): return _qpol.qpol_role_t_name(self, *args)
328    @QpolGenerator(_qpol.qpol_type_from_void)
329    def type_iter(self, *args): return _qpol.qpol_role_t_type_iter(self, *args)
330    def dominate_iter(self, *args): return _qpol.qpol_role_t_dominate_iter(self, *args)
331qpol_role_t_swigregister = _qpol.qpol_role_t_swigregister
332qpol_role_t_swigregister(qpol_role_t)
333
334
335def qpol_role_from_void(*args):
336  return _qpol.qpol_role_from_void(*args)
337qpol_role_from_void = _qpol.qpol_role_from_void
338class qpol_level_t(_object):
339    __swig_setmethods__ = {}
340    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_level_t, name, value)
341    __swig_getmethods__ = {}
342    __getattr__ = lambda self, name: _swig_getattr(self, qpol_level_t, name)
343    __repr__ = _swig_repr
344    def __init__(self, *args):
345        this = _qpol.new_qpol_level_t(*args)
346        try: self.this.append(this)
347        except: self.this = this
348    __swig_destroy__ = _qpol.delete_qpol_level_t
349    __del__ = lambda self : None;
350    def isalias(self, *args): return _qpol.qpol_level_t_isalias(self, *args)
351    def value(self, *args): return _qpol.qpol_level_t_value(self, *args)
352    def name(self, *args): return _qpol.qpol_level_t_name(self, *args)
353    @QpolGenerator(_qpol.qpol_cat_from_void)
354    def cat_iter(self, *args): return _qpol.qpol_level_t_cat_iter(self, *args)
355    @QpolGenerator(_qpol.to_str)
356    def alias_iter(self, *args): return _qpol.qpol_level_t_alias_iter(self, *args)
357qpol_level_t_swigregister = _qpol.qpol_level_t_swigregister
358qpol_level_t_swigregister(qpol_level_t)
359
360
361def qpol_level_from_void(*args):
362  return _qpol.qpol_level_from_void(*args)
363qpol_level_from_void = _qpol.qpol_level_from_void
364class qpol_cat_t(_object):
365    __swig_setmethods__ = {}
366    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_cat_t, name, value)
367    __swig_getmethods__ = {}
368    __getattr__ = lambda self, name: _swig_getattr(self, qpol_cat_t, name)
369    __repr__ = _swig_repr
370    def __init__(self, *args):
371        this = _qpol.new_qpol_cat_t(*args)
372        try: self.this.append(this)
373        except: self.this = this
374    __swig_destroy__ = _qpol.delete_qpol_cat_t
375    __del__ = lambda self : None;
376    def isalias(self, *args): return _qpol.qpol_cat_t_isalias(self, *args)
377    def value(self, *args): return _qpol.qpol_cat_t_value(self, *args)
378    def name(self, *args): return _qpol.qpol_cat_t_name(self, *args)
379    @QpolGenerator(_qpol.to_str)
380    def alias_iter(self, *args): return _qpol.qpol_cat_t_alias_iter(self, *args)
381qpol_cat_t_swigregister = _qpol.qpol_cat_t_swigregister
382qpol_cat_t_swigregister(qpol_cat_t)
383
384
385def qpol_cat_from_void(*args):
386  return _qpol.qpol_cat_from_void(*args)
387qpol_cat_from_void = _qpol.qpol_cat_from_void
388class qpol_mls_range_t(_object):
389    __swig_setmethods__ = {}
390    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_mls_range_t, name, value)
391    __swig_getmethods__ = {}
392    __getattr__ = lambda self, name: _swig_getattr(self, qpol_mls_range_t, name)
393    __repr__ = _swig_repr
394    def __init__(self, *args):
395        this = _qpol.new_qpol_mls_range_t(*args)
396        try: self.this.append(this)
397        except: self.this = this
398    __swig_destroy__ = _qpol.delete_qpol_mls_range_t
399    __del__ = lambda self : None;
400    def high_level(self, *args): return _qpol.qpol_mls_range_t_high_level(self, *args)
401    def low_level(self, *args): return _qpol.qpol_mls_range_t_low_level(self, *args)
402qpol_mls_range_t_swigregister = _qpol.qpol_mls_range_t_swigregister
403qpol_mls_range_t_swigregister(qpol_mls_range_t)
404
405
406def qpol_mls_range_from_void(*args):
407  return _qpol.qpol_mls_range_from_void(*args)
408qpol_mls_range_from_void = _qpol.qpol_mls_range_from_void
409class qpol_semantic_level_t(_object):
410    __swig_setmethods__ = {}
411    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_semantic_level_t, name, value)
412    __swig_getmethods__ = {}
413    __getattr__ = lambda self, name: _swig_getattr(self, qpol_semantic_level_t, name)
414    __repr__ = _swig_repr
415    def __init__(self, *args):
416        this = _qpol.new_qpol_semantic_level_t(*args)
417        try: self.this.append(this)
418        except: self.this = this
419    __swig_destroy__ = _qpol.delete_qpol_semantic_level_t
420    __del__ = lambda self : None;
421    def add_cats(self, *args): return _qpol.qpol_semantic_level_t_add_cats(self, *args)
422qpol_semantic_level_t_swigregister = _qpol.qpol_semantic_level_t_swigregister
423qpol_semantic_level_t_swigregister(qpol_semantic_level_t)
424
425class qpol_mls_level_t(_object):
426    __swig_setmethods__ = {}
427    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_mls_level_t, name, value)
428    __swig_getmethods__ = {}
429    __getattr__ = lambda self, name: _swig_getattr(self, qpol_mls_level_t, name)
430    __repr__ = _swig_repr
431    def __init__(self, *args):
432        this = _qpol.new_qpol_mls_level_t(*args)
433        try: self.this.append(this)
434        except: self.this = this
435    __swig_destroy__ = _qpol.delete_qpol_mls_level_t
436    __del__ = lambda self : None;
437    def sens_name(self, *args): return _qpol.qpol_mls_level_t_sens_name(self, *args)
438    @QpolGenerator(_qpol.qpol_cat_from_void)
439    def cat_iter(self, *args): return _qpol.qpol_mls_level_t_cat_iter(self, *args)
440qpol_mls_level_t_swigregister = _qpol.qpol_mls_level_t_swigregister
441qpol_mls_level_t_swigregister(qpol_mls_level_t)
442
443
444def qpol_mls_level_from_void(*args):
445  return _qpol.qpol_mls_level_from_void(*args)
446qpol_mls_level_from_void = _qpol.qpol_mls_level_from_void
447class qpol_user_t(_object):
448    __swig_setmethods__ = {}
449    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_user_t, name, value)
450    __swig_getmethods__ = {}
451    __getattr__ = lambda self, name: _swig_getattr(self, qpol_user_t, name)
452    __repr__ = _swig_repr
453    def __init__(self, *args):
454        this = _qpol.new_qpol_user_t(*args)
455        try: self.this.append(this)
456        except: self.this = this
457    __swig_destroy__ = _qpol.delete_qpol_user_t
458    __del__ = lambda self : None;
459    def value(self, *args): return _qpol.qpol_user_t_value(self, *args)
460    @QpolGenerator(_qpol.qpol_role_from_void)
461    def role_iter(self, *args): return _qpol.qpol_user_t_role_iter(self, *args)
462    def range(self, *args): return _qpol.qpol_user_t_range(self, *args)
463    def name(self, *args): return _qpol.qpol_user_t_name(self, *args)
464    def dfltlevel(self, *args): return _qpol.qpol_user_t_dfltlevel(self, *args)
465qpol_user_t_swigregister = _qpol.qpol_user_t_swigregister
466qpol_user_t_swigregister(qpol_user_t)
467
468
469def qpol_user_from_void(*args):
470  return _qpol.qpol_user_from_void(*args)
471qpol_user_from_void = _qpol.qpol_user_from_void
472class qpol_bool_t(_object):
473    __swig_setmethods__ = {}
474    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_bool_t, name, value)
475    __swig_getmethods__ = {}
476    __getattr__ = lambda self, name: _swig_getattr(self, qpol_bool_t, name)
477    __repr__ = _swig_repr
478    def __init__(self, *args):
479        this = _qpol.new_qpol_bool_t(*args)
480        try: self.this.append(this)
481        except: self.this = this
482    __swig_destroy__ = _qpol.delete_qpol_bool_t
483    __del__ = lambda self : None;
484    def value(self, *args): return _qpol.qpol_bool_t_value(self, *args)
485    def state(self, *args): return _qpol.qpol_bool_t_state(self, *args)
486    def name(self, *args): return _qpol.qpol_bool_t_name(self, *args)
487qpol_bool_t_swigregister = _qpol.qpol_bool_t_swigregister
488qpol_bool_t_swigregister(qpol_bool_t)
489
490
491def qpol_bool_from_void(*args):
492  return _qpol.qpol_bool_from_void(*args)
493qpol_bool_from_void = _qpol.qpol_bool_from_void
494class qpol_context_t(_object):
495    __swig_setmethods__ = {}
496    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_context_t, name, value)
497    __swig_getmethods__ = {}
498    __getattr__ = lambda self, name: _swig_getattr(self, qpol_context_t, name)
499    __repr__ = _swig_repr
500    def __init__(self):
501        this = _qpol.new_qpol_context_t()
502        try: self.this.append(this)
503        except: self.this = this
504    __swig_destroy__ = _qpol.delete_qpol_context_t
505    __del__ = lambda self : None;
506    def user(self, *args): return _qpol.qpol_context_t_user(self, *args)
507    def role(self, *args): return _qpol.qpol_context_t_role(self, *args)
508    def type_(self, *args): return _qpol.qpol_context_t_type_(self, *args)
509    def range(self, *args): return _qpol.qpol_context_t_range(self, *args)
510qpol_context_t_swigregister = _qpol.qpol_context_t_swigregister
511qpol_context_t_swigregister(qpol_context_t)
512
513
514def qpol_context_from_void(*args):
515  return _qpol.qpol_context_from_void(*args)
516qpol_context_from_void = _qpol.qpol_context_from_void
517class qpol_class_t(_object):
518    __swig_setmethods__ = {}
519    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_class_t, name, value)
520    __swig_getmethods__ = {}
521    __getattr__ = lambda self, name: _swig_getattr(self, qpol_class_t, name)
522    __repr__ = _swig_repr
523    def __init__(self, *args):
524        this = _qpol.new_qpol_class_t(*args)
525        try: self.this.append(this)
526        except: self.this = this
527    __swig_destroy__ = _qpol.delete_qpol_class_t
528    __del__ = lambda self : None;
529    def value(self, *args): return _qpol.qpol_class_t_value(self, *args)
530    def common(self, *args): return _qpol.qpol_class_t_common(self, *args)
531    @QpolGenerator(_qpol.to_str)
532    def perm_iter(self, *args): return _qpol.qpol_class_t_perm_iter(self, *args)
533    @QpolGenerator(_qpol.qpol_constraint_from_void)
534    def constraint_iter(self, *args): return _qpol.qpol_class_t_constraint_iter(self, *args)
535    @QpolGenerator(_qpol.qpol_validatetrans_from_void)
536    def validatetrans_iter(self, *args): return _qpol.qpol_class_t_validatetrans_iter(self, *args)
537    def name(self, *args): return _qpol.qpol_class_t_name(self, *args)
538qpol_class_t_swigregister = _qpol.qpol_class_t_swigregister
539qpol_class_t_swigregister(qpol_class_t)
540
541
542def qpol_class_from_void(*args):
543  return _qpol.qpol_class_from_void(*args)
544qpol_class_from_void = _qpol.qpol_class_from_void
545class qpol_common_t(_object):
546    __swig_setmethods__ = {}
547    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_common_t, name, value)
548    __swig_getmethods__ = {}
549    __getattr__ = lambda self, name: _swig_getattr(self, qpol_common_t, name)
550    __repr__ = _swig_repr
551    def __init__(self, *args):
552        this = _qpol.new_qpol_common_t(*args)
553        try: self.this.append(this)
554        except: self.this = this
555    __swig_destroy__ = _qpol.delete_qpol_common_t
556    __del__ = lambda self : None;
557    def value(self, *args): return _qpol.qpol_common_t_value(self, *args)
558    @QpolGenerator(_qpol.to_str)
559    def perm_iter(self, *args): return _qpol.qpol_common_t_perm_iter(self, *args)
560    def name(self, *args): return _qpol.qpol_common_t_name(self, *args)
561qpol_common_t_swigregister = _qpol.qpol_common_t_swigregister
562qpol_common_t_swigregister(qpol_common_t)
563
564
565def qpol_common_from_void(*args):
566  return _qpol.qpol_common_from_void(*args)
567qpol_common_from_void = _qpol.qpol_common_from_void
568QPOL_FS_USE_XATTR = _qpol.QPOL_FS_USE_XATTR
569QPOL_FS_USE_TRANS = _qpol.QPOL_FS_USE_TRANS
570QPOL_FS_USE_TASK = _qpol.QPOL_FS_USE_TASK
571QPOL_FS_USE_GENFS = _qpol.QPOL_FS_USE_GENFS
572QPOL_FS_USE_NONE = _qpol.QPOL_FS_USE_NONE
573QPOL_FS_USE_PSID = _qpol.QPOL_FS_USE_PSID
574class qpol_fs_use_t(_object):
575    __swig_setmethods__ = {}
576    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_fs_use_t, name, value)
577    __swig_getmethods__ = {}
578    __getattr__ = lambda self, name: _swig_getattr(self, qpol_fs_use_t, name)
579    __repr__ = _swig_repr
580    def __init__(self, *args):
581        this = _qpol.new_qpol_fs_use_t(*args)
582        try: self.this.append(this)
583        except: self.this = this
584    __swig_destroy__ = _qpol.delete_qpol_fs_use_t
585    __del__ = lambda self : None;
586    def name(self, *args): return _qpol.qpol_fs_use_t_name(self, *args)
587    def behavior(self, *args): return _qpol.qpol_fs_use_t_behavior(self, *args)
588    def context(self, *args): return _qpol.qpol_fs_use_t_context(self, *args)
589qpol_fs_use_t_swigregister = _qpol.qpol_fs_use_t_swigregister
590qpol_fs_use_t_swigregister(qpol_fs_use_t)
591
592
593def qpol_fs_use_from_void(*args):
594  return _qpol.qpol_fs_use_from_void(*args)
595qpol_fs_use_from_void = _qpol.qpol_fs_use_from_void
596QPOL_CLASS_ALL = _qpol.QPOL_CLASS_ALL
597QPOL_CLASS_BLK_FILE = _qpol.QPOL_CLASS_BLK_FILE
598QPOL_CLASS_CHR_FILE = _qpol.QPOL_CLASS_CHR_FILE
599QPOL_CLASS_DIR = _qpol.QPOL_CLASS_DIR
600QPOL_CLASS_FIFO_FILE = _qpol.QPOL_CLASS_FIFO_FILE
601QPOL_CLASS_FILE = _qpol.QPOL_CLASS_FILE
602QPOL_CLASS_LNK_FILE = _qpol.QPOL_CLASS_LNK_FILE
603QPOL_CLASS_SOCK_FILE = _qpol.QPOL_CLASS_SOCK_FILE
604class qpol_genfscon_t(_object):
605    __swig_setmethods__ = {}
606    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_genfscon_t, name, value)
607    __swig_getmethods__ = {}
608    __getattr__ = lambda self, name: _swig_getattr(self, qpol_genfscon_t, name)
609    __repr__ = _swig_repr
610    def __init__(self, *args):
611        this = _qpol.new_qpol_genfscon_t(*args)
612        try: self.this.append(this)
613        except: self.this = this
614    __swig_destroy__ = _qpol.delete_qpol_genfscon_t
615    __del__ = lambda self : None;
616    def name(self, *args): return _qpol.qpol_genfscon_t_name(self, *args)
617    def path(self, *args): return _qpol.qpol_genfscon_t_path(self, *args)
618    def object_class(self, *args): return _qpol.qpol_genfscon_t_object_class(self, *args)
619    def context(self, *args): return _qpol.qpol_genfscon_t_context(self, *args)
620qpol_genfscon_t_swigregister = _qpol.qpol_genfscon_t_swigregister
621qpol_genfscon_t_swigregister(qpol_genfscon_t)
622
623
624def qpol_genfscon_from_void(*args):
625  return _qpol.qpol_genfscon_from_void(*args)
626qpol_genfscon_from_void = _qpol.qpol_genfscon_from_void
627class qpol_isid_t(_object):
628    __swig_setmethods__ = {}
629    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_isid_t, name, value)
630    __swig_getmethods__ = {}
631    __getattr__ = lambda self, name: _swig_getattr(self, qpol_isid_t, name)
632    __repr__ = _swig_repr
633    def __init__(self, *args):
634        this = _qpol.new_qpol_isid_t(*args)
635        try: self.this.append(this)
636        except: self.this = this
637    __swig_destroy__ = _qpol.delete_qpol_isid_t
638    __del__ = lambda self : None;
639    def name(self, *args): return _qpol.qpol_isid_t_name(self, *args)
640    def context(self, *args): return _qpol.qpol_isid_t_context(self, *args)
641qpol_isid_t_swigregister = _qpol.qpol_isid_t_swigregister
642qpol_isid_t_swigregister(qpol_isid_t)
643
644
645def qpol_isid_from_void(*args):
646  return _qpol.qpol_isid_from_void(*args)
647qpol_isid_from_void = _qpol.qpol_isid_from_void
648class qpol_netifcon_t(_object):
649    __swig_setmethods__ = {}
650    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_netifcon_t, name, value)
651    __swig_getmethods__ = {}
652    __getattr__ = lambda self, name: _swig_getattr(self, qpol_netifcon_t, name)
653    __repr__ = _swig_repr
654    def __init__(self, *args):
655        this = _qpol.new_qpol_netifcon_t(*args)
656        try: self.this.append(this)
657        except: self.this = this
658    __swig_destroy__ = _qpol.delete_qpol_netifcon_t
659    __del__ = lambda self : None;
660    def name(self, *args): return _qpol.qpol_netifcon_t_name(self, *args)
661    def msg_con(self, *args): return _qpol.qpol_netifcon_t_msg_con(self, *args)
662    def if_con(self, *args): return _qpol.qpol_netifcon_t_if_con(self, *args)
663qpol_netifcon_t_swigregister = _qpol.qpol_netifcon_t_swigregister
664qpol_netifcon_t_swigregister(qpol_netifcon_t)
665
666
667def qpol_netifcon_from_void(*args):
668  return _qpol.qpol_netifcon_from_void(*args)
669qpol_netifcon_from_void = _qpol.qpol_netifcon_from_void
670QPOL_IPV4 = _qpol.QPOL_IPV4
671QPOL_IPV6 = _qpol.QPOL_IPV6
672class qpol_nodecon_t(_object):
673    __swig_setmethods__ = {}
674    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_nodecon_t, name, value)
675    __swig_getmethods__ = {}
676    __getattr__ = lambda self, name: _swig_getattr(self, qpol_nodecon_t, name)
677    __repr__ = _swig_repr
678    def __init__(self, *args):
679        this = _qpol.new_qpol_nodecon_t(*args)
680        try: self.this.append(this)
681        except: self.this = this
682    __swig_destroy__ = _qpol.delete_qpol_nodecon_t
683    __del__ = lambda self : None;
684    def addr(self, *args): return _qpol.qpol_nodecon_t_addr(self, *args)
685    def mask(self, *args): return _qpol.qpol_nodecon_t_mask(self, *args)
686    def protocol(self, *args): return _qpol.qpol_nodecon_t_protocol(self, *args)
687    def context(self, *args): return _qpol.qpol_nodecon_t_context(self, *args)
688qpol_nodecon_t_swigregister = _qpol.qpol_nodecon_t_swigregister
689qpol_nodecon_t_swigregister(qpol_nodecon_t)
690
691
692def qpol_nodecon_from_void(*args):
693  return _qpol.qpol_nodecon_from_void(*args)
694qpol_nodecon_from_void = _qpol.qpol_nodecon_from_void
695IPPROTO_TCP = _qpol.IPPROTO_TCP
696IPPROTO_UDP = _qpol.IPPROTO_UDP
697class qpol_portcon_t(_object):
698    __swig_setmethods__ = {}
699    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_portcon_t, name, value)
700    __swig_getmethods__ = {}
701    __getattr__ = lambda self, name: _swig_getattr(self, qpol_portcon_t, name)
702    __repr__ = _swig_repr
703    def __init__(self, *args):
704        this = _qpol.new_qpol_portcon_t(*args)
705        try: self.this.append(this)
706        except: self.this = this
707    __swig_destroy__ = _qpol.delete_qpol_portcon_t
708    __del__ = lambda self : None;
709    def low_port(self, *args): return _qpol.qpol_portcon_t_low_port(self, *args)
710    def high_port(self, *args): return _qpol.qpol_portcon_t_high_port(self, *args)
711    def protocol(self, *args): return _qpol.qpol_portcon_t_protocol(self, *args)
712    def context(self, *args): return _qpol.qpol_portcon_t_context(self, *args)
713qpol_portcon_t_swigregister = _qpol.qpol_portcon_t_swigregister
714qpol_portcon_t_swigregister(qpol_portcon_t)
715
716
717def qpol_portcon_from_void(*args):
718  return _qpol.qpol_portcon_from_void(*args)
719qpol_portcon_from_void = _qpol.qpol_portcon_from_void
720class qpol_constraint_t(_object):
721    __swig_setmethods__ = {}
722    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_constraint_t, name, value)
723    __swig_getmethods__ = {}
724    __getattr__ = lambda self, name: _swig_getattr(self, qpol_constraint_t, name)
725    __repr__ = _swig_repr
726    def __init__(self):
727        this = _qpol.new_qpol_constraint_t()
728        try: self.this.append(this)
729        except: self.this = this
730    __swig_destroy__ = _qpol.delete_qpol_constraint_t
731    __del__ = lambda self : None;
732    def object_class(self, *args): return _qpol.qpol_constraint_t_object_class(self, *args)
733    @QpolGenerator(_qpol.to_str)
734    def perm_iter(self, *args): return _qpol.qpol_constraint_t_perm_iter(self, *args)
735    @QpolGenerator(_qpol.qpol_constraint_expr_node_from_void)
736    def expr_iter(self, *args): return _qpol.qpol_constraint_t_expr_iter(self, *args)
737qpol_constraint_t_swigregister = _qpol.qpol_constraint_t_swigregister
738qpol_constraint_t_swigregister(qpol_constraint_t)
739
740
741def qpol_constraint_from_void(*args):
742  return _qpol.qpol_constraint_from_void(*args)
743qpol_constraint_from_void = _qpol.qpol_constraint_from_void
744class qpol_validatetrans_t(_object):
745    __swig_setmethods__ = {}
746    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_validatetrans_t, name, value)
747    __swig_getmethods__ = {}
748    __getattr__ = lambda self, name: _swig_getattr(self, qpol_validatetrans_t, name)
749    __repr__ = _swig_repr
750    def __init__(self):
751        this = _qpol.new_qpol_validatetrans_t()
752        try: self.this.append(this)
753        except: self.this = this
754    __swig_destroy__ = _qpol.delete_qpol_validatetrans_t
755    __del__ = lambda self : None;
756    def object_class(self, *args): return _qpol.qpol_validatetrans_t_object_class(self, *args)
757    @QpolGenerator(_qpol.qpol_constraint_expr_node_from_void)
758    def expr_iter(self, *args): return _qpol.qpol_validatetrans_t_expr_iter(self, *args)
759qpol_validatetrans_t_swigregister = _qpol.qpol_validatetrans_t_swigregister
760qpol_validatetrans_t_swigregister(qpol_validatetrans_t)
761
762
763def qpol_validatetrans_from_void(*args):
764  return _qpol.qpol_validatetrans_from_void(*args)
765qpol_validatetrans_from_void = _qpol.qpol_validatetrans_from_void
766QPOL_CEXPR_TYPE_NOT = _qpol.QPOL_CEXPR_TYPE_NOT
767QPOL_CEXPR_TYPE_AND = _qpol.QPOL_CEXPR_TYPE_AND
768QPOL_CEXPR_TYPE_OR = _qpol.QPOL_CEXPR_TYPE_OR
769QPOL_CEXPR_TYPE_ATTR = _qpol.QPOL_CEXPR_TYPE_ATTR
770QPOL_CEXPR_TYPE_NAMES = _qpol.QPOL_CEXPR_TYPE_NAMES
771QPOL_CEXPR_SYM_USER = _qpol.QPOL_CEXPR_SYM_USER
772QPOL_CEXPR_SYM_ROLE = _qpol.QPOL_CEXPR_SYM_ROLE
773QPOL_CEXPR_SYM_TYPE = _qpol.QPOL_CEXPR_SYM_TYPE
774QPOL_CEXPR_SYM_TARGET = _qpol.QPOL_CEXPR_SYM_TARGET
775QPOL_CEXPR_SYM_XTARGET = _qpol.QPOL_CEXPR_SYM_XTARGET
776QPOL_CEXPR_SYM_L1L2 = _qpol.QPOL_CEXPR_SYM_L1L2
777QPOL_CEXPR_SYM_L1H2 = _qpol.QPOL_CEXPR_SYM_L1H2
778QPOL_CEXPR_SYM_H1L2 = _qpol.QPOL_CEXPR_SYM_H1L2
779QPOL_CEXPR_SYM_H1H2 = _qpol.QPOL_CEXPR_SYM_H1H2
780QPOL_CEXPR_SYM_L1H1 = _qpol.QPOL_CEXPR_SYM_L1H1
781QPOL_CEXPR_SYM_L2H2 = _qpol.QPOL_CEXPR_SYM_L2H2
782QPOL_CEXPR_OP_EQ = _qpol.QPOL_CEXPR_OP_EQ
783QPOL_CEXPR_OP_NEQ = _qpol.QPOL_CEXPR_OP_NEQ
784QPOL_CEXPR_OP_DOM = _qpol.QPOL_CEXPR_OP_DOM
785QPOL_CEXPR_OP_DOMBY = _qpol.QPOL_CEXPR_OP_DOMBY
786QPOL_CEXPR_OP_INCOMP = _qpol.QPOL_CEXPR_OP_INCOMP
787class qpol_constraint_expr_node_t(_object):
788    __swig_setmethods__ = {}
789    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_constraint_expr_node_t, name, value)
790    __swig_getmethods__ = {}
791    __getattr__ = lambda self, name: _swig_getattr(self, qpol_constraint_expr_node_t, name)
792    __repr__ = _swig_repr
793    def __init__(self):
794        this = _qpol.new_qpol_constraint_expr_node_t()
795        try: self.this.append(this)
796        except: self.this = this
797    __swig_destroy__ = _qpol.delete_qpol_constraint_expr_node_t
798    __del__ = lambda self : None;
799    def expr_type(self, *args): return _qpol.qpol_constraint_expr_node_t_expr_type(self, *args)
800    def sym_type(self, *args): return _qpol.qpol_constraint_expr_node_t_sym_type(self, *args)
801    def op(self, *args): return _qpol.qpol_constraint_expr_node_t_op(self, *args)
802    @QpolGenerator(_qpol.to_str)
803    def names_iter(self, *args): return _qpol.qpol_constraint_expr_node_t_names_iter(self, *args)
804qpol_constraint_expr_node_t_swigregister = _qpol.qpol_constraint_expr_node_t_swigregister
805qpol_constraint_expr_node_t_swigregister(qpol_constraint_expr_node_t)
806
807
808def qpol_constraint_expr_node_from_void(*args):
809  return _qpol.qpol_constraint_expr_node_from_void(*args)
810qpol_constraint_expr_node_from_void = _qpol.qpol_constraint_expr_node_from_void
811class qpol_role_allow_t(_object):
812    __swig_setmethods__ = {}
813    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_role_allow_t, name, value)
814    __swig_getmethods__ = {}
815    __getattr__ = lambda self, name: _swig_getattr(self, qpol_role_allow_t, name)
816    __repr__ = _swig_repr
817    def __init__(self):
818        this = _qpol.new_qpol_role_allow_t()
819        try: self.this.append(this)
820        except: self.this = this
821    __swig_destroy__ = _qpol.delete_qpol_role_allow_t
822    __del__ = lambda self : None;
823    def rule_type(self,policy):
824        return "allow"
825
826    def source_role(self, *args): return _qpol.qpol_role_allow_t_source_role(self, *args)
827    def target_role(self, *args): return _qpol.qpol_role_allow_t_target_role(self, *args)
828qpol_role_allow_t_swigregister = _qpol.qpol_role_allow_t_swigregister
829qpol_role_allow_t_swigregister(qpol_role_allow_t)
830
831
832def qpol_role_allow_from_void(*args):
833  return _qpol.qpol_role_allow_from_void(*args)
834qpol_role_allow_from_void = _qpol.qpol_role_allow_from_void
835class qpol_role_trans_t(_object):
836    __swig_setmethods__ = {}
837    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_role_trans_t, name, value)
838    __swig_getmethods__ = {}
839    __getattr__ = lambda self, name: _swig_getattr(self, qpol_role_trans_t, name)
840    __repr__ = _swig_repr
841    def __init__(self):
842        this = _qpol.new_qpol_role_trans_t()
843        try: self.this.append(this)
844        except: self.this = this
845    __swig_destroy__ = _qpol.delete_qpol_role_trans_t
846    __del__ = lambda self : None;
847    def rule_type(self,policy):
848        return "role_transition"
849
850    def source_role(self, *args): return _qpol.qpol_role_trans_t_source_role(self, *args)
851    def target_type(self, *args): return _qpol.qpol_role_trans_t_target_type(self, *args)
852    def object_class(self, *args): return _qpol.qpol_role_trans_t_object_class(self, *args)
853    def default_role(self, *args): return _qpol.qpol_role_trans_t_default_role(self, *args)
854qpol_role_trans_t_swigregister = _qpol.qpol_role_trans_t_swigregister
855qpol_role_trans_t_swigregister(qpol_role_trans_t)
856
857
858def qpol_role_trans_from_void(*args):
859  return _qpol.qpol_role_trans_from_void(*args)
860qpol_role_trans_from_void = _qpol.qpol_role_trans_from_void
861class qpol_range_trans_t(_object):
862    __swig_setmethods__ = {}
863    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_range_trans_t, name, value)
864    __swig_getmethods__ = {}
865    __getattr__ = lambda self, name: _swig_getattr(self, qpol_range_trans_t, name)
866    __repr__ = _swig_repr
867    def __init__(self):
868        this = _qpol.new_qpol_range_trans_t()
869        try: self.this.append(this)
870        except: self.this = this
871    __swig_destroy__ = _qpol.delete_qpol_range_trans_t
872    __del__ = lambda self : None;
873    def rule_type(self,policy):
874        return "range_transition"
875
876    def source_type(self, *args): return _qpol.qpol_range_trans_t_source_type(self, *args)
877    def target_type(self, *args): return _qpol.qpol_range_trans_t_target_type(self, *args)
878    def object_class(self, *args): return _qpol.qpol_range_trans_t_object_class(self, *args)
879    def range(self, *args): return _qpol.qpol_range_trans_t_range(self, *args)
880qpol_range_trans_t_swigregister = _qpol.qpol_range_trans_t_swigregister
881qpol_range_trans_t_swigregister(qpol_range_trans_t)
882
883
884def qpol_range_trans_from_void(*args):
885  return _qpol.qpol_range_trans_from_void(*args)
886qpol_range_trans_from_void = _qpol.qpol_range_trans_from_void
887QPOL_RULE_ALLOW = _qpol.QPOL_RULE_ALLOW
888QPOL_RULE_NEVERALLOW = _qpol.QPOL_RULE_NEVERALLOW
889QPOL_RULE_AUDITALLOW = _qpol.QPOL_RULE_AUDITALLOW
890QPOL_RULE_DONTAUDIT = _qpol.QPOL_RULE_DONTAUDIT
891QPOL_RULE_XPERMS_ALLOW = _qpol.QPOL_RULE_XPERMS_ALLOW
892QPOL_RULE_XPERMS_AUDITALLOW = _qpol.QPOL_RULE_XPERMS_AUDITALLOW
893QPOL_RULE_XPERMS_DONTAUDIT = _qpol.QPOL_RULE_XPERMS_DONTAUDIT
894QPOL_RULE_XPERMS_NEVERALLOW = _qpol.QPOL_RULE_XPERMS_NEVERALLOW
895class qpol_avrule_t(_object):
896    __swig_setmethods__ = {}
897    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_avrule_t, name, value)
898    __swig_getmethods__ = {}
899    __getattr__ = lambda self, name: _swig_getattr(self, qpol_avrule_t, name)
900    __repr__ = _swig_repr
901    def __init__(self):
902        this = _qpol.new_qpol_avrule_t()
903        try: self.this.append(this)
904        except: self.this = this
905    __swig_destroy__ = _qpol.delete_qpol_avrule_t
906    __del__ = lambda self : None;
907    def rule_type(self, *args): return _qpol.qpol_avrule_t_rule_type(self, *args)
908    def source_type(self, *args): return _qpol.qpol_avrule_t_source_type(self, *args)
909    def target_type(self, *args): return _qpol.qpol_avrule_t_target_type(self, *args)
910    def object_class(self, *args): return _qpol.qpol_avrule_t_object_class(self, *args)
911    @QpolGenerator(_qpol.to_str)
912    def perm_iter(self, *args): return _qpol.qpol_avrule_t_perm_iter(self, *args)
913    @QpolGenerator(_qpol.to_int_with_free)
914    def xperm_iter(self, *args): return _qpol.qpol_avrule_t_xperm_iter(self, *args)
915    def is_extended(self, *args): return _qpol.qpol_avrule_t_is_extended(self, *args)
916    def xperm_type(self, *args): return _qpol.qpol_avrule_t_xperm_type(self, *args)
917    def cond(self, *args): return _qpol.qpol_avrule_t_cond(self, *args)
918    def is_enabled(self, *args): return _qpol.qpol_avrule_t_is_enabled(self, *args)
919    def which_list(self, *args): return _qpol.qpol_avrule_t_which_list(self, *args)
920    def syn_avrule_iter(self, *args): return _qpol.qpol_avrule_t_syn_avrule_iter(self, *args)
921qpol_avrule_t_swigregister = _qpol.qpol_avrule_t_swigregister
922qpol_avrule_t_swigregister(qpol_avrule_t)
923
924
925def qpol_avrule_from_void(*args):
926  return _qpol.qpol_avrule_from_void(*args)
927qpol_avrule_from_void = _qpol.qpol_avrule_from_void
928QPOL_RULE_TYPE_TRANS = _qpol.QPOL_RULE_TYPE_TRANS
929QPOL_RULE_TYPE_CHANGE = _qpol.QPOL_RULE_TYPE_CHANGE
930QPOL_RULE_TYPE_MEMBER = _qpol.QPOL_RULE_TYPE_MEMBER
931class qpol_terule_t(_object):
932    __swig_setmethods__ = {}
933    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_terule_t, name, value)
934    __swig_getmethods__ = {}
935    __getattr__ = lambda self, name: _swig_getattr(self, qpol_terule_t, name)
936    __repr__ = _swig_repr
937    def __init__(self):
938        this = _qpol.new_qpol_terule_t()
939        try: self.this.append(this)
940        except: self.this = this
941    __swig_destroy__ = _qpol.delete_qpol_terule_t
942    __del__ = lambda self : None;
943    def rule_type(self, *args): return _qpol.qpol_terule_t_rule_type(self, *args)
944    def source_type(self, *args): return _qpol.qpol_terule_t_source_type(self, *args)
945    def target_type(self, *args): return _qpol.qpol_terule_t_target_type(self, *args)
946    def object_class(self, *args): return _qpol.qpol_terule_t_object_class(self, *args)
947    def default_type(self, *args): return _qpol.qpol_terule_t_default_type(self, *args)
948    def cond(self, *args): return _qpol.qpol_terule_t_cond(self, *args)
949    def is_enabled(self, *args): return _qpol.qpol_terule_t_is_enabled(self, *args)
950    def which_list(self, *args): return _qpol.qpol_terule_t_which_list(self, *args)
951    def syn_terule_iter(self, *args): return _qpol.qpol_terule_t_syn_terule_iter(self, *args)
952qpol_terule_t_swigregister = _qpol.qpol_terule_t_swigregister
953qpol_terule_t_swigregister(qpol_terule_t)
954
955
956def qpol_terule_from_void(*args):
957  return _qpol.qpol_terule_from_void(*args)
958qpol_terule_from_void = _qpol.qpol_terule_from_void
959class qpol_cond_t(_object):
960    __swig_setmethods__ = {}
961    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_cond_t, name, value)
962    __swig_getmethods__ = {}
963    __getattr__ = lambda self, name: _swig_getattr(self, qpol_cond_t, name)
964    __repr__ = _swig_repr
965    def __init__(self):
966        this = _qpol.new_qpol_cond_t()
967        try: self.this.append(this)
968        except: self.this = this
969    __swig_destroy__ = _qpol.delete_qpol_cond_t
970    __del__ = lambda self : None;
971    @QpolGenerator(_qpol.qpol_cond_expr_node_from_void)
972    def expr_node_iter(self, *args): return _qpol.qpol_cond_t_expr_node_iter(self, *args)
973    def av_true_iter(self, *args): return _qpol.qpol_cond_t_av_true_iter(self, *args)
974    def av_false_iter(self, *args): return _qpol.qpol_cond_t_av_false_iter(self, *args)
975    def te_true_iter(self, *args): return _qpol.qpol_cond_t_te_true_iter(self, *args)
976    def te_false_iter(self, *args): return _qpol.qpol_cond_t_te_false_iter(self, *args)
977    def evaluate(self, *args): return _qpol.qpol_cond_t_evaluate(self, *args)
978qpol_cond_t_swigregister = _qpol.qpol_cond_t_swigregister
979qpol_cond_t_swigregister(qpol_cond_t)
980
981
982def qpol_cond_from_void(*args):
983  return _qpol.qpol_cond_from_void(*args)
984qpol_cond_from_void = _qpol.qpol_cond_from_void
985QPOL_COND_EXPR_BOOL = _qpol.QPOL_COND_EXPR_BOOL
986QPOL_COND_EXPR_NOT = _qpol.QPOL_COND_EXPR_NOT
987QPOL_COND_EXPR_OR = _qpol.QPOL_COND_EXPR_OR
988QPOL_COND_EXPR_AND = _qpol.QPOL_COND_EXPR_AND
989QPOL_COND_EXPR_XOR = _qpol.QPOL_COND_EXPR_XOR
990QPOL_COND_EXPR_EQ = _qpol.QPOL_COND_EXPR_EQ
991QPOL_COND_EXPR_NEQ = _qpol.QPOL_COND_EXPR_NEQ
992class qpol_cond_expr_node_t(_object):
993    __swig_setmethods__ = {}
994    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_cond_expr_node_t, name, value)
995    __swig_getmethods__ = {}
996    __getattr__ = lambda self, name: _swig_getattr(self, qpol_cond_expr_node_t, name)
997    __repr__ = _swig_repr
998    def __init__(self):
999        this = _qpol.new_qpol_cond_expr_node_t()
1000        try: self.this.append(this)
1001        except: self.this = this
1002    __swig_destroy__ = _qpol.delete_qpol_cond_expr_node_t
1003    __del__ = lambda self : None;
1004    def expr_type(self, *args): return _qpol.qpol_cond_expr_node_t_expr_type(self, *args)
1005    def get_boolean(self, *args): return _qpol.qpol_cond_expr_node_t_get_boolean(self, *args)
1006qpol_cond_expr_node_t_swigregister = _qpol.qpol_cond_expr_node_t_swigregister
1007qpol_cond_expr_node_t_swigregister(qpol_cond_expr_node_t)
1008
1009
1010def qpol_cond_expr_node_from_void(*args):
1011  return _qpol.qpol_cond_expr_node_from_void(*args)
1012qpol_cond_expr_node_from_void = _qpol.qpol_cond_expr_node_from_void
1013class qpol_filename_trans_t(_object):
1014    __swig_setmethods__ = {}
1015    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_filename_trans_t, name, value)
1016    __swig_getmethods__ = {}
1017    __getattr__ = lambda self, name: _swig_getattr(self, qpol_filename_trans_t, name)
1018    __repr__ = _swig_repr
1019    def __init__(self):
1020        this = _qpol.new_qpol_filename_trans_t()
1021        try: self.this.append(this)
1022        except: self.this = this
1023    __swig_destroy__ = _qpol.delete_qpol_filename_trans_t
1024    __del__ = lambda self : None;
1025    def rule_type(self,policy):
1026        return "type_transition"
1027
1028    def source_type(self, *args): return _qpol.qpol_filename_trans_t_source_type(self, *args)
1029    def target_type(self, *args): return _qpol.qpol_filename_trans_t_target_type(self, *args)
1030    def object_class(self, *args): return _qpol.qpol_filename_trans_t_object_class(self, *args)
1031    def default_type(self, *args): return _qpol.qpol_filename_trans_t_default_type(self, *args)
1032    def filename(self, *args): return _qpol.qpol_filename_trans_t_filename(self, *args)
1033qpol_filename_trans_t_swigregister = _qpol.qpol_filename_trans_t_swigregister
1034qpol_filename_trans_t_swigregister(qpol_filename_trans_t)
1035
1036
1037def qpol_filename_trans_from_void(*args):
1038  return _qpol.qpol_filename_trans_from_void(*args)
1039qpol_filename_trans_from_void = _qpol.qpol_filename_trans_from_void
1040class qpol_polcap_t(_object):
1041    __swig_setmethods__ = {}
1042    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_polcap_t, name, value)
1043    __swig_getmethods__ = {}
1044    __getattr__ = lambda self, name: _swig_getattr(self, qpol_polcap_t, name)
1045    __repr__ = _swig_repr
1046    def __init__(self):
1047        this = _qpol.new_qpol_polcap_t()
1048        try: self.this.append(this)
1049        except: self.this = this
1050    __swig_destroy__ = _qpol.delete_qpol_polcap_t
1051    __del__ = lambda self : None;
1052    def name(self, *args): return _qpol.qpol_polcap_t_name(self, *args)
1053qpol_polcap_t_swigregister = _qpol.qpol_polcap_t_swigregister
1054qpol_polcap_t_swigregister(qpol_polcap_t)
1055
1056
1057def qpol_polcap_from_void(*args):
1058  return _qpol.qpol_polcap_from_void(*args)
1059qpol_polcap_from_void = _qpol.qpol_polcap_from_void
1060class qpol_typebounds_t(_object):
1061    __swig_setmethods__ = {}
1062    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_typebounds_t, name, value)
1063    __swig_getmethods__ = {}
1064    __getattr__ = lambda self, name: _swig_getattr(self, qpol_typebounds_t, name)
1065    __repr__ = _swig_repr
1066    def __init__(self):
1067        this = _qpol.new_qpol_typebounds_t()
1068        try: self.this.append(this)
1069        except: self.this = this
1070    __swig_destroy__ = _qpol.delete_qpol_typebounds_t
1071    __del__ = lambda self : None;
1072    def parent_name(self, *args): return _qpol.qpol_typebounds_t_parent_name(self, *args)
1073    def child_name(self, *args): return _qpol.qpol_typebounds_t_child_name(self, *args)
1074qpol_typebounds_t_swigregister = _qpol.qpol_typebounds_t_swigregister
1075qpol_typebounds_t_swigregister(qpol_typebounds_t)
1076
1077
1078def qpol_typebounds_from_void(*args):
1079  return _qpol.qpol_typebounds_from_void(*args)
1080qpol_typebounds_from_void = _qpol.qpol_typebounds_from_void
1081class qpol_rolebounds_t(_object):
1082    __swig_setmethods__ = {}
1083    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_rolebounds_t, name, value)
1084    __swig_getmethods__ = {}
1085    __getattr__ = lambda self, name: _swig_getattr(self, qpol_rolebounds_t, name)
1086    __repr__ = _swig_repr
1087    def __init__(self):
1088        this = _qpol.new_qpol_rolebounds_t()
1089        try: self.this.append(this)
1090        except: self.this = this
1091    __swig_destroy__ = _qpol.delete_qpol_rolebounds_t
1092    __del__ = lambda self : None;
1093    def parent_name(self, *args): return _qpol.qpol_rolebounds_t_parent_name(self, *args)
1094    def child_name(self, *args): return _qpol.qpol_rolebounds_t_child_name(self, *args)
1095qpol_rolebounds_t_swigregister = _qpol.qpol_rolebounds_t_swigregister
1096qpol_rolebounds_t_swigregister(qpol_rolebounds_t)
1097
1098
1099def qpol_rolebounds_from_void(*args):
1100  return _qpol.qpol_rolebounds_from_void(*args)
1101qpol_rolebounds_from_void = _qpol.qpol_rolebounds_from_void
1102class qpol_userbounds_t(_object):
1103    __swig_setmethods__ = {}
1104    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_userbounds_t, name, value)
1105    __swig_getmethods__ = {}
1106    __getattr__ = lambda self, name: _swig_getattr(self, qpol_userbounds_t, name)
1107    __repr__ = _swig_repr
1108    def __init__(self):
1109        this = _qpol.new_qpol_userbounds_t()
1110        try: self.this.append(this)
1111        except: self.this = this
1112    __swig_destroy__ = _qpol.delete_qpol_userbounds_t
1113    __del__ = lambda self : None;
1114    def parent_name(self, *args): return _qpol.qpol_userbounds_t_parent_name(self, *args)
1115    def child_name(self, *args): return _qpol.qpol_userbounds_t_child_name(self, *args)
1116qpol_userbounds_t_swigregister = _qpol.qpol_userbounds_t_swigregister
1117qpol_userbounds_t_swigregister(qpol_userbounds_t)
1118
1119
1120def qpol_userbounds_from_void(*args):
1121  return _qpol.qpol_userbounds_from_void(*args)
1122qpol_userbounds_from_void = _qpol.qpol_userbounds_from_void
1123class qpol_default_object_t(_object):
1124    __swig_setmethods__ = {}
1125    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_default_object_t, name, value)
1126    __swig_getmethods__ = {}
1127    __getattr__ = lambda self, name: _swig_getattr(self, qpol_default_object_t, name)
1128    __repr__ = _swig_repr
1129    def __init__(self):
1130        this = _qpol.new_qpol_default_object_t()
1131        try: self.this.append(this)
1132        except: self.this = this
1133    __swig_destroy__ = _qpol.delete_qpol_default_object_t
1134    __del__ = lambda self : None;
1135    def object_class(self, *args): return _qpol.qpol_default_object_t_object_class(self, *args)
1136    def user_default(self, *args): return _qpol.qpol_default_object_t_user_default(self, *args)
1137    def role_default(self, *args): return _qpol.qpol_default_object_t_role_default(self, *args)
1138    def type_default(self, *args): return _qpol.qpol_default_object_t_type_default(self, *args)
1139    def range_default(self, *args): return _qpol.qpol_default_object_t_range_default(self, *args)
1140qpol_default_object_t_swigregister = _qpol.qpol_default_object_t_swigregister
1141qpol_default_object_t_swigregister(qpol_default_object_t)
1142
1143
1144def qpol_default_object_from_void(*args):
1145  return _qpol.qpol_default_object_from_void(*args)
1146qpol_default_object_from_void = _qpol.qpol_default_object_from_void
1147class qpol_iomemcon_t(_object):
1148    __swig_setmethods__ = {}
1149    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_iomemcon_t, name, value)
1150    __swig_getmethods__ = {}
1151    __getattr__ = lambda self, name: _swig_getattr(self, qpol_iomemcon_t, name)
1152    __repr__ = _swig_repr
1153    def __init__(self, *args):
1154        this = _qpol.new_qpol_iomemcon_t(*args)
1155        try: self.this.append(this)
1156        except: self.this = this
1157    __swig_destroy__ = _qpol.delete_qpol_iomemcon_t
1158    __del__ = lambda self : None;
1159    def low_addr(self, *args): return _qpol.qpol_iomemcon_t_low_addr(self, *args)
1160    def high_addr(self, *args): return _qpol.qpol_iomemcon_t_high_addr(self, *args)
1161    def context(self, *args): return _qpol.qpol_iomemcon_t_context(self, *args)
1162qpol_iomemcon_t_swigregister = _qpol.qpol_iomemcon_t_swigregister
1163qpol_iomemcon_t_swigregister(qpol_iomemcon_t)
1164
1165
1166def qpol_iomemcon_from_void(*args):
1167  return _qpol.qpol_iomemcon_from_void(*args)
1168qpol_iomemcon_from_void = _qpol.qpol_iomemcon_from_void
1169class qpol_ioportcon_t(_object):
1170    __swig_setmethods__ = {}
1171    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_ioportcon_t, name, value)
1172    __swig_getmethods__ = {}
1173    __getattr__ = lambda self, name: _swig_getattr(self, qpol_ioportcon_t, name)
1174    __repr__ = _swig_repr
1175    def __init__(self, *args):
1176        this = _qpol.new_qpol_ioportcon_t(*args)
1177        try: self.this.append(this)
1178        except: self.this = this
1179    __swig_destroy__ = _qpol.delete_qpol_ioportcon_t
1180    __del__ = lambda self : None;
1181    def low_port(self, *args): return _qpol.qpol_ioportcon_t_low_port(self, *args)
1182    def high_port(self, *args): return _qpol.qpol_ioportcon_t_high_port(self, *args)
1183    def context(self, *args): return _qpol.qpol_ioportcon_t_context(self, *args)
1184qpol_ioportcon_t_swigregister = _qpol.qpol_ioportcon_t_swigregister
1185qpol_ioportcon_t_swigregister(qpol_ioportcon_t)
1186
1187
1188def qpol_ioportcon_from_void(*args):
1189  return _qpol.qpol_ioportcon_from_void(*args)
1190qpol_ioportcon_from_void = _qpol.qpol_ioportcon_from_void
1191class qpol_pcidevicecon_t(_object):
1192    __swig_setmethods__ = {}
1193    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_pcidevicecon_t, name, value)
1194    __swig_getmethods__ = {}
1195    __getattr__ = lambda self, name: _swig_getattr(self, qpol_pcidevicecon_t, name)
1196    __repr__ = _swig_repr
1197    def __init__(self):
1198        this = _qpol.new_qpol_pcidevicecon_t()
1199        try: self.this.append(this)
1200        except: self.this = this
1201    __swig_destroy__ = _qpol.delete_qpol_pcidevicecon_t
1202    __del__ = lambda self : None;
1203    def device(self, *args): return _qpol.qpol_pcidevicecon_t_device(self, *args)
1204    def context(self, *args): return _qpol.qpol_pcidevicecon_t_context(self, *args)
1205qpol_pcidevicecon_t_swigregister = _qpol.qpol_pcidevicecon_t_swigregister
1206qpol_pcidevicecon_t_swigregister(qpol_pcidevicecon_t)
1207
1208
1209def qpol_pcidevicecon_from_void(*args):
1210  return _qpol.qpol_pcidevicecon_from_void(*args)
1211qpol_pcidevicecon_from_void = _qpol.qpol_pcidevicecon_from_void
1212class qpol_pirqcon_t(_object):
1213    __swig_setmethods__ = {}
1214    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_pirqcon_t, name, value)
1215    __swig_getmethods__ = {}
1216    __getattr__ = lambda self, name: _swig_getattr(self, qpol_pirqcon_t, name)
1217    __repr__ = _swig_repr
1218    def __init__(self):
1219        this = _qpol.new_qpol_pirqcon_t()
1220        try: self.this.append(this)
1221        except: self.this = this
1222    __swig_destroy__ = _qpol.delete_qpol_pirqcon_t
1223    __del__ = lambda self : None;
1224    def irq(self, *args): return _qpol.qpol_pirqcon_t_irq(self, *args)
1225    def context(self, *args): return _qpol.qpol_pirqcon_t_context(self, *args)
1226qpol_pirqcon_t_swigregister = _qpol.qpol_pirqcon_t_swigregister
1227qpol_pirqcon_t_swigregister(qpol_pirqcon_t)
1228
1229
1230def qpol_pirqcon_from_void(*args):
1231  return _qpol.qpol_pirqcon_from_void(*args)
1232qpol_pirqcon_from_void = _qpol.qpol_pirqcon_from_void
1233class qpol_devicetreecon_t(_object):
1234    __swig_setmethods__ = {}
1235    __setattr__ = lambda self, name, value: _swig_setattr(self, qpol_devicetreecon_t, name, value)
1236    __swig_getmethods__ = {}
1237    __getattr__ = lambda self, name: _swig_getattr(self, qpol_devicetreecon_t, name)
1238    __repr__ = _swig_repr
1239    def __init__(self):
1240        this = _qpol.new_qpol_devicetreecon_t()
1241        try: self.this.append(this)
1242        except: self.this = this
1243    def path(self, *args): return _qpol.qpol_devicetreecon_t_path(self, *args)
1244    def context(self, *args): return _qpol.qpol_devicetreecon_t_context(self, *args)
1245    __swig_destroy__ = _qpol.delete_qpol_devicetreecon_t
1246    __del__ = lambda self : None;
1247qpol_devicetreecon_t_swigregister = _qpol.qpol_devicetreecon_t_swigregister
1248qpol_devicetreecon_t_swigregister(qpol_devicetreecon_t)
1249
1250
1251def qpol_devicetreecon_from_void(*args):
1252  return _qpol.qpol_devicetreecon_from_void(*args)
1253qpol_devicetreecon_from_void = _qpol.qpol_devicetreecon_from_void
1254# This file is compatible with both classic and new-style classes.
1255
1256
1257