Skip to content

Commit

Permalink
tests: check for avc denials around daemon-reload
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-nguyen committed Apr 28, 2022
1 parent 96241ae commit b4fdda9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/kola/systemd/systemd-daemon-reload-avc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
# kola: { "exclusive": true }
# Verify there are no AVC denial before and after reloading the systemd manager configuration
#
# https://bugzilla.redhat.com/show_bug.cgi?id=1924869
set -xeuo pipefail

. $KOLA_EXT_DATA/commonlib.sh

if ausearch -m avc | grep 'avc: denied'; then
fatal "Found AVC denials"
fi

systemctl daemon-reload

if ausearch -m avc | grep 'avc: denied'; then
fatal "Found AVC denials after systemctl daemon-reload"
fi

0 comments on commit b4fdda9

Please sign in to comment.