Skip to content

Commit 6391074

Browse files
committed
Get selinux denials if tests failed
Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent 681d9e1 commit 6391074

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/podman-tests.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,9 @@ if [[ "$TEST_TYPE" == "system" ]]; then
6868
bats /usr/share/podman/test/system/410-selinux.bats
6969
bats /usr/share/podman/test/system/520-checkpoint.bats
7070
fi
71+
72+
# shellcheck disable=SC2181
73+
if [[ $? -ne 0 ]]; then
74+
echo "Fetching AVC denials..."
75+
ausearch -m AVC,USER_AVC,SELINUX_ERR,USER_SELINUX_ERR -ts recent
76+
fi

0 commit comments

Comments
 (0)