|
Lines 1-15
Link Here
|
| 1 |
# This file was automatically generated by SWIG (http://www.swig.org). |
1 |
# This file was automatically generated by SWIG (http://www.swig.org). |
| 2 |
# Version 3.0.8 |
2 |
# Version 3.0.12 |
| 3 |
# |
3 |
# |
| 4 |
# Do not make changes to this file unless you know what you are doing--modify |
4 |
# Do not make changes to this file unless you know what you are doing--modify |
| 5 |
# the SWIG interface file instead. |
5 |
# the SWIG interface file instead. |
| 6 |
|
6 |
|
| 7 |
|
7 |
from sys import version_info as _swig_python_version_info |
| 8 |
|
8 |
if _swig_python_version_info >= (2, 7, 0): |
| 9 |
|
9 |
def swig_import_helper(): |
| 10 |
|
10 |
import importlib |
| 11 |
from sys import version_info |
11 |
pkg = __name__.rpartition('.')[0] |
| 12 |
if version_info >= (2, 6, 0): |
12 |
mname = '.'.join((pkg, '_selinux')).lstrip('.') |
|
|
13 |
try: |
| 14 |
return importlib.import_module(mname) |
| 15 |
except ImportError: |
| 16 |
return importlib.import_module('_selinux') |
| 17 |
_selinux = swig_import_helper() |
| 18 |
del swig_import_helper |
| 19 |
elif _swig_python_version_info >= (2, 6, 0): |
| 13 |
def swig_import_helper(): |
20 |
def swig_import_helper(): |
| 14 |
from os.path import dirname |
21 |
from os.path import dirname |
| 15 |
import imp |
22 |
import imp |
|
Lines 19-40
Link Here
|
| 19 |
except ImportError: |
26 |
except ImportError: |
| 20 |
import _selinux |
27 |
import _selinux |
| 21 |
return _selinux |
28 |
return _selinux |
| 22 |
if fp is not None: |
29 |
try: |
| 23 |
try: |
30 |
_mod = imp.load_module('_selinux', fp, pathname, description) |
| 24 |
_mod = imp.load_module('_selinux', fp, pathname, description) |
31 |
finally: |
| 25 |
finally: |
32 |
if fp is not None: |
| 26 |
fp.close() |
33 |
fp.close() |
| 27 |
return _mod |
34 |
return _mod |
| 28 |
_selinux = swig_import_helper() |
35 |
_selinux = swig_import_helper() |
| 29 |
del swig_import_helper |
36 |
del swig_import_helper |
| 30 |
else: |
37 |
else: |
| 31 |
import _selinux |
38 |
import _selinux |
| 32 |
del version_info |
39 |
del _swig_python_version_info |
|
|
40 |
|
| 33 |
try: |
41 |
try: |
| 34 |
_swig_property = property |
42 |
_swig_property = property |
| 35 |
except NameError: |
43 |
except NameError: |
| 36 |
pass # Python < 2.2 doesn't have 'property'. |
44 |
pass # Python < 2.2 doesn't have 'property'. |
| 37 |
|
45 |
|
|
|
46 |
try: |
| 47 |
import builtins as __builtin__ |
| 48 |
except ImportError: |
| 49 |
import __builtin__ |
| 38 |
|
50 |
|
| 39 |
def _swig_setattr_nondynamic(self, class_type, name, value, static=1): |
51 |
def _swig_setattr_nondynamic(self, class_type, name, value, static=1): |
| 40 |
if (name == "thisown"): |
52 |
if (name == "thisown"): |
|
Lines 59-97
Link Here
|
| 59 |
return _swig_setattr_nondynamic(self, class_type, name, value, 0) |
71 |
return _swig_setattr_nondynamic(self, class_type, name, value, 0) |
| 60 |
|
72 |
|
| 61 |
|
73 |
|
| 62 |
def _swig_getattr_nondynamic(self, class_type, name, static=1): |
74 |
def _swig_getattr(self, class_type, name): |
| 63 |
if (name == "thisown"): |
75 |
if (name == "thisown"): |
| 64 |
return self.this.own() |
76 |
return self.this.own() |
| 65 |
method = class_type.__swig_getmethods__.get(name, None) |
77 |
method = class_type.__swig_getmethods__.get(name, None) |
| 66 |
if method: |
78 |
if method: |
| 67 |
return method(self) |
79 |
return method(self) |
| 68 |
if (not static): |
80 |
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name)) |
| 69 |
return object.__getattr__(self, name) |
|
|
| 70 |
else: |
| 71 |
raise AttributeError(name) |
| 72 |
|
| 73 |
def _swig_getattr(self, class_type, name): |
| 74 |
return _swig_getattr_nondynamic(self, class_type, name, 0) |
| 75 |
|
81 |
|
| 76 |
|
82 |
|
| 77 |
def _swig_repr(self): |
83 |
def _swig_repr(self): |
| 78 |
try: |
84 |
try: |
| 79 |
strthis = "proxy of " + self.this.__repr__() |
85 |
strthis = "proxy of " + self.this.__repr__() |
| 80 |
except Exception: |
86 |
except __builtin__.Exception: |
| 81 |
strthis = "" |
87 |
strthis = "" |
| 82 |
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) |
88 |
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) |
| 83 |
|
89 |
|
| 84 |
try: |
90 |
try: |
| 85 |
_object = object |
91 |
_object = object |
| 86 |
_newclass = 1 |
92 |
_newclass = 1 |
| 87 |
except AttributeError: |
93 |
except __builtin__.Exception: |
| 88 |
class _object: |
94 |
class _object: |
| 89 |
pass |
95 |
pass |
| 90 |
_newclass = 0 |
96 |
_newclass = 0 |
| 91 |
|
97 |
|
| 92 |
|
98 |
|
| 93 |
|
99 |
|
| 94 |
|
|
|
| 95 |
import shutil, os, errno, stat |
100 |
import shutil, os, errno, stat |
| 96 |
|
101 |
|
| 97 |
DISABLED = -1 |
102 |
DISABLED = -1 |
|
Lines 161-167
Link Here
|
| 161 |
this = _selinux.new_security_id() |
166 |
this = _selinux.new_security_id() |
| 162 |
try: |
167 |
try: |
| 163 |
self.this.append(this) |
168 |
self.this.append(this) |
| 164 |
except Exception: |
169 |
except __builtin__.Exception: |
| 165 |
self.this = this |
170 |
self.this = this |
| 166 |
__swig_destroy__ = _selinux.delete_security_id |
171 |
__swig_destroy__ = _selinux.delete_security_id |
| 167 |
__del__ = lambda self: None |
172 |
__del__ = lambda self: None |
|
Lines 211-217
Link Here
|
| 211 |
this = _selinux.new_avc_entry_ref() |
216 |
this = _selinux.new_avc_entry_ref() |
| 212 |
try: |
217 |
try: |
| 213 |
self.this.append(this) |
218 |
self.this.append(this) |
| 214 |
except Exception: |
219 |
except __builtin__.Exception: |
| 215 |
self.this = this |
220 |
self.this = this |
| 216 |
__swig_destroy__ = _selinux.delete_avc_entry_ref |
221 |
__swig_destroy__ = _selinux.delete_avc_entry_ref |
| 217 |
__del__ = lambda self: None |
222 |
__del__ = lambda self: None |
|
Lines 237-243
Link Here
|
| 237 |
this = _selinux.new_avc_memory_callback() |
242 |
this = _selinux.new_avc_memory_callback() |
| 238 |
try: |
243 |
try: |
| 239 |
self.this.append(this) |
244 |
self.this.append(this) |
| 240 |
except Exception: |
245 |
except __builtin__.Exception: |
| 241 |
self.this = this |
246 |
self.this = this |
| 242 |
__swig_destroy__ = _selinux.delete_avc_memory_callback |
247 |
__swig_destroy__ = _selinux.delete_avc_memory_callback |
| 243 |
__del__ = lambda self: None |
248 |
__del__ = lambda self: None |
|
Lines 263-269
Link Here
|
| 263 |
this = _selinux.new_avc_log_callback() |
268 |
this = _selinux.new_avc_log_callback() |
| 264 |
try: |
269 |
try: |
| 265 |
self.this.append(this) |
270 |
self.this.append(this) |
| 266 |
except Exception: |
271 |
except __builtin__.Exception: |
| 267 |
self.this = this |
272 |
self.this = this |
| 268 |
__swig_destroy__ = _selinux.delete_avc_log_callback |
273 |
__swig_destroy__ = _selinux.delete_avc_log_callback |
| 269 |
__del__ = lambda self: None |
274 |
__del__ = lambda self: None |
|
Lines 289-295
Link Here
|
| 289 |
this = _selinux.new_avc_thread_callback() |
294 |
this = _selinux.new_avc_thread_callback() |
| 290 |
try: |
295 |
try: |
| 291 |
self.this.append(this) |
296 |
self.this.append(this) |
| 292 |
except Exception: |
297 |
except __builtin__.Exception: |
| 293 |
self.this = this |
298 |
self.this = this |
| 294 |
__swig_destroy__ = _selinux.delete_avc_thread_callback |
299 |
__swig_destroy__ = _selinux.delete_avc_thread_callback |
| 295 |
__del__ = lambda self: None |
300 |
__del__ = lambda self: None |
|
Lines 323-340
Link Here
|
| 323 |
this = _selinux.new_avc_lock_callback() |
328 |
this = _selinux.new_avc_lock_callback() |
| 324 |
try: |
329 |
try: |
| 325 |
self.this.append(this) |
330 |
self.this.append(this) |
| 326 |
except Exception: |
331 |
except __builtin__.Exception: |
| 327 |
self.this = this |
332 |
self.this = this |
| 328 |
__swig_destroy__ = _selinux.delete_avc_lock_callback |
333 |
__swig_destroy__ = _selinux.delete_avc_lock_callback |
| 329 |
__del__ = lambda self: None |
334 |
__del__ = lambda self: None |
| 330 |
avc_lock_callback_swigregister = _selinux.avc_lock_callback_swigregister |
335 |
avc_lock_callback_swigregister = _selinux.avc_lock_callback_swigregister |
| 331 |
avc_lock_callback_swigregister(avc_lock_callback) |
336 |
avc_lock_callback_swigregister(avc_lock_callback) |
| 332 |
|
337 |
|
| 333 |
|
|
|
| 334 |
_selinux.AVC_OPT_UNUSED_swigconstant(_selinux) |
| 335 |
AVC_OPT_UNUSED = _selinux.AVC_OPT_UNUSED |
338 |
AVC_OPT_UNUSED = _selinux.AVC_OPT_UNUSED |
| 336 |
|
|
|
| 337 |
_selinux.AVC_OPT_SETENFORCE_swigconstant(_selinux) |
| 338 |
AVC_OPT_SETENFORCE = _selinux.AVC_OPT_SETENFORCE |
339 |
AVC_OPT_SETENFORCE = _selinux.AVC_OPT_SETENFORCE |
| 339 |
|
340 |
|
| 340 |
def avc_init(msgprefix, mem_callbacks, log_callbacks, thread_callbacks, lock_callbacks): |
341 |
def avc_init(msgprefix, mem_callbacks, log_callbacks, thread_callbacks, lock_callbacks): |
|
Lines 376-407
Link Here
|
| 376 |
def avc_compute_member(ssid, tsid, tclass): |
377 |
def avc_compute_member(ssid, tsid, tclass): |
| 377 |
return _selinux.avc_compute_member(ssid, tsid, tclass) |
378 |
return _selinux.avc_compute_member(ssid, tsid, tclass) |
| 378 |
avc_compute_member = _selinux.avc_compute_member |
379 |
avc_compute_member = _selinux.avc_compute_member |
| 379 |
|
|
|
| 380 |
_selinux.AVC_CALLBACK_GRANT_swigconstant(_selinux) |
| 381 |
AVC_CALLBACK_GRANT = _selinux.AVC_CALLBACK_GRANT |
380 |
AVC_CALLBACK_GRANT = _selinux.AVC_CALLBACK_GRANT |
| 382 |
|
|
|
| 383 |
_selinux.AVC_CALLBACK_TRY_REVOKE_swigconstant(_selinux) |
| 384 |
AVC_CALLBACK_TRY_REVOKE = _selinux.AVC_CALLBACK_TRY_REVOKE |
381 |
AVC_CALLBACK_TRY_REVOKE = _selinux.AVC_CALLBACK_TRY_REVOKE |
| 385 |
|
|
|
| 386 |
_selinux.AVC_CALLBACK_REVOKE_swigconstant(_selinux) |
| 387 |
AVC_CALLBACK_REVOKE = _selinux.AVC_CALLBACK_REVOKE |
382 |
AVC_CALLBACK_REVOKE = _selinux.AVC_CALLBACK_REVOKE |
| 388 |
|
|
|
| 389 |
_selinux.AVC_CALLBACK_RESET_swigconstant(_selinux) |
| 390 |
AVC_CALLBACK_RESET = _selinux.AVC_CALLBACK_RESET |
383 |
AVC_CALLBACK_RESET = _selinux.AVC_CALLBACK_RESET |
| 391 |
|
|
|
| 392 |
_selinux.AVC_CALLBACK_AUDITALLOW_ENABLE_swigconstant(_selinux) |
| 393 |
AVC_CALLBACK_AUDITALLOW_ENABLE = _selinux.AVC_CALLBACK_AUDITALLOW_ENABLE |
384 |
AVC_CALLBACK_AUDITALLOW_ENABLE = _selinux.AVC_CALLBACK_AUDITALLOW_ENABLE |
| 394 |
|
|
|
| 395 |
_selinux.AVC_CALLBACK_AUDITALLOW_DISABLE_swigconstant(_selinux) |
| 396 |
AVC_CALLBACK_AUDITALLOW_DISABLE = _selinux.AVC_CALLBACK_AUDITALLOW_DISABLE |
385 |
AVC_CALLBACK_AUDITALLOW_DISABLE = _selinux.AVC_CALLBACK_AUDITALLOW_DISABLE |
| 397 |
|
|
|
| 398 |
_selinux.AVC_CALLBACK_AUDITDENY_ENABLE_swigconstant(_selinux) |
| 399 |
AVC_CALLBACK_AUDITDENY_ENABLE = _selinux.AVC_CALLBACK_AUDITDENY_ENABLE |
386 |
AVC_CALLBACK_AUDITDENY_ENABLE = _selinux.AVC_CALLBACK_AUDITDENY_ENABLE |
| 400 |
|
|
|
| 401 |
_selinux.AVC_CALLBACK_AUDITDENY_DISABLE_swigconstant(_selinux) |
| 402 |
AVC_CALLBACK_AUDITDENY_DISABLE = _selinux.AVC_CALLBACK_AUDITDENY_DISABLE |
387 |
AVC_CALLBACK_AUDITDENY_DISABLE = _selinux.AVC_CALLBACK_AUDITDENY_DISABLE |
| 403 |
|
|
|
| 404 |
_selinux.AVC_CACHE_STATS_swigconstant(_selinux) |
| 405 |
AVC_CACHE_STATS = _selinux.AVC_CACHE_STATS |
388 |
AVC_CACHE_STATS = _selinux.AVC_CACHE_STATS |
| 406 |
class avc_cache_stats(_object): |
389 |
class avc_cache_stats(_object): |
| 407 |
__swig_setmethods__ = {} |
390 |
__swig_setmethods__ = {} |
|
Lines 446-452
Link Here
|
| 446 |
this = _selinux.new_avc_cache_stats() |
429 |
this = _selinux.new_avc_cache_stats() |
| 447 |
try: |
430 |
try: |
| 448 |
self.this.append(this) |
431 |
self.this.append(this) |
| 449 |
except Exception: |
432 |
except __builtin__.Exception: |
| 450 |
self.this = this |
433 |
self.this = this |
| 451 |
__swig_destroy__ = _selinux.delete_avc_cache_stats |
434 |
__swig_destroy__ = _selinux.delete_avc_cache_stats |
| 452 |
__del__ = lambda self: None |
435 |
__del__ = lambda self: None |
|
Lines 512-518
Link Here
|
| 512 |
this = _selinux.new_context_s_t() |
495 |
this = _selinux.new_context_s_t() |
| 513 |
try: |
496 |
try: |
| 514 |
self.this.append(this) |
497 |
self.this.append(this) |
| 515 |
except Exception: |
498 |
except __builtin__.Exception: |
| 516 |
self.this = this |
499 |
self.this = this |
| 517 |
__swig_destroy__ = _selinux.delete_context_s_t |
500 |
__swig_destroy__ = _selinux.delete_context_s_t |
| 518 |
__del__ = lambda self: None |
501 |
__del__ = lambda self: None |
|
Lines 563-570
Link Here
|
| 563 |
def context_user_set(arg1, arg2): |
546 |
def context_user_set(arg1, arg2): |
| 564 |
return _selinux.context_user_set(arg1, arg2) |
547 |
return _selinux.context_user_set(arg1, arg2) |
| 565 |
context_user_set = _selinux.context_user_set |
548 |
context_user_set = _selinux.context_user_set |
| 566 |
|
|
|
| 567 |
_selinux.SELINUX_DEFAULTUSER_swigconstant(_selinux) |
| 568 |
SELINUX_DEFAULTUSER = _selinux.SELINUX_DEFAULTUSER |
549 |
SELINUX_DEFAULTUSER = _selinux.SELINUX_DEFAULTUSER |
| 569 |
|
550 |
|
| 570 |
def get_ordered_context_list(user, fromcon): |
551 |
def get_ordered_context_list(user, fromcon): |
|
Lines 606-646
Link Here
|
| 606 |
def get_default_type(role): |
587 |
def get_default_type(role): |
| 607 |
return _selinux.get_default_type(role) |
588 |
return _selinux.get_default_type(role) |
| 608 |
get_default_type = _selinux.get_default_type |
589 |
get_default_type = _selinux.get_default_type |
| 609 |
|
|
|
| 610 |
_selinux.SELABEL_CTX_FILE_swigconstant(_selinux) |
| 611 |
SELABEL_CTX_FILE = _selinux.SELABEL_CTX_FILE |
590 |
SELABEL_CTX_FILE = _selinux.SELABEL_CTX_FILE |
| 612 |
|
|
|
| 613 |
_selinux.SELABEL_CTX_MEDIA_swigconstant(_selinux) |
| 614 |
SELABEL_CTX_MEDIA = _selinux.SELABEL_CTX_MEDIA |
591 |
SELABEL_CTX_MEDIA = _selinux.SELABEL_CTX_MEDIA |
| 615 |
|
|
|
| 616 |
_selinux.SELABEL_CTX_X_swigconstant(_selinux) |
| 617 |
SELABEL_CTX_X = _selinux.SELABEL_CTX_X |
592 |
SELABEL_CTX_X = _selinux.SELABEL_CTX_X |
| 618 |
|
|
|
| 619 |
_selinux.SELABEL_CTX_DB_swigconstant(_selinux) |
| 620 |
SELABEL_CTX_DB = _selinux.SELABEL_CTX_DB |
593 |
SELABEL_CTX_DB = _selinux.SELABEL_CTX_DB |
| 621 |
|
|
|
| 622 |
_selinux.SELABEL_CTX_ANDROID_PROP_swigconstant(_selinux) |
| 623 |
SELABEL_CTX_ANDROID_PROP = _selinux.SELABEL_CTX_ANDROID_PROP |
594 |
SELABEL_CTX_ANDROID_PROP = _selinux.SELABEL_CTX_ANDROID_PROP |
| 624 |
|
|
|
| 625 |
_selinux.SELABEL_OPT_UNUSED_swigconstant(_selinux) |
| 626 |
SELABEL_OPT_UNUSED = _selinux.SELABEL_OPT_UNUSED |
595 |
SELABEL_OPT_UNUSED = _selinux.SELABEL_OPT_UNUSED |
| 627 |
|
|
|
| 628 |
_selinux.SELABEL_OPT_VALIDATE_swigconstant(_selinux) |
| 629 |
SELABEL_OPT_VALIDATE = _selinux.SELABEL_OPT_VALIDATE |
596 |
SELABEL_OPT_VALIDATE = _selinux.SELABEL_OPT_VALIDATE |
| 630 |
|
|
|
| 631 |
_selinux.SELABEL_OPT_BASEONLY_swigconstant(_selinux) |
| 632 |
SELABEL_OPT_BASEONLY = _selinux.SELABEL_OPT_BASEONLY |
597 |
SELABEL_OPT_BASEONLY = _selinux.SELABEL_OPT_BASEONLY |
| 633 |
|
|
|
| 634 |
_selinux.SELABEL_OPT_PATH_swigconstant(_selinux) |
| 635 |
SELABEL_OPT_PATH = _selinux.SELABEL_OPT_PATH |
598 |
SELABEL_OPT_PATH = _selinux.SELABEL_OPT_PATH |
| 636 |
|
|
|
| 637 |
_selinux.SELABEL_OPT_SUBSET_swigconstant(_selinux) |
| 638 |
SELABEL_OPT_SUBSET = _selinux.SELABEL_OPT_SUBSET |
599 |
SELABEL_OPT_SUBSET = _selinux.SELABEL_OPT_SUBSET |
| 639 |
|
|
|
| 640 |
_selinux.SELABEL_OPT_DIGEST_swigconstant(_selinux) |
| 641 |
SELABEL_OPT_DIGEST = _selinux.SELABEL_OPT_DIGEST |
600 |
SELABEL_OPT_DIGEST = _selinux.SELABEL_OPT_DIGEST |
| 642 |
|
|
|
| 643 |
_selinux.SELABEL_NOPT_swigconstant(_selinux) |
| 644 |
SELABEL_NOPT = _selinux.SELABEL_NOPT |
601 |
SELABEL_NOPT = _selinux.SELABEL_NOPT |
| 645 |
|
602 |
|
| 646 |
def selabel_open(backend, opts, nopts): |
603 |
def selabel_open(backend, opts, nopts): |
|
Lines 674-690
Link Here
|
| 674 |
def selabel_digest(rec, digest): |
631 |
def selabel_digest(rec, digest): |
| 675 |
return _selinux.selabel_digest(rec, digest) |
632 |
return _selinux.selabel_digest(rec, digest) |
| 676 |
selabel_digest = _selinux.selabel_digest |
633 |
selabel_digest = _selinux.selabel_digest |
| 677 |
|
|
|
| 678 |
_selinux.SELABEL_SUBSET_swigconstant(_selinux) |
| 679 |
SELABEL_SUBSET = _selinux.SELABEL_SUBSET |
634 |
SELABEL_SUBSET = _selinux.SELABEL_SUBSET |
| 680 |
|
|
|
| 681 |
_selinux.SELABEL_EQUAL_swigconstant(_selinux) |
| 682 |
SELABEL_EQUAL = _selinux.SELABEL_EQUAL |
635 |
SELABEL_EQUAL = _selinux.SELABEL_EQUAL |
| 683 |
|
|
|
| 684 |
_selinux.SELABEL_SUPERSET_swigconstant(_selinux) |
| 685 |
SELABEL_SUPERSET = _selinux.SELABEL_SUPERSET |
636 |
SELABEL_SUPERSET = _selinux.SELABEL_SUPERSET |
| 686 |
|
|
|
| 687 |
_selinux.SELABEL_INCOMPARABLE_swigconstant(_selinux) |
| 688 |
SELABEL_INCOMPARABLE = _selinux.SELABEL_INCOMPARABLE |
637 |
SELABEL_INCOMPARABLE = _selinux.SELABEL_INCOMPARABLE |
| 689 |
|
638 |
|
| 690 |
def selabel_cmp(h1, h2): |
639 |
def selabel_cmp(h1, h2): |
|
Lines 694-755
Link Here
|
| 694 |
def selabel_stats(handle): |
643 |
def selabel_stats(handle): |
| 695 |
return _selinux.selabel_stats(handle) |
644 |
return _selinux.selabel_stats(handle) |
| 696 |
selabel_stats = _selinux.selabel_stats |
645 |
selabel_stats = _selinux.selabel_stats |
| 697 |
|
|
|
| 698 |
_selinux.SELABEL_X_PROP_swigconstant(_selinux) |
| 699 |
SELABEL_X_PROP = _selinux.SELABEL_X_PROP |
646 |
SELABEL_X_PROP = _selinux.SELABEL_X_PROP |
| 700 |
|
|
|
| 701 |
_selinux.SELABEL_X_EXT_swigconstant(_selinux) |
| 702 |
SELABEL_X_EXT = _selinux.SELABEL_X_EXT |
647 |
SELABEL_X_EXT = _selinux.SELABEL_X_EXT |
| 703 |
|
|
|
| 704 |
_selinux.SELABEL_X_CLIENT_swigconstant(_selinux) |
| 705 |
SELABEL_X_CLIENT = _selinux.SELABEL_X_CLIENT |
648 |
SELABEL_X_CLIENT = _selinux.SELABEL_X_CLIENT |
| 706 |
|
|
|
| 707 |
_selinux.SELABEL_X_EVENT_swigconstant(_selinux) |
| 708 |
SELABEL_X_EVENT = _selinux.SELABEL_X_EVENT |
649 |
SELABEL_X_EVENT = _selinux.SELABEL_X_EVENT |
| 709 |
|
|
|
| 710 |
_selinux.SELABEL_X_SELN_swigconstant(_selinux) |
| 711 |
SELABEL_X_SELN = _selinux.SELABEL_X_SELN |
650 |
SELABEL_X_SELN = _selinux.SELABEL_X_SELN |
| 712 |
|
|
|
| 713 |
_selinux.SELABEL_X_POLYPROP_swigconstant(_selinux) |
| 714 |
SELABEL_X_POLYPROP = _selinux.SELABEL_X_POLYPROP |
651 |
SELABEL_X_POLYPROP = _selinux.SELABEL_X_POLYPROP |
| 715 |
|
|
|
| 716 |
_selinux.SELABEL_X_POLYSELN_swigconstant(_selinux) |
| 717 |
SELABEL_X_POLYSELN = _selinux.SELABEL_X_POLYSELN |
652 |
SELABEL_X_POLYSELN = _selinux.SELABEL_X_POLYSELN |
| 718 |
|
|
|
| 719 |
_selinux.SELABEL_DB_DATABASE_swigconstant(_selinux) |
| 720 |
SELABEL_DB_DATABASE = _selinux.SELABEL_DB_DATABASE |
653 |
SELABEL_DB_DATABASE = _selinux.SELABEL_DB_DATABASE |
| 721 |
|
|
|
| 722 |
_selinux.SELABEL_DB_SCHEMA_swigconstant(_selinux) |
| 723 |
SELABEL_DB_SCHEMA = _selinux.SELABEL_DB_SCHEMA |
654 |
SELABEL_DB_SCHEMA = _selinux.SELABEL_DB_SCHEMA |
| 724 |
|
|
|
| 725 |
_selinux.SELABEL_DB_TABLE_swigconstant(_selinux) |
| 726 |
SELABEL_DB_TABLE = _selinux.SELABEL_DB_TABLE |
655 |
SELABEL_DB_TABLE = _selinux.SELABEL_DB_TABLE |
| 727 |
|
|
|
| 728 |
_selinux.SELABEL_DB_COLUMN_swigconstant(_selinux) |
| 729 |
SELABEL_DB_COLUMN = _selinux.SELABEL_DB_COLUMN |
656 |
SELABEL_DB_COLUMN = _selinux.SELABEL_DB_COLUMN |
| 730 |
|
|
|
| 731 |
_selinux.SELABEL_DB_SEQUENCE_swigconstant(_selinux) |
| 732 |
SELABEL_DB_SEQUENCE = _selinux.SELABEL_DB_SEQUENCE |
657 |
SELABEL_DB_SEQUENCE = _selinux.SELABEL_DB_SEQUENCE |
| 733 |
|
|
|
| 734 |
_selinux.SELABEL_DB_VIEW_swigconstant(_selinux) |
| 735 |
SELABEL_DB_VIEW = _selinux.SELABEL_DB_VIEW |
658 |
SELABEL_DB_VIEW = _selinux.SELABEL_DB_VIEW |
| 736 |
|
|
|
| 737 |
_selinux.SELABEL_DB_PROCEDURE_swigconstant(_selinux) |
| 738 |
SELABEL_DB_PROCEDURE = _selinux.SELABEL_DB_PROCEDURE |
659 |
SELABEL_DB_PROCEDURE = _selinux.SELABEL_DB_PROCEDURE |
| 739 |
|
|
|
| 740 |
_selinux.SELABEL_DB_BLOB_swigconstant(_selinux) |
| 741 |
SELABEL_DB_BLOB = _selinux.SELABEL_DB_BLOB |
660 |
SELABEL_DB_BLOB = _selinux.SELABEL_DB_BLOB |
| 742 |
|
|
|
| 743 |
_selinux.SELABEL_DB_TUPLE_swigconstant(_selinux) |
| 744 |
SELABEL_DB_TUPLE = _selinux.SELABEL_DB_TUPLE |
661 |
SELABEL_DB_TUPLE = _selinux.SELABEL_DB_TUPLE |
| 745 |
|
|
|
| 746 |
_selinux.SELABEL_DB_LANGUAGE_swigconstant(_selinux) |
| 747 |
SELABEL_DB_LANGUAGE = _selinux.SELABEL_DB_LANGUAGE |
662 |
SELABEL_DB_LANGUAGE = _selinux.SELABEL_DB_LANGUAGE |
| 748 |
|
|
|
| 749 |
_selinux.SELABEL_DB_EXCEPTION_swigconstant(_selinux) |
| 750 |
SELABEL_DB_EXCEPTION = _selinux.SELABEL_DB_EXCEPTION |
663 |
SELABEL_DB_EXCEPTION = _selinux.SELABEL_DB_EXCEPTION |
| 751 |
|
|
|
| 752 |
_selinux.SELABEL_DB_DATATYPE_swigconstant(_selinux) |
| 753 |
SELABEL_DB_DATATYPE = _selinux.SELABEL_DB_DATATYPE |
664 |
SELABEL_DB_DATATYPE = _selinux.SELABEL_DB_DATATYPE |
| 754 |
|
665 |
|
| 755 |
def is_selinux_enabled(): |
666 |
def is_selinux_enabled(): |
|
Lines 946-960
Link Here
|
| 946 |
this = _selinux.new_av_decision() |
857 |
this = _selinux.new_av_decision() |
| 947 |
try: |
858 |
try: |
| 948 |
self.this.append(this) |
859 |
self.this.append(this) |
| 949 |
except Exception: |
860 |
except __builtin__.Exception: |
| 950 |
self.this = this |
861 |
self.this = this |
| 951 |
__swig_destroy__ = _selinux.delete_av_decision |
862 |
__swig_destroy__ = _selinux.delete_av_decision |
| 952 |
__del__ = lambda self: None |
863 |
__del__ = lambda self: None |
| 953 |
av_decision_swigregister = _selinux.av_decision_swigregister |
864 |
av_decision_swigregister = _selinux.av_decision_swigregister |
| 954 |
av_decision_swigregister(av_decision) |
865 |
av_decision_swigregister(av_decision) |
| 955 |
|
866 |
|
| 956 |
|
|
|
| 957 |
_selinux.SELINUX_AVD_FLAGS_PERMISSIVE_swigconstant(_selinux) |
| 958 |
SELINUX_AVD_FLAGS_PERMISSIVE = _selinux.SELINUX_AVD_FLAGS_PERMISSIVE |
867 |
SELINUX_AVD_FLAGS_PERMISSIVE = _selinux.SELINUX_AVD_FLAGS_PERMISSIVE |
| 959 |
class selinux_opt(_object): |
868 |
class selinux_opt(_object): |
| 960 |
__swig_setmethods__ = {} |
869 |
__swig_setmethods__ = {} |
|
Lines 975-981
Link Here
|
| 975 |
this = _selinux.new_selinux_opt() |
884 |
this = _selinux.new_selinux_opt() |
| 976 |
try: |
885 |
try: |
| 977 |
self.this.append(this) |
886 |
self.this.append(this) |
| 978 |
except Exception: |
887 |
except __builtin__.Exception: |
| 979 |
self.this = this |
888 |
self.this = this |
| 980 |
__swig_destroy__ = _selinux.delete_selinux_opt |
889 |
__swig_destroy__ = _selinux.delete_selinux_opt |
| 981 |
__del__ = lambda self: None |
890 |
__del__ = lambda self: None |
|
Lines 1013-1039
Link Here
|
| 1013 |
this = _selinux.new_selinux_callback() |
922 |
this = _selinux.new_selinux_callback() |
| 1014 |
try: |
923 |
try: |
| 1015 |
self.this.append(this) |
924 |
self.this.append(this) |
| 1016 |
except Exception: |
925 |
except __builtin__.Exception: |
| 1017 |
self.this = this |
926 |
self.this = this |
| 1018 |
__swig_destroy__ = _selinux.delete_selinux_callback |
927 |
__swig_destroy__ = _selinux.delete_selinux_callback |
| 1019 |
__del__ = lambda self: None |
928 |
__del__ = lambda self: None |
| 1020 |
selinux_callback_swigregister = _selinux.selinux_callback_swigregister |
929 |
selinux_callback_swigregister = _selinux.selinux_callback_swigregister |
| 1021 |
selinux_callback_swigregister(selinux_callback) |
930 |
selinux_callback_swigregister(selinux_callback) |
| 1022 |
|
931 |
|
| 1023 |
|
|
|
| 1024 |
_selinux.SELINUX_CB_LOG_swigconstant(_selinux) |
| 1025 |
SELINUX_CB_LOG = _selinux.SELINUX_CB_LOG |
932 |
SELINUX_CB_LOG = _selinux.SELINUX_CB_LOG |
| 1026 |
|
|
|
| 1027 |
_selinux.SELINUX_CB_AUDIT_swigconstant(_selinux) |
| 1028 |
SELINUX_CB_AUDIT = _selinux.SELINUX_CB_AUDIT |
933 |
SELINUX_CB_AUDIT = _selinux.SELINUX_CB_AUDIT |
| 1029 |
|
|
|
| 1030 |
_selinux.SELINUX_CB_VALIDATE_swigconstant(_selinux) |
| 1031 |
SELINUX_CB_VALIDATE = _selinux.SELINUX_CB_VALIDATE |
934 |
SELINUX_CB_VALIDATE = _selinux.SELINUX_CB_VALIDATE |
| 1032 |
|
|
|
| 1033 |
_selinux.SELINUX_CB_SETENFORCE_swigconstant(_selinux) |
| 1034 |
SELINUX_CB_SETENFORCE = _selinux.SELINUX_CB_SETENFORCE |
935 |
SELINUX_CB_SETENFORCE = _selinux.SELINUX_CB_SETENFORCE |
| 1035 |
|
|
|
| 1036 |
_selinux.SELINUX_CB_POLICYLOAD_swigconstant(_selinux) |
| 1037 |
SELINUX_CB_POLICYLOAD = _selinux.SELINUX_CB_POLICYLOAD |
936 |
SELINUX_CB_POLICYLOAD = _selinux.SELINUX_CB_POLICYLOAD |
| 1038 |
|
937 |
|
| 1039 |
def selinux_get_callback(type): |
938 |
def selinux_get_callback(type): |
|
Lines 1043-1062
Link Here
|
| 1043 |
def selinux_set_callback(type, cb): |
942 |
def selinux_set_callback(type, cb): |
| 1044 |
return _selinux.selinux_set_callback(type, cb) |
943 |
return _selinux.selinux_set_callback(type, cb) |
| 1045 |
selinux_set_callback = _selinux.selinux_set_callback |
944 |
selinux_set_callback = _selinux.selinux_set_callback |
| 1046 |
|
|
|
| 1047 |
_selinux.SELINUX_ERROR_swigconstant(_selinux) |
| 1048 |
SELINUX_ERROR = _selinux.SELINUX_ERROR |
945 |
SELINUX_ERROR = _selinux.SELINUX_ERROR |
| 1049 |
|
|
|
| 1050 |
_selinux.SELINUX_WARNING_swigconstant(_selinux) |
| 1051 |
SELINUX_WARNING = _selinux.SELINUX_WARNING |
946 |
SELINUX_WARNING = _selinux.SELINUX_WARNING |
| 1052 |
|
|
|
| 1053 |
_selinux.SELINUX_INFO_swigconstant(_selinux) |
| 1054 |
SELINUX_INFO = _selinux.SELINUX_INFO |
947 |
SELINUX_INFO = _selinux.SELINUX_INFO |
| 1055 |
|
|
|
| 1056 |
_selinux.SELINUX_AVC_swigconstant(_selinux) |
| 1057 |
SELINUX_AVC = _selinux.SELINUX_AVC |
948 |
SELINUX_AVC = _selinux.SELINUX_AVC |
| 1058 |
|
|
|
| 1059 |
_selinux.SELINUX_TRANS_DIR_swigconstant(_selinux) |
| 1060 |
SELINUX_TRANS_DIR = _selinux.SELINUX_TRANS_DIR |
949 |
SELINUX_TRANS_DIR = _selinux.SELINUX_TRANS_DIR |
| 1061 |
|
950 |
|
| 1062 |
def security_compute_av(scon, tcon, tclass, requested, avd): |
951 |
def security_compute_av(scon, tcon, tclass, requested, avd): |
|
Lines 1153-1159
Link Here
|
| 1153 |
this = _selinux.new_SELboolean() |
1042 |
this = _selinux.new_SELboolean() |
| 1154 |
try: |
1043 |
try: |
| 1155 |
self.this.append(this) |
1044 |
self.this.append(this) |
| 1156 |
except Exception: |
1045 |
except __builtin__.Exception: |
| 1157 |
self.this = this |
1046 |
self.this = this |
| 1158 |
__swig_destroy__ = _selinux.delete_SELboolean |
1047 |
__swig_destroy__ = _selinux.delete_SELboolean |
| 1159 |
__del__ = lambda self: None |
1048 |
__del__ = lambda self: None |
|
Lines 1243-1249
Link Here
|
| 1243 |
this = _selinux.new_security_class_mapping() |
1132 |
this = _selinux.new_security_class_mapping() |
| 1244 |
try: |
1133 |
try: |
| 1245 |
self.this.append(this) |
1134 |
self.this.append(this) |
| 1246 |
except Exception: |
1135 |
except __builtin__.Exception: |
| 1247 |
self.this = this |
1136 |
self.this = this |
| 1248 |
__swig_destroy__ = _selinux.delete_security_class_mapping |
1137 |
__swig_destroy__ = _selinux.delete_security_class_mapping |
| 1249 |
__del__ = lambda self: None |
1138 |
__del__ = lambda self: None |
|
Lines 1282-1295
Link Here
|
| 1282 |
def print_access_vector(tclass, av): |
1171 |
def print_access_vector(tclass, av): |
| 1283 |
return _selinux.print_access_vector(tclass, av) |
1172 |
return _selinux.print_access_vector(tclass, av) |
| 1284 |
print_access_vector = _selinux.print_access_vector |
1173 |
print_access_vector = _selinux.print_access_vector |
| 1285 |
|
|
|
| 1286 |
_selinux.MATCHPATHCON_BASEONLY_swigconstant(_selinux) |
| 1287 |
MATCHPATHCON_BASEONLY = _selinux.MATCHPATHCON_BASEONLY |
1174 |
MATCHPATHCON_BASEONLY = _selinux.MATCHPATHCON_BASEONLY |
| 1288 |
|
|
|
| 1289 |
_selinux.MATCHPATHCON_NOTRANS_swigconstant(_selinux) |
| 1290 |
MATCHPATHCON_NOTRANS = _selinux.MATCHPATHCON_NOTRANS |
1175 |
MATCHPATHCON_NOTRANS = _selinux.MATCHPATHCON_NOTRANS |
| 1291 |
|
|
|
| 1292 |
_selinux.MATCHPATHCON_VALIDATE_swigconstant(_selinux) |
| 1293 |
MATCHPATHCON_VALIDATE = _selinux.MATCHPATHCON_VALIDATE |
1176 |
MATCHPATHCON_VALIDATE = _selinux.MATCHPATHCON_VALIDATE |
| 1294 |
|
1177 |
|
| 1295 |
def set_matchpathcon_flags(flags): |
1178 |
def set_matchpathcon_flags(flags): |