/usr/lib/python2.7/dist-packages/setools/seaudit.py is in python-setools 3.3.8+20151215-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_seaudit', [dirname(__file__)])
except ImportError:
import _seaudit
return _seaudit
if fp is not None:
try:
_mod = imp.load_module('_seaudit', fp, pathname, description)
finally:
fp.close()
return _mod
_seaudit = swig_import_helper()
del swig_import_helper
else:
import _seaudit
del version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if (name == "thisown"):
return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if (not static):
if _newclass:
object.__setattr__(self, name, value)
else:
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr_nondynamic(self, class_type, name, static=1):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
if (not static):
return object.__getattr__(self, name)
else:
raise AttributeError(name)
def _swig_getattr(self, class_type, name):
return _swig_getattr_nondynamic(self, class_type, name, 0)
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except AttributeError:
class _object:
pass
_newclass = 0
import apol
import qpol
class tm_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, tm_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, tm_t, name)
__repr__ = _swig_repr
__swig_setmethods__["tm_sec"] = _seaudit.tm_t_tm_sec_set
__swig_getmethods__["tm_sec"] = _seaudit.tm_t_tm_sec_get
if _newclass:
tm_sec = _swig_property(_seaudit.tm_t_tm_sec_get, _seaudit.tm_t_tm_sec_set)
__swig_setmethods__["tm_min"] = _seaudit.tm_t_tm_min_set
__swig_getmethods__["tm_min"] = _seaudit.tm_t_tm_min_get
if _newclass:
tm_min = _swig_property(_seaudit.tm_t_tm_min_get, _seaudit.tm_t_tm_min_set)
__swig_setmethods__["tm_hour"] = _seaudit.tm_t_tm_hour_set
__swig_getmethods__["tm_hour"] = _seaudit.tm_t_tm_hour_get
if _newclass:
tm_hour = _swig_property(_seaudit.tm_t_tm_hour_get, _seaudit.tm_t_tm_hour_set)
__swig_setmethods__["tm_mday"] = _seaudit.tm_t_tm_mday_set
__swig_getmethods__["tm_mday"] = _seaudit.tm_t_tm_mday_get
if _newclass:
tm_mday = _swig_property(_seaudit.tm_t_tm_mday_get, _seaudit.tm_t_tm_mday_set)
__swig_setmethods__["tm_mon"] = _seaudit.tm_t_tm_mon_set
__swig_getmethods__["tm_mon"] = _seaudit.tm_t_tm_mon_get
if _newclass:
tm_mon = _swig_property(_seaudit.tm_t_tm_mon_get, _seaudit.tm_t_tm_mon_set)
__swig_setmethods__["tm_year"] = _seaudit.tm_t_tm_year_set
__swig_getmethods__["tm_year"] = _seaudit.tm_t_tm_year_get
if _newclass:
tm_year = _swig_property(_seaudit.tm_t_tm_year_get, _seaudit.tm_t_tm_year_set)
__swig_setmethods__["tm_wday"] = _seaudit.tm_t_tm_wday_set
__swig_getmethods__["tm_wday"] = _seaudit.tm_t_tm_wday_get
if _newclass:
tm_wday = _swig_property(_seaudit.tm_t_tm_wday_get, _seaudit.tm_t_tm_wday_set)
__swig_setmethods__["tm_yday"] = _seaudit.tm_t_tm_yday_set
__swig_getmethods__["tm_yday"] = _seaudit.tm_t_tm_yday_get
if _newclass:
tm_yday = _swig_property(_seaudit.tm_t_tm_yday_get, _seaudit.tm_t_tm_yday_set)
__swig_setmethods__["tm_isdst"] = _seaudit.tm_t_tm_isdst_set
__swig_getmethods__["tm_isdst"] = _seaudit.tm_t_tm_isdst_get
if _newclass:
tm_isdst = _swig_property(_seaudit.tm_t_tm_isdst_get, _seaudit.tm_t_tm_isdst_set)
def __init__(self):
this = _seaudit.new_tm_t()
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _seaudit.delete_tm_t
__del__ = lambda self: None
tm_t_swigregister = _seaudit.tm_t_swigregister
tm_t_swigregister(tm_t)
def libseaudit_get_version():
return _seaudit.libseaudit_get_version()
libseaudit_get_version = _seaudit.libseaudit_get_version
_seaudit.SEAUDIT_LOG_TYPE_INVALID_swigconstant(_seaudit)
SEAUDIT_LOG_TYPE_INVALID = _seaudit.SEAUDIT_LOG_TYPE_INVALID
_seaudit.SEAUDIT_LOG_TYPE_SYSLOG_swigconstant(_seaudit)
SEAUDIT_LOG_TYPE_SYSLOG = _seaudit.SEAUDIT_LOG_TYPE_SYSLOG
_seaudit.SEAUDIT_LOG_TYPE_AUDITD_swigconstant(_seaudit)
SEAUDIT_LOG_TYPE_AUDITD = _seaudit.SEAUDIT_LOG_TYPE_AUDITD
class seaudit_log_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, seaudit_log_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, seaudit_log_t, name)
__repr__ = _swig_repr
def __init__(self):
this = _seaudit.new_seaudit_log_t()
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _seaudit.delete_seaudit_log_t
__del__ = lambda self: None
def clear(self):
return _seaudit.seaudit_log_t_clear(self)
def get_users(self):
return _seaudit.seaudit_log_t_get_users(self)
def get_roles(self):
return _seaudit.seaudit_log_t_get_roles(self)
def get_types(self):
return _seaudit.seaudit_log_t_get_types(self)
def get_classes(self):
return _seaudit.seaudit_log_t_get_classes(self)
seaudit_log_t_swigregister = _seaudit.seaudit_log_t_swigregister
seaudit_log_t_swigregister(seaudit_log_t)
_seaudit.SEAUDIT_MESSAGE_TYPE_INVALID_swigconstant(_seaudit)
SEAUDIT_MESSAGE_TYPE_INVALID = _seaudit.SEAUDIT_MESSAGE_TYPE_INVALID
_seaudit.SEAUDIT_MESSAGE_TYPE_BOOL_swigconstant(_seaudit)
SEAUDIT_MESSAGE_TYPE_BOOL = _seaudit.SEAUDIT_MESSAGE_TYPE_BOOL
_seaudit.SEAUDIT_MESSAGE_TYPE_AVC_swigconstant(_seaudit)
SEAUDIT_MESSAGE_TYPE_AVC = _seaudit.SEAUDIT_MESSAGE_TYPE_AVC
_seaudit.SEAUDIT_MESSAGE_TYPE_LOAD_swigconstant(_seaudit)
SEAUDIT_MESSAGE_TYPE_LOAD = _seaudit.SEAUDIT_MESSAGE_TYPE_LOAD
class seaudit_message_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, seaudit_message_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, seaudit_message_t, name)
__repr__ = _swig_repr
def __init__(self):
this = _seaudit.new_seaudit_message_t()
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _seaudit.delete_seaudit_message_t
__del__ = lambda self: None
def get_type(self):
return _seaudit.seaudit_message_t_get_type(self)
def get_data(self):
return _seaudit.seaudit_message_t_get_data(self)
def get_host(self):
return _seaudit.seaudit_message_t_get_host(self)
def get_time(self):
return _seaudit.seaudit_message_t_get_time(self)
def to_string(self):
return _seaudit.seaudit_message_t_to_string(self)
def to_string_html(self):
return _seaudit.seaudit_message_t_to_string_html(self)
def to_misc_string(self):
return _seaudit.seaudit_message_t_to_misc_string(self)
seaudit_message_t_swigregister = _seaudit.seaudit_message_t_swigregister
seaudit_message_t_swigregister(seaudit_message_t)
def seaudit_message_from_void(x):
return _seaudit.seaudit_message_from_void(x)
seaudit_message_from_void = _seaudit.seaudit_message_from_void
class seaudit_load_message_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, seaudit_load_message_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, seaudit_load_message_t, name)
__repr__ = _swig_repr
def __init__(self):
this = _seaudit.new_seaudit_load_message_t()
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _seaudit.delete_seaudit_load_message_t
__del__ = lambda self: None
seaudit_load_message_t_swigregister = _seaudit.seaudit_load_message_t_swigregister
seaudit_load_message_t_swigregister(seaudit_load_message_t)
def seaudit_load_message_from_void(msg):
return _seaudit.seaudit_load_message_from_void(msg)
seaudit_load_message_from_void = _seaudit.seaudit_load_message_from_void
class seaudit_bool_message_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, seaudit_bool_message_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, seaudit_bool_message_t, name)
__repr__ = _swig_repr
def __init__(self, msg):
this = _seaudit.new_seaudit_bool_message_t(msg)
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _seaudit.delete_seaudit_bool_message_t
__del__ = lambda self: None
seaudit_bool_message_t_swigregister = _seaudit.seaudit_bool_message_t_swigregister
seaudit_bool_message_t_swigregister(seaudit_bool_message_t)
def seaudit_bool_message_from_void(msg):
return _seaudit.seaudit_bool_message_from_void(msg)
seaudit_bool_message_from_void = _seaudit.seaudit_bool_message_from_void
_seaudit.SEAUDIT_AVC_UNKNOWN_swigconstant(_seaudit)
SEAUDIT_AVC_UNKNOWN = _seaudit.SEAUDIT_AVC_UNKNOWN
_seaudit.SEAUDIT_AVC_DENIED_swigconstant(_seaudit)
SEAUDIT_AVC_DENIED = _seaudit.SEAUDIT_AVC_DENIED
_seaudit.SEAUDIT_AVC_GRANTED_swigconstant(_seaudit)
SEAUDIT_AVC_GRANTED = _seaudit.SEAUDIT_AVC_GRANTED
class seaudit_avc_message_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, seaudit_avc_message_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, seaudit_avc_message_t, name)
__repr__ = _swig_repr
def __init__(self):
this = _seaudit.new_seaudit_avc_message_t()
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _seaudit.delete_seaudit_avc_message_t
__del__ = lambda self: None
def get_message_type(self):
return _seaudit.seaudit_avc_message_t_get_message_type(self)
def get_timestamp_nano(self):
return _seaudit.seaudit_avc_message_t_get_timestamp_nano(self)
def get_source_user(self):
return _seaudit.seaudit_avc_message_t_get_source_user(self)
def get_source_role(self):
return _seaudit.seaudit_avc_message_t_get_source_role(self)
def get_source_type(self):
return _seaudit.seaudit_avc_message_t_get_source_type(self)
def get_target_user(self):
return _seaudit.seaudit_avc_message_t_get_target_user(self)
def get_target_role(self):
return _seaudit.seaudit_avc_message_t_get_target_role(self)
def get_target_type(self):
return _seaudit.seaudit_avc_message_t_get_target_type(self)
def get_object_class(self):
return _seaudit.seaudit_avc_message_t_get_object_class(self)
def get_perm(self):
return _seaudit.seaudit_avc_message_t_get_perm(self)
def get_exe(self):
return _seaudit.seaudit_avc_message_t_get_exe(self)
def get_comm(self):
return _seaudit.seaudit_avc_message_t_get_comm(self)
def get_name(self):
return _seaudit.seaudit_avc_message_t_get_name(self)
def get_pid(self):
return _seaudit.seaudit_avc_message_t_get_pid(self)
def get_inode(self):
return _seaudit.seaudit_avc_message_t_get_inode(self)
def get_path(self):
return _seaudit.seaudit_avc_message_t_get_path(self)
def get_dev(self):
return _seaudit.seaudit_avc_message_t_get_dev(self)
def get_netif(self):
return _seaudit.seaudit_avc_message_t_get_netif(self)
def get_port(self):
return _seaudit.seaudit_avc_message_t_get_port(self)
def get_laddr(self):
return _seaudit.seaudit_avc_message_t_get_laddr(self)
def get_lport(self):
return _seaudit.seaudit_avc_message_t_get_lport(self)
def get_faddr(self):
return _seaudit.seaudit_avc_message_t_get_faddr(self)
def get_fport(self):
return _seaudit.seaudit_avc_message_t_get_fport(self)
def get_saddr(self):
return _seaudit.seaudit_avc_message_t_get_saddr(self)
def get_sport(self):
return _seaudit.seaudit_avc_message_t_get_sport(self)
def get_daddr(self):
return _seaudit.seaudit_avc_message_t_get_daddr(self)
def get_dport(self):
return _seaudit.seaudit_avc_message_t_get_dport(self)
def get_key(self):
return _seaudit.seaudit_avc_message_t_get_key(self)
def get_cap(self):
return _seaudit.seaudit_avc_message_t_get_cap(self)
seaudit_avc_message_t_swigregister = _seaudit.seaudit_avc_message_t_swigregister
seaudit_avc_message_t_swigregister(seaudit_avc_message_t)
def seaudit_avc_message_from_void(msg):
return _seaudit.seaudit_avc_message_from_void(msg)
seaudit_avc_message_from_void = _seaudit.seaudit_avc_message_from_void
def seaudit_log_parse(log, syslog):
return _seaudit.seaudit_log_parse(log, syslog)
seaudit_log_parse = _seaudit.seaudit_log_parse
def seaudit_log_parse_buffer(log, buffer):
return _seaudit.seaudit_log_parse_buffer(log, buffer)
seaudit_log_parse_buffer = _seaudit.seaudit_log_parse_buffer
_seaudit.SEAUDIT_FILTER_MATCH_ALL_swigconstant(_seaudit)
SEAUDIT_FILTER_MATCH_ALL = _seaudit.SEAUDIT_FILTER_MATCH_ALL
_seaudit.SEAUDIT_FILTER_MATCH_ANY_swigconstant(_seaudit)
SEAUDIT_FILTER_MATCH_ANY = _seaudit.SEAUDIT_FILTER_MATCH_ANY
_seaudit.SEAUDIT_FILTER_VISIBLE_SHOW_swigconstant(_seaudit)
SEAUDIT_FILTER_VISIBLE_SHOW = _seaudit.SEAUDIT_FILTER_VISIBLE_SHOW
_seaudit.SEAUDIT_FILTER_VISIBLE_HIDE_swigconstant(_seaudit)
SEAUDIT_FILTER_VISIBLE_HIDE = _seaudit.SEAUDIT_FILTER_VISIBLE_HIDE
_seaudit.SEAUDIT_FILTER_DATE_MATCH_BEFORE_swigconstant(_seaudit)
SEAUDIT_FILTER_DATE_MATCH_BEFORE = _seaudit.SEAUDIT_FILTER_DATE_MATCH_BEFORE
_seaudit.SEAUDIT_FILTER_DATE_MATCH_AFTER_swigconstant(_seaudit)
SEAUDIT_FILTER_DATE_MATCH_AFTER = _seaudit.SEAUDIT_FILTER_DATE_MATCH_AFTER
_seaudit.SEAUDIT_FILTER_DATE_MATCH_BETWEEN_swigconstant(_seaudit)
SEAUDIT_FILTER_DATE_MATCH_BETWEEN = _seaudit.SEAUDIT_FILTER_DATE_MATCH_BETWEEN
class seaudit_filter_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, seaudit_filter_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, seaudit_filter_t, name)
__repr__ = _swig_repr
def __init__(self, *args):
this = _seaudit.new_seaudit_filter_t(*args)
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _seaudit.delete_seaudit_filter_t
__del__ = lambda self: None
def save(self, path):
return _seaudit.seaudit_filter_t_save(self, path)
def set_match(self, match):
return _seaudit.seaudit_filter_t_set_match(self, match)
def get_match(self):
return _seaudit.seaudit_filter_t_get_match(self)
def set_name(self, name):
return _seaudit.seaudit_filter_t_set_name(self, name)
def get_name(self):
return _seaudit.seaudit_filter_t_get_name(self)
def set_description(self, description):
return _seaudit.seaudit_filter_t_set_description(self, description)
def get_description(self):
return _seaudit.seaudit_filter_t_get_description(self)
def set_strict(self, is_strict):
return _seaudit.seaudit_filter_t_set_strict(self, is_strict)
def get_strict(self):
return _seaudit.seaudit_filter_t_get_strict(self)
def set_source_user(self, v):
return _seaudit.seaudit_filter_t_set_source_user(self, v)
def get_source_user(self):
return _seaudit.seaudit_filter_t_get_source_user(self)
def set_source_role(self, v):
return _seaudit.seaudit_filter_t_set_source_role(self, v)
def get_source_role(self):
return _seaudit.seaudit_filter_t_get_source_role(self)
def set_source_type(self, v):
return _seaudit.seaudit_filter_t_set_source_type(self, v)
def get_source_type(self):
return _seaudit.seaudit_filter_t_get_source_type(self)
def set_target_user(self, v):
return _seaudit.seaudit_filter_t_set_target_user(self, v)
def get_target_user(self):
return _seaudit.seaudit_filter_t_get_target_user(self)
def set_target_role(self, v):
return _seaudit.seaudit_filter_t_set_target_role(self, v)
def get_target_role(self):
return _seaudit.seaudit_filter_t_get_target_role(self)
def set_target_type(self, v):
return _seaudit.seaudit_filter_t_set_target_type(self, v)
def get_target_type(self):
return _seaudit.seaudit_filter_t_get_target_type(self)
def set_target_class(self, v):
return _seaudit.seaudit_filter_t_set_target_class(self, v)
def get_target_class(self):
return _seaudit.seaudit_filter_t_get_target_class(self)
def set_permission(self, name):
return _seaudit.seaudit_filter_t_set_permission(self, name)
def get_permission(self):
return _seaudit.seaudit_filter_t_get_permission(self)
def set_executable(self, name):
return _seaudit.seaudit_filter_t_set_executable(self, name)
def get_executable(self):
return _seaudit.seaudit_filter_t_get_executable(self)
def set_host(self, name):
return _seaudit.seaudit_filter_t_set_host(self, name)
def get_host(self):
return _seaudit.seaudit_filter_t_get_host(self)
def set_path(self, path):
return _seaudit.seaudit_filter_t_set_path(self, path)
def get_path(self):
return _seaudit.seaudit_filter_t_get_path(self)
def set_command(self, name):
return _seaudit.seaudit_filter_t_set_command(self, name)
def set_inode(self, inode):
return _seaudit.seaudit_filter_t_set_inode(self, inode)
def get_inode(self):
return _seaudit.seaudit_filter_t_get_inode(self)
def set_pid(self, pid):
return _seaudit.seaudit_filter_t_set_pid(self, pid)
def get_pid(self):
return _seaudit.seaudit_filter_t_get_pid(self)
def get_command(self):
return _seaudit.seaudit_filter_t_get_command(self)
def set_anyaddr(self, name):
return _seaudit.seaudit_filter_t_set_anyaddr(self, name)
def get_anyaddr(self):
return _seaudit.seaudit_filter_t_get_anyaddr(self)
def set_anyport(self, port):
return _seaudit.seaudit_filter_t_set_anyport(self, port)
def get_anyport(self):
return _seaudit.seaudit_filter_t_get_anyport(self)
def set_laddr(self, name):
return _seaudit.seaudit_filter_t_set_laddr(self, name)
def get_laddr(self):
return _seaudit.seaudit_filter_t_get_laddr(self)
def set_lport(self, port):
return _seaudit.seaudit_filter_t_set_lport(self, port)
def get_lport(self):
return _seaudit.seaudit_filter_t_get_lport(self)
def set_faddr(self, name):
return _seaudit.seaudit_filter_t_set_faddr(self, name)
def get_faddr(self):
return _seaudit.seaudit_filter_t_get_faddr(self)
def set_fport(self, port):
return _seaudit.seaudit_filter_t_set_fport(self, port)
def get_fport(self):
return _seaudit.seaudit_filter_t_get_fport(self)
def set_saddr(self, name):
return _seaudit.seaudit_filter_t_set_saddr(self, name)
def get_saddr(self):
return _seaudit.seaudit_filter_t_get_saddr(self)
def set_sport(self, port):
return _seaudit.seaudit_filter_t_set_sport(self, port)
def get_sport(self):
return _seaudit.seaudit_filter_t_get_sport(self)
def set_daddr(self, name):
return _seaudit.seaudit_filter_t_set_daddr(self, name)
def get_daddr(self):
return _seaudit.seaudit_filter_t_get_daddr(self)
def set_dport(self, port):
return _seaudit.seaudit_filter_t_set_dport(self, port)
def get_dport(self):
return _seaudit.seaudit_filter_t_get_dport(self)
def set_port(self, port):
return _seaudit.seaudit_filter_t_set_port(self, port)
def get_port(self):
return _seaudit.seaudit_filter_t_get_port(self)
def set_netif(self, name):
return _seaudit.seaudit_filter_t_set_netif(self, name)
def get_netif(self):
return _seaudit.seaudit_filter_t_get_netif(self)
def set_key(self, key):
return _seaudit.seaudit_filter_t_set_key(self, key)
def get_key(self):
return _seaudit.seaudit_filter_t_get_key(self)
def set_cap(self, cap):
return _seaudit.seaudit_filter_t_set_cap(self, cap)
def get_cap(self):
return _seaudit.seaudit_filter_t_get_cap(self)
def set_message_type(self, mtype):
return _seaudit.seaudit_filter_t_set_message_type(self, mtype)
def get_message_type(self):
return _seaudit.seaudit_filter_t_get_message_type(self)
def set_date(self, start, end, match):
return _seaudit.seaudit_filter_t_set_date(self, start, end, match)
def get_start_date(self):
return _seaudit.seaudit_filter_t_get_start_date(self)
def get_end_date(self):
return _seaudit.seaudit_filter_t_get_end_date(self)
def get_date_match(self):
return _seaudit.seaudit_filter_t_get_date_match(self)
seaudit_filter_t_swigregister = _seaudit.seaudit_filter_t_swigregister
seaudit_filter_t_swigregister(seaudit_filter_t)
def seaudit_filter_create_from_file(filename):
return _seaudit.seaudit_filter_create_from_file(filename)
seaudit_filter_create_from_file = _seaudit.seaudit_filter_create_from_file
def seaudit_filter_from_void(x):
return _seaudit.seaudit_filter_from_void(x)
seaudit_filter_from_void = _seaudit.seaudit_filter_from_void
class seaudit_sort_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, seaudit_sort_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, seaudit_sort_t, name)
__repr__ = _swig_repr
def __init__(self, *args):
this = _seaudit.new_seaudit_sort_t(*args)
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _seaudit.delete_seaudit_sort_t
__del__ = lambda self: None
seaudit_sort_t_swigregister = _seaudit.seaudit_sort_t_swigregister
seaudit_sort_t_swigregister(seaudit_sort_t)
def seaudit_sort_by_message_type(direction):
return _seaudit.seaudit_sort_by_message_type(direction)
seaudit_sort_by_message_type = _seaudit.seaudit_sort_by_message_type
def seaudit_sort_by_date(direction):
return _seaudit.seaudit_sort_by_date(direction)
seaudit_sort_by_date = _seaudit.seaudit_sort_by_date
def seaudit_sort_by_host(direction):
return _seaudit.seaudit_sort_by_host(direction)
seaudit_sort_by_host = _seaudit.seaudit_sort_by_host
def seaudit_sort_by_permission(direction):
return _seaudit.seaudit_sort_by_permission(direction)
seaudit_sort_by_permission = _seaudit.seaudit_sort_by_permission
def seaudit_sort_by_source_user(direction):
return _seaudit.seaudit_sort_by_source_user(direction)
seaudit_sort_by_source_user = _seaudit.seaudit_sort_by_source_user
def seaudit_sort_by_source_role(direction):
return _seaudit.seaudit_sort_by_source_role(direction)
seaudit_sort_by_source_role = _seaudit.seaudit_sort_by_source_role
def seaudit_sort_by_source_type(direction):
return _seaudit.seaudit_sort_by_source_type(direction)
seaudit_sort_by_source_type = _seaudit.seaudit_sort_by_source_type
def seaudit_sort_by_target_user(direction):
return _seaudit.seaudit_sort_by_target_user(direction)
seaudit_sort_by_target_user = _seaudit.seaudit_sort_by_target_user
def seaudit_sort_by_target_role(direction):
return _seaudit.seaudit_sort_by_target_role(direction)
seaudit_sort_by_target_role = _seaudit.seaudit_sort_by_target_role
def seaudit_sort_by_target_type(direction):
return _seaudit.seaudit_sort_by_target_type(direction)
seaudit_sort_by_target_type = _seaudit.seaudit_sort_by_target_type
def seaudit_sort_by_object_class(direction):
return _seaudit.seaudit_sort_by_object_class(direction)
seaudit_sort_by_object_class = _seaudit.seaudit_sort_by_object_class
def seaudit_sort_by_executable(direction):
return _seaudit.seaudit_sort_by_executable(direction)
seaudit_sort_by_executable = _seaudit.seaudit_sort_by_executable
def seaudit_sort_by_command(direction):
return _seaudit.seaudit_sort_by_command(direction)
seaudit_sort_by_command = _seaudit.seaudit_sort_by_command
def seaudit_sort_by_name(direction):
return _seaudit.seaudit_sort_by_name(direction)
seaudit_sort_by_name = _seaudit.seaudit_sort_by_name
def seaudit_sort_by_path(direction):
return _seaudit.seaudit_sort_by_path(direction)
seaudit_sort_by_path = _seaudit.seaudit_sort_by_path
def seaudit_sort_by_device(direction):
return _seaudit.seaudit_sort_by_device(direction)
seaudit_sort_by_device = _seaudit.seaudit_sort_by_device
def seaudit_sort_by_inode(direction):
return _seaudit.seaudit_sort_by_inode(direction)
seaudit_sort_by_inode = _seaudit.seaudit_sort_by_inode
def seaudit_sort_by_pid(direction):
return _seaudit.seaudit_sort_by_pid(direction)
seaudit_sort_by_pid = _seaudit.seaudit_sort_by_pid
def seaudit_sort_by_port(direction):
return _seaudit.seaudit_sort_by_port(direction)
seaudit_sort_by_port = _seaudit.seaudit_sort_by_port
def seaudit_sort_by_laddr(direction):
return _seaudit.seaudit_sort_by_laddr(direction)
seaudit_sort_by_laddr = _seaudit.seaudit_sort_by_laddr
def seaudit_sort_by_lport(direction):
return _seaudit.seaudit_sort_by_lport(direction)
seaudit_sort_by_lport = _seaudit.seaudit_sort_by_lport
def seaudit_sort_by_faddr(direction):
return _seaudit.seaudit_sort_by_faddr(direction)
seaudit_sort_by_faddr = _seaudit.seaudit_sort_by_faddr
def seaudit_sort_by_fport(direction):
return _seaudit.seaudit_sort_by_fport(direction)
seaudit_sort_by_fport = _seaudit.seaudit_sort_by_fport
def seaudit_sort_by_saddr(direction):
return _seaudit.seaudit_sort_by_saddr(direction)
seaudit_sort_by_saddr = _seaudit.seaudit_sort_by_saddr
def seaudit_sort_by_sport(direction):
return _seaudit.seaudit_sort_by_sport(direction)
seaudit_sort_by_sport = _seaudit.seaudit_sort_by_sport
def seaudit_sort_by_daddr(direction):
return _seaudit.seaudit_sort_by_daddr(direction)
seaudit_sort_by_daddr = _seaudit.seaudit_sort_by_daddr
def seaudit_sort_by_dport(direction):
return _seaudit.seaudit_sort_by_dport(direction)
seaudit_sort_by_dport = _seaudit.seaudit_sort_by_dport
def seaudit_sort_by_key(direction):
return _seaudit.seaudit_sort_by_key(direction)
seaudit_sort_by_key = _seaudit.seaudit_sort_by_key
def seaudit_sort_by_cap(direction):
return _seaudit.seaudit_sort_by_cap(direction)
seaudit_sort_by_cap = _seaudit.seaudit_sort_by_cap
class seaudit_model_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, seaudit_model_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, seaudit_model_t, name)
__repr__ = _swig_repr
def __init__(self, *args):
this = _seaudit.new_seaudit_model_t(*args)
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _seaudit.delete_seaudit_model_t
__del__ = lambda self: None
def save(self, path):
return _seaudit.seaudit_model_t_save(self, path)
def get_name(self):
return _seaudit.seaudit_model_t_get_name(self)
def set_name(self, name):
return _seaudit.seaudit_model_t_set_name(self, name)
def append_log(self, slog):
return _seaudit.seaudit_model_t_append_log(self, slog)
def append_filter(self, filter):
return _seaudit.seaudit_model_t_append_filter(self, filter)
def get_filters(self):
return _seaudit.seaudit_model_t_get_filters(self)
def remove_filter(self, filter):
return _seaudit.seaudit_model_t_remove_filter(self, filter)
def set_filter_match(self, match):
return _seaudit.seaudit_model_t_set_filter_match(self, match)
def get_filter_match(self):
return _seaudit.seaudit_model_t_get_filter_match(self)
def set_filter_visible(self, vis):
return _seaudit.seaudit_model_t_set_filter_visible(self, vis)
def get_filter_visible(self):
return _seaudit.seaudit_model_t_get_filter_visible(self)
def append_sort(self, ssort):
return _seaudit.seaudit_model_t_append_sort(self, ssort)
def clear_sorts(self):
return _seaudit.seaudit_model_t_clear_sorts(self)
def is_changed(self):
return _seaudit.seaudit_model_t_is_changed(self)
def get_messages(self, slog):
return _seaudit.seaudit_model_t_get_messages(self, slog)
def get_malformed_messages(self, slog):
return _seaudit.seaudit_model_t_get_malformed_messages(self, slog)
def hide_message(self, message):
return _seaudit.seaudit_model_t_hide_message(self, message)
def get_num_allows(self, slog):
return _seaudit.seaudit_model_t_get_num_allows(self, slog)
def get_num_denies(self, slog):
return _seaudit.seaudit_model_t_get_num_denies(self, slog)
def get_num_bools(self, slog):
return _seaudit.seaudit_model_t_get_num_bools(self, slog)
def get_num_loads(self, slog):
return _seaudit.seaudit_model_t_get_num_loads(self, slog)
seaudit_model_t_swigregister = _seaudit.seaudit_model_t_swigregister
seaudit_model_t_swigregister(seaudit_model_t)
_seaudit.SEAUDIT_REPORT_FORMAT_TEXT_swigconstant(_seaudit)
SEAUDIT_REPORT_FORMAT_TEXT = _seaudit.SEAUDIT_REPORT_FORMAT_TEXT
_seaudit.SEAUDIT_REPORT_FORMAT_HTML_swigconstant(_seaudit)
SEAUDIT_REPORT_FORMAT_HTML = _seaudit.SEAUDIT_REPORT_FORMAT_HTML
class seaudit_report_t(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, seaudit_report_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, seaudit_report_t, name)
__repr__ = _swig_repr
def __init__(self, m):
this = _seaudit.new_seaudit_report_t(m)
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _seaudit.delete_seaudit_report_t
__del__ = lambda self: None
def write(self, slog, path):
return _seaudit.seaudit_report_t_write(self, slog, path)
def set_format(self, slog, format):
return _seaudit.seaudit_report_t_set_format(self, slog, format)
def set_configuration(self, slog, path):
return _seaudit.seaudit_report_t_set_configuration(self, slog, path)
def set_stylesheet(self, slog, path, use_stylesheet):
return _seaudit.seaudit_report_t_set_stylesheet(self, slog, path, use_stylesheet)
def set_malformed(self, slog, do_malformed):
return _seaudit.seaudit_report_t_set_malformed(self, slog, do_malformed)
seaudit_report_t_swigregister = _seaudit.seaudit_report_t_swigregister
seaudit_report_t_swigregister(seaudit_report_t)
# This file is compatible with both classic and new-style classes.
|