Skip to content

Commit

Permalink
test: Check for AVC denials in the journal
Browse files Browse the repository at this point in the history
This catches bsc#1232709.
  • Loading branch information
Vogtinator committed Nov 14, 2024
1 parent 769c1fc commit 103c7d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/testscript
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ if restorecon -nvR -e /.snapshots -e /run / | grep -v wtmpdb | grep "Would relab
echo "Some labels aren't correct?"
exit 1
fi
# Check that there are no SELinux denials.
# Can't use ausearch here, that would miss initial boot events.
if journalctl -b | grep -w avc | grep -w denied; then
echo "SELinux denials found"
exit 1
fi
mount -t 9p -o trans=virtio tmpdir /mnt
touch /mnt/done
umount /mnt
Expand Down

0 comments on commit 103c7d0

Please sign in to comment.