From 19ddb3bfa4980028ef68566ea1e09b478dac2e4d Mon Sep 17 00:00:00 2001 From: Steve Beattie Date: Fri, 13 Mar 2009 06:39:05 +0000 Subject: [PATCH] Testcases that are vaguely related to https://bugs.launchpad.net/bugs/340183 --- .../test_multi/{testcase1.err => testcase01.err} | 0 .../test_multi/{testcase1.in => testcase01.in} | 0 .../test_multi/{testcase1.out => testcase01.out} | 2 +- .../libapparmor/testsuite/test_multi/testcase02.err | 0 .../libapparmor/testsuite/test_multi/testcase02.in | 1 + .../libapparmor/testsuite/test_multi/testcase02.out | 10 ++++++++++ .../libapparmor/testsuite/test_multi/testcase03.err | 0 .../libapparmor/testsuite/test_multi/testcase03.in | 1 + .../libapparmor/testsuite/test_multi/testcase03.out | 10 ++++++++++ .../libapparmor/testsuite/test_multi/testcase04.err | 0 .../libapparmor/testsuite/test_multi/testcase04.in | 1 + .../libapparmor/testsuite/test_multi/testcase04.out | 10 ++++++++++ .../libapparmor/testsuite/test_multi/testcase05.err | 0 .../libapparmor/testsuite/test_multi/testcase05.in | 1 + .../libapparmor/testsuite/test_multi/testcase05.out | 10 ++++++++++ .../libapparmor/testsuite/test_multi/testcase06.err | 0 .../libapparmor/testsuite/test_multi/testcase06.in | 1 + .../libapparmor/testsuite/test_multi/testcase06.out | 10 ++++++++++ .../libapparmor/testsuite/test_multi/testcase07.err | 0 .../libapparmor/testsuite/test_multi/testcase07.in | 1 + .../libapparmor/testsuite/test_multi/testcase07.out | 10 ++++++++++ .../libapparmor/testsuite/test_multi/testcase08.err | 0 .../libapparmor/testsuite/test_multi/testcase08.in | 1 + .../libapparmor/testsuite/test_multi/testcase08.out | 10 ++++++++++ .../libapparmor/testsuite/test_multi/testcase09.err | 0 .../libapparmor/testsuite/test_multi/testcase09.in | 1 + .../libapparmor/testsuite/test_multi/testcase09.out | 10 ++++++++++ .../libapparmor/testsuite/test_multi/testcase10.err | 0 .../libapparmor/testsuite/test_multi/testcase10.in | 1 + .../libapparmor/testsuite/test_multi/testcase10.out | 10 ++++++++++ .../libapparmor/testsuite/test_multi/testcase11.err | 0 .../libapparmor/testsuite/test_multi/testcase11.in | 1 + .../libapparmor/testsuite/test_multi/testcase11.out | 10 ++++++++++ .../libapparmor/testsuite/test_multi/testcase18.err | 0 .../libapparmor/testsuite/test_multi/testcase18.in | 1 + .../libapparmor/testsuite/test_multi/testcase18.out | 13 +++++++++++++ .../libapparmor/testsuite/test_multi/testcase19.err | 0 .../libapparmor/testsuite/test_multi/testcase19.in | 1 + .../libapparmor/testsuite/test_multi/testcase19.out | 13 +++++++++++++ 39 files changed, 139 insertions(+), 1 deletion(-) rename libraries/libapparmor/testsuite/test_multi/{testcase1.err => testcase01.err} (100%) rename libraries/libapparmor/testsuite/test_multi/{testcase1.in => testcase01.in} (100%) rename libraries/libapparmor/testsuite/test_multi/{testcase1.out => testcase01.out} (91%) create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase02.err create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase02.in create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase02.out create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase03.err create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase03.in create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase03.out create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase04.err create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase04.in create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase04.out create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase05.err create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase05.in create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase05.out create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase06.err create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase06.in create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase06.out create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase07.err create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase07.in create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase07.out create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase08.err create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase08.in create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase08.out create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase09.err create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase09.in create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase09.out create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase10.err create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase10.in create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase10.out create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase11.err create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase11.in create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase11.out create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase18.err create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase18.in create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase18.out create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase19.err create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase19.in create mode 100644 libraries/libapparmor/testsuite/test_multi/testcase19.out diff --git a/libraries/libapparmor/testsuite/test_multi/testcase1.err b/libraries/libapparmor/testsuite/test_multi/testcase01.err similarity index 100% rename from libraries/libapparmor/testsuite/test_multi/testcase1.err rename to libraries/libapparmor/testsuite/test_multi/testcase01.err diff --git a/libraries/libapparmor/testsuite/test_multi/testcase1.in b/libraries/libapparmor/testsuite/test_multi/testcase01.in similarity index 100% rename from libraries/libapparmor/testsuite/test_multi/testcase1.in rename to libraries/libapparmor/testsuite/test_multi/testcase01.in diff --git a/libraries/libapparmor/testsuite/test_multi/testcase1.out b/libraries/libapparmor/testsuite/test_multi/testcase01.out similarity index 91% rename from libraries/libapparmor/testsuite/test_multi/testcase1.out rename to libraries/libapparmor/testsuite/test_multi/testcase01.out index 0f23e35a2..c75216c6c 100644 --- a/libraries/libapparmor/testsuite/test_multi/testcase1.out +++ b/libraries/libapparmor/testsuite/test_multi/testcase01.out @@ -1,5 +1,5 @@ START -File: test_multi/testcase1.in +File: test_multi/testcase01.in Event type: AA_RECORD_DENIED Audit ID: 1181057184.959:7 Operation: exec diff --git a/libraries/libapparmor/testsuite/test_multi/testcase02.err b/libraries/libapparmor/testsuite/test_multi/testcase02.err new file mode 100644 index 000000000..e69de29bb diff --git a/libraries/libapparmor/testsuite/test_multi/testcase02.in b/libraries/libapparmor/testsuite/test_multi/testcase02.in new file mode 100644 index 000000000..adc5adb8e --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase02.in @@ -0,0 +1 @@ +Jan 12 13:59:10 jj-amd64 kernel: [ 1157.775350] type=1503 audit(1236891550.807:870): operation="capable" name="setuid" pid=3593 profile="/bin/ping" diff --git a/libraries/libapparmor/testsuite/test_multi/testcase02.out b/libraries/libapparmor/testsuite/test_multi/testcase02.out new file mode 100644 index 000000000..35bf244e3 --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase02.out @@ -0,0 +1,10 @@ +START +File: test_multi/testcase02.in +Event type: AA_RECORD_DENIED +Audit ID: 1236891550.807:870 +Operation: capable +Profile: /bin/ping +Name: setuid +PID: 3593 +Epoch: 1236891550 +Audit subid: 870 diff --git a/libraries/libapparmor/testsuite/test_multi/testcase03.err b/libraries/libapparmor/testsuite/test_multi/testcase03.err new file mode 100644 index 000000000..e69de29bb diff --git a/libraries/libapparmor/testsuite/test_multi/testcase03.in b/libraries/libapparmor/testsuite/test_multi/testcase03.in new file mode 100644 index 000000000..b0bf230fe --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase03.in @@ -0,0 +1 @@ +Feb 12 13:59:10 jj-amd64 kernel: [ 1157.775350] type=1503 audit(1236891550.807:870): operation="capable" name="setuid" pid=3593 profile="/bin/ping" diff --git a/libraries/libapparmor/testsuite/test_multi/testcase03.out b/libraries/libapparmor/testsuite/test_multi/testcase03.out new file mode 100644 index 000000000..524aeeba8 --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase03.out @@ -0,0 +1,10 @@ +START +File: test_multi/testcase03.in +Event type: AA_RECORD_DENIED +Audit ID: 1236891550.807:870 +Operation: capable +Profile: /bin/ping +Name: setuid +PID: 3593 +Epoch: 1236891550 +Audit subid: 870 diff --git a/libraries/libapparmor/testsuite/test_multi/testcase04.err b/libraries/libapparmor/testsuite/test_multi/testcase04.err new file mode 100644 index 000000000..e69de29bb diff --git a/libraries/libapparmor/testsuite/test_multi/testcase04.in b/libraries/libapparmor/testsuite/test_multi/testcase04.in new file mode 100644 index 000000000..a68d2afe9 --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase04.in @@ -0,0 +1 @@ +Mar 12 13:59:10 jj-amd64 kernel: [ 1157.775350] type=1503 audit(1236891550.807:870): operation="capable" name="setuid" pid=3593 profile="/bin/ping" diff --git a/libraries/libapparmor/testsuite/test_multi/testcase04.out b/libraries/libapparmor/testsuite/test_multi/testcase04.out new file mode 100644 index 000000000..f1bfaea5f --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase04.out @@ -0,0 +1,10 @@ +START +File: test_multi/testcase04.in +Event type: AA_RECORD_DENIED +Audit ID: 1236891550.807:870 +Operation: capable +Profile: /bin/ping +Name: setuid +PID: 3593 +Epoch: 1236891550 +Audit subid: 870 diff --git a/libraries/libapparmor/testsuite/test_multi/testcase05.err b/libraries/libapparmor/testsuite/test_multi/testcase05.err new file mode 100644 index 000000000..e69de29bb diff --git a/libraries/libapparmor/testsuite/test_multi/testcase05.in b/libraries/libapparmor/testsuite/test_multi/testcase05.in new file mode 100644 index 000000000..2dfcf250e --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase05.in @@ -0,0 +1 @@ +Apr 12 13:59:10 jj-amd64 kernel: [ 1157.775350] type=1503 audit(1236891550.807:870): operation="capable" name="setuid" pid=3593 profile="/bin/ping" diff --git a/libraries/libapparmor/testsuite/test_multi/testcase05.out b/libraries/libapparmor/testsuite/test_multi/testcase05.out new file mode 100644 index 000000000..e0d2baea6 --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase05.out @@ -0,0 +1,10 @@ +START +File: test_multi/testcase05.in +Event type: AA_RECORD_DENIED +Audit ID: 1236891550.807:870 +Operation: capable +Profile: /bin/ping +Name: setuid +PID: 3593 +Epoch: 1236891550 +Audit subid: 870 diff --git a/libraries/libapparmor/testsuite/test_multi/testcase06.err b/libraries/libapparmor/testsuite/test_multi/testcase06.err new file mode 100644 index 000000000..e69de29bb diff --git a/libraries/libapparmor/testsuite/test_multi/testcase06.in b/libraries/libapparmor/testsuite/test_multi/testcase06.in new file mode 100644 index 000000000..151f1b447 --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase06.in @@ -0,0 +1 @@ +May 12 13:59:10 jj-amd64 kernel: [ 1157.775350] type=1503 audit(1236891550.807:870): operation="capable" name="setuid" pid=3593 profile="/bin/ping" diff --git a/libraries/libapparmor/testsuite/test_multi/testcase06.out b/libraries/libapparmor/testsuite/test_multi/testcase06.out new file mode 100644 index 000000000..4a3643f6f --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase06.out @@ -0,0 +1,10 @@ +START +File: test_multi/testcase06.in +Event type: AA_RECORD_DENIED +Audit ID: 1236891550.807:870 +Operation: capable +Profile: /bin/ping +Name: setuid +PID: 3593 +Epoch: 1236891550 +Audit subid: 870 diff --git a/libraries/libapparmor/testsuite/test_multi/testcase07.err b/libraries/libapparmor/testsuite/test_multi/testcase07.err new file mode 100644 index 000000000..e69de29bb diff --git a/libraries/libapparmor/testsuite/test_multi/testcase07.in b/libraries/libapparmor/testsuite/test_multi/testcase07.in new file mode 100644 index 000000000..71d28d6fe --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase07.in @@ -0,0 +1 @@ +Jun 12 13:59:10 jj-amd64 kernel: [ 1157.775350] type=1503 audit(1236891550.807:870): operation="capable" name="setuid" pid=3593 profile="/bin/ping" diff --git a/libraries/libapparmor/testsuite/test_multi/testcase07.out b/libraries/libapparmor/testsuite/test_multi/testcase07.out new file mode 100644 index 000000000..c8bf9334a --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase07.out @@ -0,0 +1,10 @@ +START +File: test_multi/testcase07.in +Event type: AA_RECORD_DENIED +Audit ID: 1236891550.807:870 +Operation: capable +Profile: /bin/ping +Name: setuid +PID: 3593 +Epoch: 1236891550 +Audit subid: 870 diff --git a/libraries/libapparmor/testsuite/test_multi/testcase08.err b/libraries/libapparmor/testsuite/test_multi/testcase08.err new file mode 100644 index 000000000..e69de29bb diff --git a/libraries/libapparmor/testsuite/test_multi/testcase08.in b/libraries/libapparmor/testsuite/test_multi/testcase08.in new file mode 100644 index 000000000..1ef25735f --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase08.in @@ -0,0 +1 @@ +Jul 12 13:59:10 jj-amd64 kernel: [ 1157.775350] type=1503 audit(1236891550.807:870): operation="capable" name="setuid" pid=3593 profile="/bin/ping" diff --git a/libraries/libapparmor/testsuite/test_multi/testcase08.out b/libraries/libapparmor/testsuite/test_multi/testcase08.out new file mode 100644 index 000000000..91bd628bc --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase08.out @@ -0,0 +1,10 @@ +START +File: test_multi/testcase08.in +Event type: AA_RECORD_DENIED +Audit ID: 1236891550.807:870 +Operation: capable +Profile: /bin/ping +Name: setuid +PID: 3593 +Epoch: 1236891550 +Audit subid: 870 diff --git a/libraries/libapparmor/testsuite/test_multi/testcase09.err b/libraries/libapparmor/testsuite/test_multi/testcase09.err new file mode 100644 index 000000000..e69de29bb diff --git a/libraries/libapparmor/testsuite/test_multi/testcase09.in b/libraries/libapparmor/testsuite/test_multi/testcase09.in new file mode 100644 index 000000000..7990042da --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase09.in @@ -0,0 +1 @@ +Aug 12 13:59:10 jj-amd64 kernel: [ 1157.775350] type=1503 audit(1236891550.807:870): operation="capable" name="setuid" pid=3593 profile="/bin/ping" diff --git a/libraries/libapparmor/testsuite/test_multi/testcase09.out b/libraries/libapparmor/testsuite/test_multi/testcase09.out new file mode 100644 index 000000000..0d8c533dd --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase09.out @@ -0,0 +1,10 @@ +START +File: test_multi/testcase09.in +Event type: AA_RECORD_DENIED +Audit ID: 1236891550.807:870 +Operation: capable +Profile: /bin/ping +Name: setuid +PID: 3593 +Epoch: 1236891550 +Audit subid: 870 diff --git a/libraries/libapparmor/testsuite/test_multi/testcase10.err b/libraries/libapparmor/testsuite/test_multi/testcase10.err new file mode 100644 index 000000000..e69de29bb diff --git a/libraries/libapparmor/testsuite/test_multi/testcase10.in b/libraries/libapparmor/testsuite/test_multi/testcase10.in new file mode 100644 index 000000000..494b965ba --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase10.in @@ -0,0 +1 @@ +Sep 12 13:59:10 jj-amd64 kernel: [ 1157.775350] type=1503 audit(1236891550.807:870): operation="capable" name="setuid" pid=3593 profile="/bin/ping" diff --git a/libraries/libapparmor/testsuite/test_multi/testcase10.out b/libraries/libapparmor/testsuite/test_multi/testcase10.out new file mode 100644 index 000000000..093cedaae --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase10.out @@ -0,0 +1,10 @@ +START +File: test_multi/testcase10.in +Event type: AA_RECORD_DENIED +Audit ID: 1236891550.807:870 +Operation: capable +Profile: /bin/ping +Name: setuid +PID: 3593 +Epoch: 1236891550 +Audit subid: 870 diff --git a/libraries/libapparmor/testsuite/test_multi/testcase11.err b/libraries/libapparmor/testsuite/test_multi/testcase11.err new file mode 100644 index 000000000..e69de29bb diff --git a/libraries/libapparmor/testsuite/test_multi/testcase11.in b/libraries/libapparmor/testsuite/test_multi/testcase11.in new file mode 100644 index 000000000..faf9469e5 --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase11.in @@ -0,0 +1 @@ +Oct 12 13:59:10 jj-amd64 kernel: [ 1157.775350] type=1503 audit(1236891550.807:870): operation="capable" name="setuid" pid=3593 profile="/bin/ping" diff --git a/libraries/libapparmor/testsuite/test_multi/testcase11.out b/libraries/libapparmor/testsuite/test_multi/testcase11.out new file mode 100644 index 000000000..33fd86665 --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase11.out @@ -0,0 +1,10 @@ +START +File: test_multi/testcase11.in +Event type: AA_RECORD_DENIED +Audit ID: 1236891550.807:870 +Operation: capable +Profile: /bin/ping +Name: setuid +PID: 3593 +Epoch: 1236891550 +Audit subid: 870 diff --git a/libraries/libapparmor/testsuite/test_multi/testcase18.err b/libraries/libapparmor/testsuite/test_multi/testcase18.err new file mode 100644 index 000000000..e69de29bb diff --git a/libraries/libapparmor/testsuite/test_multi/testcase18.in b/libraries/libapparmor/testsuite/test_multi/testcase18.in new file mode 100644 index 000000000..fee62052c --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase18.in @@ -0,0 +1 @@ +Nov 11 07:33:07 myhost kernel: [50812.879558] type=1502 audit(1236774787.169:369): operation="inode_permission" requested_mask="::r" denied_mask="::r" fsuid=1000 name="/bin/dash" pid=13726 profile="/home/jamie/foobar.sh" diff --git a/libraries/libapparmor/testsuite/test_multi/testcase18.out b/libraries/libapparmor/testsuite/test_multi/testcase18.out new file mode 100644 index 000000000..bd5e85ba5 --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase18.out @@ -0,0 +1,13 @@ +START +File: test_multi/testcase18.in +Event type: AA_RECORD_ALLOWED +Audit ID: 1236774787.169:369 +Operation: inode_permission +Mask: ::r +Denied Mask: ::r +fsuid: 1000 +Profile: /home/jamie/foobar.sh +Name: /bin/dash +PID: 13726 +Epoch: 1236774787 +Audit subid: 369 diff --git a/libraries/libapparmor/testsuite/test_multi/testcase19.err b/libraries/libapparmor/testsuite/test_multi/testcase19.err new file mode 100644 index 000000000..e69de29bb diff --git a/libraries/libapparmor/testsuite/test_multi/testcase19.in b/libraries/libapparmor/testsuite/test_multi/testcase19.in new file mode 100644 index 000000000..e52581284 --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase19.in @@ -0,0 +1 @@ +Dec 11 07:33:07 myhost kernel: [50812.879606] type=1502 audit(1236774787.169:371): operation="file_mmap" requested_mask="::r" denied_mask="::r" fsuid=1000 name="/bin/dash" pid=13726 profile="/home/jamie/foobar.sh" diff --git a/libraries/libapparmor/testsuite/test_multi/testcase19.out b/libraries/libapparmor/testsuite/test_multi/testcase19.out new file mode 100644 index 000000000..100a8c0fe --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase19.out @@ -0,0 +1,13 @@ +START +File: test_multi/testcase19.in +Event type: AA_RECORD_ALLOWED +Audit ID: 1236774787.169:371 +Operation: file_mmap +Mask: ::r +Denied Mask: ::r +fsuid: 1000 +Profile: /home/jamie/foobar.sh +Name: /bin/dash +PID: 13726 +Epoch: 1236774787 +Audit subid: 371