2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-01 06:45:38 +00:00

tests: regression: mark disconnected-complain-mode tests as xpass

Without the kernel patches in
https://lists.ubuntu.com/archives/apparmor/2025-March/013533.html
these tests will fail. This means spread ci for the majority of
kernels will fail.

Indeed disconnected paths failing in complain mode was always expected
behavior until the above kernel patches were posted.

Instead mark these patches as xpass, so spread CI can pass. These
tests will need to be updated to make them detect if the kernel
supports complain mode with disconnected paths.

Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen
2025-04-04 23:42:41 -07:00
parent ddd9af1aec
commit 1aca4a1dcf

View File

@@ -37,13 +37,13 @@ mkdir "$shadowing_dir"
echo "corn" > "${shadowing_dir}/cornh"
genprofile -C cap:sys_admin
runchecktest "Complain mode profile and disconnected path mounts (mount(2))" pass $tmpdir old
runchecktest "Complain mode profile and disconnected path mounts (mount(2))" xpass $tmpdir old
# Use the presence of move_mount as a proxy for new mount syscall availability
if [ ! -f "$bin/move_mount" ]; then
echo " WARNING: move_mount binary was not built, skipping open_tree test ..."
else
runchecktest "Complain mode profile and disconnected path mounts (open_tree(2))" pass $tmpdir open_tree
runchecktest "Complain mode profile and disconnected path mounts (open_tree(2))" xpass $tmpdir open_tree
fi
rm -r "$shadowed_target"
@@ -58,7 +58,7 @@ else
losetup -f "${backing_file_fsmount}" || fatalerror 'Unable to set up loop device'
loop_device="$(/sbin/losetup -n -O NAME -l -j "${backing_file_fsmount}")"
runchecktest "Complain mode profile and disconnected path mounts (fsmount(2))" pass $tmpdir fsmount "${loop_device}"
runchecktest "Complain mode profile and disconnected path mounts (fsmount(2))" xpass $tmpdir fsmount "${loop_device}"
losetup -d "${loop_device}"
rm "${backing_file_fsmount}"