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