public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: Fix rhel-9 avc causing deny_rules test failure
@ 2026-09-11 13:22 Amith Kumar
  0 siblings, 0 replies; only message in thread
From: Amith Kumar @ 2026-09-11 13:22 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : tests/selinux
            Branch : pr775-checkpolicy-revdeps
            Commit : 4a8550185cdf1387d6aced4336fde1299cad948d
            Author : Amith Kumar <apeetham@redhat.com>
            Date   : 2025-06-13T05:16:33+05:30
            Stats  : +1/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/4a8550185cdf1387d6aced4336fde1299cad948d?branch=pr775-checkpolicy-revdeps

            Log:
            Fix rhel-9 avc causing deny_rules test failure

The upstream selinux-policy/deny-rules test suite failed during its run
on rhel-9. Cause of failure is an AVC denial triggered by modprobe
command while executing module_load. Fix the test code to address the
AVC & test failure.

Signed-off-by: Amith Kumar <apeetham@redhat.com>

---
diff --git a/selinux-policy/deny-rules/runtest.sh b/selinux-policy/deny-rules/runtest.sh
index 36b5bbc..3464738 100755
--- a/selinux-policy/deny-rules/runtest.sh
+++ b/selinux-policy/deny-rules/runtest.sh
@@ -137,7 +137,7 @@ rlJournalStart
             rlRun "rm -f /etc/ssh/sshd_config.d/001-enable-password.conf"
         fi
         rlRun "service sshd restart"
-        rlSECheckAVC --ignore 'type=AVC .*  denied  { unlink } .* comm=rm .*:sysadm_t:.*:machineid_t:.*tclass=file' --ignore 'type=AVC .*  denied  { module_load } .* comm=modprobe .*:kmod_t:.*:modules_object_t:.*tclass=system'
+        rlSECheckAVC --ignore 'type=AVC .*  denied  { unlink } .* comm=rm .*:sysadm_t:.*:machineid_t:.*tclass=file' --ignore 'type=AVC .*  denied  { module_load } .* comm=modprobe .*:kmod_t:.*:modules_object_t:.*tclass=system' --ignore 'type=AVC.*module_load.*:kmod_t:.*:kmod_t:.*tclass=system'
     rlPhaseEnd
 rlJournalEnd
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-11 13:22 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:22 [tests/selinux] pr775-checkpolicy-revdeps: Fix rhel-9 avc causing deny_rules test failure Amith Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox