apparmor/utils/test
Steve Beattie 0e33e27401 utils: add very limited dbus rule support
This patch adds very limited support for very dumb parsing of dbus
rules. Basically, it stores dbus rules as raw strings wrapped in
a class.

There's class structure to indicate how I'd like to see fuller future
support for dbus rules to be implemented and act as a guidepost for
how to handle most rules, moving away from the giant structure of
nested dictionaries. A stub test script is included as well, with a
modification to the make check target to set the PYTHONPATH to point
in the right place.

With this patch, aa-audit, aa-autodep, aa-complain, aa-disable,
and aa-enforce all function for me. aa-logprof and aa-genprof have
functionality issues for me at the moment (one of them dumps a
backtrace even without this patch), and I'm not sure the writing out
of dbus rules is completely implemented for modified profiles.

Signed-off-by: Steve Beattie <steve@nxnw.org>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
2014-03-07 09:58:54 -08:00
..
aa_test.py utils/: fix last make check failure, though the new utils tests need to 2014-02-13 11:32:36 -08: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 Fix up execute permissions that were lost in the merger for some reason. 2014-02-12 16:59:27 -08:00
config_test.py Fix tests for new tools. 2014-02-28 16:09:00 +05:30
easyprof.conf This patchset is broken into 4 parts: 2012-05-07 22:37:48 -07:00
logprof.conf Merge in Kshitij Gupta <kgupta8592@gmail.com>'s rewrite of the 2014-02-12 15:54:00 -08:00
Makefile utils: add very limited dbus rule support 2014-03-07 09:58:54 -08:00
minitools_test.py utils: remove aa-enforce '--remove' option 2014-03-03 14:59:47 -08:00
regex_tests.ini Merge in Kshitij Gupta <kgupta8592@gmail.com>'s rewrite of the 2014-02-12 15:54:00 -08:00
runtests-py2.sh Fix up execute permissions that were lost in the merger for some reason. 2014-02-12 16:59:27 -08:00
runtests-py3.sh Fix up execute permissions that were lost in the merger for some reason. 2014-02-12 16:59:27 -08:00
severity.db Merge in Kshitij Gupta <kgupta8592@gmail.com>'s rewrite of the 2014-02-12 15:54:00 -08:00
severity_broken.db Merge in Kshitij Gupta <kgupta8592@gmail.com>'s rewrite of the 2014-02-12 15:54:00 -08:00
severity_test.py Fix up execute permissions that were lost in the merger for some reason. 2014-02-12 16:59:27 -08:00
test-aa-decode.py utils: fix path in test-aadecode.py and push make check into the test/ 2014-02-27 16:23:35 -08:00
test-aa-easyprof.py utils: don't delete tmpdir when debugging test-aa-easyprof.py 2014-03-06 10:30:14 -08:00
test-dbus_parse.py utils: add very limited dbus rule support 2014-03-07 09:58:54 -08:00