diff --git a/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_01.err b/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_01.err new file mode 100644 index 000000000..e69de29bb diff --git a/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_01.in b/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_01.in new file mode 100644 index 000000000..52542253b --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_01.in @@ -0,0 +1 @@ +[ 4584.703379] audit: type=1400 audit(1680266735.359:69): apparmor="DENIED" operation="uring_sqpoll" class="io_uring" profile="/root/apparmor/tests/regression/apparmor/io_uring" pid=1320 comm="io_uring" requested="sqpoll" denied="sqpoll" diff --git a/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_01.out b/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_01.out new file mode 100644 index 000000000..7476dd71a --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_01.out @@ -0,0 +1,13 @@ +START +File: testcase_io_uring_01.in +Event type: AA_RECORD_DENIED +Audit ID: 1680266735.359:69 +Operation: uring_sqpoll +Mask: sqpoll +Denied Mask: sqpoll +Profile: /root/apparmor/tests/regression/apparmor/io_uring +Command: io_uring +PID: 1320 +Class: io_uring +Epoch: 1680266735 +Audit subid: 69 diff --git a/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_01.profile b/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_01.profile new file mode 100644 index 000000000..5b604fc56 --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_01.profile @@ -0,0 +1,4 @@ +/root/apparmor/tests/regression/apparmor/io_uring { + io_uring sqpoll, + +} diff --git a/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_02.err b/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_02.err new file mode 100644 index 000000000..e69de29bb diff --git a/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_02.in b/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_02.in new file mode 100644 index 000000000..8af3ec4f2 --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_02.in @@ -0,0 +1 @@ +[ 4584.491076] audit: type=1400 audit(1680266735.147:63): apparmor="DENIED" operation="uring_override" class="io_uring" profile="/root/apparmor/tests/regression/apparmor/io_uring" pid=1193 comm="io_uring" requested="override_creds" denied="override_creds" tcontext="/root/apparmor/tests/regression/apparmor/io_uring" \ No newline at end of file diff --git a/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_02.out b/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_02.out new file mode 100644 index 000000000..5e7b76673 --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_02.out @@ -0,0 +1,14 @@ +START +File: testcase_io_uring_02.in +Event type: AA_RECORD_DENIED +Audit ID: 1680266735.147:63 +Operation: uring_override +Mask: override_creds +Denied Mask: override_creds +Profile: /root/apparmor/tests/regression/apparmor/io_uring +Peer profile: /root/apparmor/tests/regression/apparmor/io_uring +Command: io_uring +PID: 1193 +Class: io_uring +Epoch: 1680266735 +Audit subid: 63 diff --git a/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_02.profile b/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_02.profile new file mode 100644 index 000000000..431511dc8 --- /dev/null +++ b/libraries/libapparmor/testsuite/test_multi/testcase_io_uring_02.profile @@ -0,0 +1,4 @@ +/root/apparmor/tests/regression/apparmor/io_uring { + io_uring override_creds label=/root/apparmor/tests/regression/apparmor/io_uring, + +} diff --git a/utils/test/test-libapparmor-test_multi.py b/utils/test/test-libapparmor-test_multi.py index 02fe3c7ae..445466bfe 100644 --- a/utils/test/test-libapparmor-test_multi.py +++ b/utils/test/test-libapparmor-test_multi.py @@ -170,6 +170,9 @@ log_to_profile_skip = [ 'testcase_changehat_01', # interactive, asks to add a hat 'testcase_dbus_09', # multiline log not currently supported + + 'testcase_io_uring_01', # io_uring currently no supported + 'testcase_io_uring_02', ] # tests that cause an empty log