public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Vit Mojzis <vmojzis@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] pr775-checkpolicy-revdeps: load_policy: accommodate changes in policy load audit message
Date: Fri, 11 Sep 2026 13:17:30 GMT	[thread overview]
Message-ID: <178913265017.1.1286796995486138661.tests-selinux-beb6ea9a50ff@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-09-11 13:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178913265017.1.1286796995486138661.tests-selinux-beb6ea9a50ff@fedoraproject.org \
    --to=vmojzis@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox