apparmor/utils/test
John Johansen 0349cf2d0a libapparmor: logparse: fix RECORD_INVALID for valid log
v2:
- parse partial log line broken at \n
- add testcase_dbus_10.* for partial log line
- remove quotes from  testcasw_dbus_09.profile

The following log format has been seen in the wild, and currently results
in a RECORD_INVALID

    [4835959.046111] audit: type=1107 audit(1561053426.749:186): pid=640 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="ALLOWED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/systemd1" interface="org.freedesktop.systemd1.Manager" member="LookupDynamicUserByName" mask="send" name="org.freedesktop.systemd1" pid=20596 label="/usr/sbin/sshd" peer_pid=1 peer_label="unconfined"
                      exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'

Test parsing the above message with and without the \n embedded between
peer_label= and exec=

Acked-by: Seth Arnold <seth.arnold@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
2019-07-02 01:01:37 -07:00
..
cleanprof_test.in Update and extend cleanprof tests for link rules 2019-04-22 23:41:08 +02:00
cleanprof_test.out Update and extend cleanprof tests for link rules 2019-04-22 23:41:08 +02:00
common_test.py utils: Require apparmor.aa users to call init_aa() 2017-03-02 21:21:53 +00:00
easyprof.conf This patchset is broken into 4 parts: 2012-05-07 22:37:48 -07:00
fake_ldd utils: fixup test-aa.py tests that fail due to usr-merge 2019-02-12 23:17:59 -08:00
logprof.conf utils: Update the logprof.conf in the test dir to point to in-tree paths 2017-03-02 21:21:21 +00:00
Makefile Re-implement aa-notify in Python (Closes: #16) 2019-04-21 18:37:10 +03:00
minitools_test.py change_profile_flags: use ', ' as flags delimiter 2018-07-25 21:33:22 +02: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-cli-bootstrap.py Add tests for shared aa library functions used in command line scripts 2019-04-21 18:37:10 +03:00
test-aa-decode.py Bugfix aa-decode test: Get stderr correctly, don't ignore stderr contents 2019-02-05 00:15:13 +02:00
test-aa-easyprof.py Replace deprecated assertEquals with assertEqual 2019-02-26 21:27:00 +01:00
test-aa-notify.py aa-notify: Use fixed output width in tests so results always look same 2019-04-21 18:37:10 +03:00
test-aa.py parse_profile_start: test with un-named profile 2019-04-22 12:38:38 +02:00
test-aare.py make utils tests less verbose 2018-04-08 20:18:30 +02:00
test-baserule.py make utils tests less verbose 2018-04-08 20:18:30 +02:00
test-capability.py Drop unused 'pid' parameter from ReadLog.__init__() 2019-05-09 17:15:35 +02:00
test-change_profile.py Drop unused 'pid' parameter from ReadLog.__init__() 2019-05-09 17:15:35 +02:00
test-common.py add a split_name() function to split a profile name 2019-05-09 17:15:35 +02:00
test-config.py utils: Update the logprof.conf in the test dir to point to in-tree paths 2017-03-02 21:21:21 +00:00
test-dbus.py Drop unused 'pid' parameter from ReadLog.__init__() 2019-05-09 17:15:35 +02:00
test-example.py add an example for setup_aa() to test-example.py 2019-02-10 23:24:29 +01:00
test-file.py Drop unused 'pid' parameter from ReadLog.__init__() 2019-05-09 17:15:35 +02:00
test-libapparmor-test_multi.py libapparmor: logparse: fix RECORD_INVALID for valid log 2019-07-02 01:01:37 -07:00
test-logparser.py Drop unused 'pid' parameter from ReadLog.__init__() 2019-05-09 17:15:35 +02:00
test-mount_parse.py make utils tests less verbose 2018-04-08 20:18:30 +02:00
test-network.py Revert "utils/test-network.py: fix failing testcase" 2019-06-14 01:05:16 -07:00
test-parser-simple-tests.py Remove 'owner link' tests from list of known-broken tests 2019-04-23 00:22:25 +02:00
test-pivot_root_parse.py make utils tests less verbose 2018-04-08 20:18:30 +02:00
test-profile-list.py Add some tests for complex profile names 2019-03-31 17:34:55 +02:00
test-profile-storage.py extend add_or_remove_flag() to handle str for old flags 2018-07-25 20:59:34 +02:00
test-ptrace.py Drop unused 'pid' parameter from ReadLog.__init__() 2019-05-09 17:15:35 +02:00
test-regex_matches.py make utils tests less verbose 2018-04-08 20:18:30 +02:00
test-rlimit.py Drop unused 'pid' parameter from ReadLog.__init__() 2019-05-09 17:15:35 +02:00
test-severity.py make utils tests less verbose 2018-04-08 20:18:30 +02:00
test-signal.py Drop unused 'pid' parameter from ReadLog.__init__() 2019-05-09 17:15:35 +02:00
test-translations.py Transform handle_children() to ask_exec() 2019-05-09 17:15:35 +02:00
test-unix_parse.py make utils tests less verbose 2018-04-08 20:18:30 +02:00