newer versions of apparmor that support multi-transaction have this xpass case fixed
Signed-off-by: John Johansen <[email protected]> --- tests/regression/apparmor/query_label.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/regression/apparmor/query_label.sh b/tests/regression/apparmor/query_label.sh index e9028f1..44e1e8a 100755 --- a/tests/regression/apparmor/query_label.sh +++ b/tests/regression/apparmor/query_label.sh @@ -213,8 +213,13 @@ querytest "QUERY dbus (svc receive)" fail $dbus_svc_query genqueryprofile "file," expect allow perms file exec,write,read,append,create,delete,setattr,getattr,chmod,chown,link,linksubset,lock,exec_mmap -querytest "QUERY file (all base perms #1)" xpass /anything -querytest "QUERY file (all base perms #2)" xpass /everything +if [ "$(kernel_features query/label/multi_transaction)" == "true" ] ; then + querytest "QUERY file (all base perms #1)" pass /anything + querytest "QUERY file (all base perms #2)" pass /everything +else + querytest "QUERY file (all base perms #1)" xpass /anything + querytest "QUERY file (all base perms #2)" xpass /everything +fi genqueryprofile "/etc/passwd r," expect allow -- 2.11.0 -- AppArmor mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
