mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 10:07:12 +00:00
regression tests: fix the overlayfs mv test failures
The file being moved from needs rw permissions and not just w permissions Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
parent
f171f5ebc8
commit
63c944a01a
@ -78,14 +78,14 @@ runchecktest "Write file in overlayfs mount (lower)" pass write "${mount_target}
|
||||
runchecktest "Write file in overlayfs mount (upper)" pass write "${mount_target}/upper_file"
|
||||
runchecktest "Write file in overlayfs mount (creat)" pass write "${mount_target}/overlay_file_new"
|
||||
|
||||
genprofile "${mount_target}/old_overlay_file:w" "${mount_target}/new_overlay_file:w"
|
||||
genprofile "${mount_target}/old_overlay_file:rw" "${mount_target}/new_overlay_file:w"
|
||||
touch "${mount_target}/old_overlay_file"
|
||||
runchecktest "Rename file in overlayfs mount (overlay)" pass rename "${mount_target}/old_overlay_file" "${mount_target}/new_overlay_file"
|
||||
rm -f "${mount_target}/old_overlay_file" "${mount_target}/new_overlay_file"
|
||||
|
||||
genprofile "${mount_target}/lower_file:w" "${mount_target}/lower_mv_file:w"
|
||||
genprofile "${mount_target}/lower_file:rw" "${mount_target}/lower_mv_file:w"
|
||||
runchecktest "Rename file in overlayfs mount (lower)" pass rename "${mount_target}/lower_file" "${mount_target}/lower_mv_file"
|
||||
genprofile "${mount_target}/upper_file:w" "${mount_target}/upper_mv_file:w"
|
||||
genprofile "${mount_target}/upper_file:rw" "${mount_target}/upper_mv_file:w"
|
||||
runchecktest "Rename file in overlayfs mount (upper)" pass rename "${mount_target}/upper_file" "${mount_target}/upper_mv_file"
|
||||
|
||||
genprofile "${mount_target}/lower_file_2:w"
|
||||
|
Loading…
x
Reference in New Issue
Block a user