apparmor/utils/test
Christian Boltz 902f88b0bb Add and use logprof_header() and logprof_header_localvars() in *Rule classes
BaseRule:
- add logprof_header() - sets the 'Qualifier' (audit, allow/deny) header
  if a qualifier is specified, calls logprof_header_localvars() and then
  returns an array of headers to display in aa-logprof and aa-mergeprof
- add logprof_header_localvars() - dummy function that needs to be
  implemented in the child classes

NetworkRule: add logprof_header_localvars() - adds 'Network Family'
and 'Socket Type' to the headers

CapabilityRule: add logprof_header_localvars() - adds 'Capability' to
the headers

Also change aa-mergeprof to use rule_obj.logprof_header() for network
and capability rules. This means deleting lots of lines (that moved to
the *Rule classes) and also deleting the last differences between
capabiltiy and network rules.

Finally add tests for the newly added functions.


Acked-by: Steve Beattie <steve@nxnw.org>
2015-06-06 14:04:11 +02:00
..
aa_test.py Add some tests for logparser.py based on the log lines from 2015-01-18 14:55:15 +01:00
cleanprof_test.in Merge in Kshitij Gupta <kgupta8592@gmail.com>'s rewrite of the 2014-02-12 15:54:00 -08:00
cleanprof_test.out Merge in Kshitij Gupta <kgupta8592@gmail.com>'s rewrite of the 2014-02-12 15:54:00 -08:00
common_test.py Add tempdir and tempfile handling to AATest 2015-05-29 12:55:38 +02:00
config_test.py Set PYTHONPATH=.. in runtests-py3.sh to make sure the tests use the in- 2014-07-22 21:25:25 +02:00
easyprof.conf This patchset is broken into 4 parts: 2012-05-07 22:37:48 -07:00
logprof.conf Update perl abstraction, logprof.conf, severity.db and tests for Debian/Ubuntu 2014-08-20 19:14:24 -05:00
Makefile Entire tree: makefile cruft removal 2015-01-23 15:52:09 -08:00
minitools_test.py test if aa-enforce removes force-complain symlinks 2014-09-26 22:03:14 +02:00
regex_tests.ini Ensure the that the {**,} and {,**} regexs are being properly parsed by 2014-08-14 10:51:42 -07:00
runtests-py2.sh utils/tests: fix bashisms in runtests-py2.sh 2014-09-03 13:00:33 -07:00
runtests-py3.sh fix utils/test/runtests-py*.sh exitcode 2014-10-03 11:48:21 +02:00
severity.db Update perl abstraction, logprof.conf, severity.db and tests for Debian/Ubuntu 2014-08-20 19:14:24 -05:00
severity_broken.db Update perl abstraction, logprof.conf, severity.db and tests for Debian/Ubuntu 2014-08-20 19:14:24 -05:00
test-aa-decode.py utils: make all tests consistent in verbosity 2014-07-25 17:49:06 -07:00
test-aa-easyprof.py implement tests for --include-templates-dir and --include-policy-groups-dir 2015-03-27 16:34:32 -05:00
test-aa.py let parse_profile_data() check for in-file duplicate profiles 2015-05-29 13:00:32 +02:00
test-aamode.py Raise an exception if sub_str_to_mode() is called with invalid mode 2015-02-03 12:47:36 +01:00
test-baserule.py Add and use logprof_header() and logprof_header_localvars() in *Rule classes 2015-06-06 14:04:11 +02:00
test-capability.py Add and use logprof_header() and logprof_header_localvars() in *Rule classes 2015-06-06 14:04:11 +02:00
test-change_profile.py Add tests for ChangeProfileRule and ChangeProfileRuleset 2015-05-28 22:23:32 +02:00
test-dbus_parse.py Subject: utils tests: restructure DBUS parse tests 2014-09-03 18:26:19 -07:00
test-example.py Add tempdir and tempfile handling to AATest 2015-05-29 12:55:38 +02:00
test-logparser.py logparser.py: change mask only for path events 2015-04-16 01:50:35 +02:00
test-mount_parse.py utils tests: restructure mount parse tests 2014-09-03 18:28:18 -07:00
test-network.py Add and use logprof_header() and logprof_header_localvars() in *Rule classes 2015-06-06 14:04:11 +02:00
test-pivot_root_parse.py utils tests: restructure pivotroot parse tests 2014-09-03 18:31:09 -07:00
test-ptrace_parse.py utils tests: restructure ptrace parse tests 2014-09-03 18:32:59 -07:00
test-regex_matches.py Split off RE_PROFILE_NAME and RE_PROFILE_PATH from RE_PROFILE_START 2015-05-09 01:09:08 +02:00
test-severity.py Implement severity() in CapabilityRule 2015-06-06 13:59:11 +02:00
test-signal_parse.py utils tests: restructure signal parse tests 2014-09-03 18:36:11 -07:00
test-unix_parse.py utils tests: restructure Unix Parse tests 2014-09-03 18:24:57 -07:00