From e133a9fc68b599af67e17d7f85bfac899a9692cc Mon Sep 17 00:00:00 2001 From: Georgia Garcia Date: Tue, 22 Aug 2023 09:40:17 -0300 Subject: [PATCH] tests: remove superfluous attach_disconnected flag Merge request https://gitlab.com/apparmor/apparmor/merge_requests/1084 makes it so attach_disconnected.path implies attach_disconnected, so remove superfluous flag from tests. Signed-off-by: Georgia Garcia --- tests/regression/apparmor/attach_disconnected.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regression/apparmor/attach_disconnected.sh b/tests/regression/apparmor/attach_disconnected.sh index 554842955..c63e6611b 100644 --- a/tests/regression/apparmor/attach_disconnected.sh +++ b/tests/regression/apparmor/attach_disconnected.sh @@ -109,11 +109,11 @@ genprofile $file_perm unix:create $socket_perm $att_dis_client:px -- image=$att_ do_test "attach_disconnected" pass $file $att_dis_client $socket $loop_device $new_root $put_old -genprofile $file_perm unix:create $socket_perm $att_dis_client:px -- image=$att_dis_client $file_perm unix:create $socket_perm $create_dir $cap "pivot_root:ALL" "mount:ALL" flag:attach_disconnected flag:attach_disconnected.path=/foo/ +genprofile $file_perm unix:create $socket_perm $att_dis_client:px -- image=$att_dis_client $file_perm unix:create $socket_perm $create_dir $cap "pivot_root:ALL" "mount:ALL" flag:attach_disconnected.path=/foo/ do_test "attach_disconnected.path rule at /" fail $file $att_dis_client $socket $loop_device $new_root $put_old -genprofile $file_perm unix:create $socket_perm $att_dis_client:px -- image=$att_dis_client $file_perm unix:create $socket_perm $create_dir $cap "pivot_root:ALL" "mount:ALL" flag:attach_disconnected flag:attach_disconnected.path=$put_old +genprofile $file_perm unix:create $socket_perm $att_dis_client:px -- image=$att_dis_client $file_perm unix:create $socket_perm $create_dir $cap "pivot_root:ALL" "mount:ALL" flag:attach_disconnected.path=$put_old do_test "attach_disconnected.path" pass $file $att_dis_client $socket $loop_device $new_root $put_old