public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: load_policy: accommodate changes in policy load audit message
@ 2026-09-11 13:17 Vit Mojzis
0 siblings, 0 replies; only message in thread
From: Vit Mojzis @ 2026-09-11 13:17 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : beb6ea9a50ff7b684b0894aef3b8f5bcd4b1f921
Author : Vit Mojzis <vmojzis@redhat.com>
Date : 2019-03-13T15:28:33+01:00
Stats : +12/-2 in 1 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/beb6ea9a50ff7b684b0894aef3b8f5bcd4b1f921?branch=pr775-checkpolicy-revdeps
Log:
load_policy: accommodate changes in policy load audit message
---
diff --git a/policycoreutils/load_policy/runtest.sh b/policycoreutils/load_policy/runtest.sh
index 2a77654..c9f98a1 100755
--- a/policycoreutils/load_policy/runtest.sh
+++ b/policycoreutils/load_policy/runtest.sh
@@ -57,7 +57,12 @@ rlJournalStart
if rlIsRHEL ; then
rlRun "ausearch -m MAC_POLICY_LOAD -i -ts ${START_DATE_TIME} | grep load_policy"
fi
- rlRun "ausearch -m MAC_POLICY_LOAD -i -ts ${START_DATE_TIME} | grep 'policy loaded'"
+ if rhIsRHEL 5 6 7 ; then
+ rlRun "ausearch -m MAC_POLICY_LOAD -i -ts ${START_DATE_TIME} | grep 'policy loaded'"
+ else
+ # we assume that audit message has a different format now (does not contain "policy loaded")
+ rlRun "ausearch -m MAC_POLICY_LOAD -i -ts ${START_DATE_TIME} | grep 'type=MAC_POLICY_LOAD'"
+ fi
rlRun "umount ${SELINUX_FS_MOUNT}"
rlRun "grep -i selinux /proc/mounts" 1
START_DATE_TIME=`date "+%m/%d/%Y %T"`
@@ -68,7 +73,12 @@ rlJournalStart
if rlIsRHEL ; then
rlRun "ausearch -m MAC_POLICY_LOAD -i -ts ${START_DATE_TIME} | grep load_policy"
fi
- rlRun "ausearch -m MAC_POLICY_LOAD -i -ts ${START_DATE_TIME} | grep 'policy loaded'"
+ if rhIsRHEL 5 6 7 ; then
+ rlRun "ausearch -m MAC_POLICY_LOAD -i -ts ${START_DATE_TIME} | grep 'policy loaded'"
+ else
+ # we assume that audit message has a different format now (does not contain "policy loaded")
+ rlRun "ausearch -m MAC_POLICY_LOAD -i -ts ${START_DATE_TIME} | grep 'type=MAC_POLICY_LOAD'"
+ fi
rlRun "dmesg | grep -i selinux"
rlPhaseEnd
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-11 13:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 13:17 [tests/selinux] pr775-checkpolicy-revdeps: load_policy: accommodate changes in policy load audit message Vit Mojzis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox