[apparmor] [PATCH 04/20] Add log parser test for change_profile

John Johansen john.johansen at canonical.com
Fri May 29 08:39:10 UTC 2015


Signed-off-by: John Johansen <john.johansen at canonical.com>
---
 .../testsuite/test_multi/testcase_changeprofile_01.err        |  0
 .../testsuite/test_multi/testcase_changeprofile_01.in         |  1 +
 .../testsuite/test_multi/testcase_changeprofile_01.out        | 11 +++++++++++
 3 files changed, 12 insertions(+)
 create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase_changeprofile_01.err
 create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase_changeprofile_01.in
 create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase_changeprofile_01.out

diff --git a/libraries/libapparmor/testsuite/test_multi/testcase_changeprofile_01.err b/libraries/libapparmor/testsuite/test_multi/testcase_changeprofile_01.err
new file mode 100644
index 0000000..e69de29
diff --git a/libraries/libapparmor/testsuite/test_multi/testcase_changeprofile_01.in b/libraries/libapparmor/testsuite/test_multi/testcase_changeprofile_01.in
new file mode 100644
index 0000000..9337c88
--- /dev/null
+++ b/libraries/libapparmor/testsuite/test_multi/testcase_changeprofile_01.in
@@ -0,0 +1 @@
+Sep  9 12:51:36 ubuntu-desktop kernel: [   97.492562] audit: type=1400 audit(1431116353.523:77): apparmor="DENIED" operation="change_profile" profile="/tests/regression/apparmor/changeprofile" pid=3459 comm="changeprofile" target="/tests/regression/apparmor/rename"
diff --git a/libraries/libapparmor/testsuite/test_multi/testcase_changeprofile_01.out b/libraries/libapparmor/testsuite/test_multi/testcase_changeprofile_01.out
new file mode 100644
index 0000000..74b4f71
--- /dev/null
+++ b/libraries/libapparmor/testsuite/test_multi/testcase_changeprofile_01.out
@@ -0,0 +1,11 @@
+START
+File: testcase_changeprofile_01.in
+Event type: AA_RECORD_DENIED
+Audit ID: 1431116353.523:77
+Operation: change_profile
+Profile: /tests/regression/apparmor/changeprofile
+Command: changeprofile
+Name2: /tests/regression/apparmor/rename
+PID: 3459
+Epoch: 1431116353
+Audit subid: 77
-- 
2.1.4




More information about the AppArmor mailing list