apparmor/utils/test
Christian Boltz 40e24e9b29 Write unix rules when saving a profile
r2637 added support for parsing unix rules, but forgot to add write
support. The result was that a profile lost its unix rules when it was
saved.

This patch adds the write_unix_rules() and write_unix() functions (based
on the write_pivot_root() and write_pivot_root_rules() functions) and
makes sure they get called at the right place.

The cleanprof testcase gets an unix rule added to ensure it's not
deleted when writing the profile. (Note that minitools_test.py is not
part of the default "make check", however I always run it.)


References: https://bugs.launchpad.net/apparmor/+bug/1522938
            https://bugzilla.opensuse.org/show_bug.cgi?id=954104



Acked-by: Tyler Hicks <tyhicks@canonical.com> for trunk, 2.10 and 2.9.
2015-12-17 23:51:29 +01:00
..
aa_test.py Add some tests for logparser.py based on the log lines from 2015-01-18 14:57:10 +01:00
cleanprof_test.in Write unix rules when saving a profile 2015-12-17 23:51:29 +01:00
cleanprof_test.out Write unix rules when saving a profile 2015-12-17 23:51:29 +01:00
common_test.py Enable testloops for nosetests 2015-04-22 22:03:36 +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 utils/test/Makefile: add libapparmor to PYTHONPATH 2015-11-18 13:46:26 +01:00
minitools_test.py Update comments in minitools_test.py 2015-11-18 20:39:03 +01: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 cherrypick from trunk: 2015-03-31 16:24:31 -05:00
test-aa.py Several fixes for variable handling 2015-12-12 13:02:06 +01:00
test-aamode.py aamode.py - fix LOG_MODE_RE 2014-12-01 22:49:54 +01:00
test-dbus_parse.py Subject: utils tests: restructure DBUS parse tests 2014-09-03 18:26:19 -07:00
test-example.py Enable testloops for nosetests 2015-04-22 22:03:36 +02:00
test-logparser.py Accept more log formats in logparser.py 2015-10-03 20:24:24 +02:00
test-mount_parse.py utils tests: restructure mount parse tests 2014-09-03 18:28:18 -07: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:10:59 +02:00
test-severity.py fix "unknown capability: CAP_whatever" in aa-logprof 2014-11-14 02:27:33 +01: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