mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
tests: fix test specifying path on attach disconnected
Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
This commit is contained in:
parent
5b139521aa
commit
32307601a0
1 changed files with 3 additions and 1 deletions
|
@ -113,7 +113,9 @@ genprofile $file_perm unix:create $socket_perm $att_dis_client:px -- image=$att_
|
|||
|
||||
do_test "attach_disconnected.path rule at /" fail $file $att_dis_client $socket $loop_device $new_root $put_old
|
||||
|
||||
do_test "attach_disconnected.path" pass "/foo/$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
|
||||
|
||||
do_test "attach_disconnected.path" 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:no_attach_disconnected
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue