public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: libselinux/setenforce test update audit-rules package dependency for RHEL10+ and making test fail if 'auditctl' is not present on the system
@ 2026-09-11 13:23 Jan Onderka
  0 siblings, 0 replies; only message in thread
From: Jan Onderka @ 2026-09-11 13:23 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 8e7a591a84ac7f07728906b7ddbe315d79f88960
Author : Jan Onderka <jonderka@redhat.com>
Date   : 2025-12-18T16:20:58+01:00
Stats  : +5/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/tests/selinux/c/8e7a591a84ac7f07728906b7ddbe315d79f88960?branch=pr775-checkpolicy-revdeps

Log:
libselinux/setenforce test update audit-rules package dependency for RHEL10+ and making test fail if 'auditctl' is not present on the system

---
diff --git a/libselinux/setenforce/main.fmf b/libselinux/setenforce/main.fmf
index 900021b..c45ed37 100644
--- a/libselinux/setenforce/main.fmf
+++ b/libselinux/setenforce/main.fmf
@@ -26,6 +26,10 @@ adjust+:
   - enabled: false
     when: distro == rhel-4, rhel-5
     continue: false
+  - when: distro > rhel-9
+    recommend+:
+      - audit-rules
+    because: since RHEL 10 package audit was split and early packages have wrong dependency
 extra-nitrate: TC#0543754
 extra-summary: /CoreOS/libselinux/Sanity/setenforce
 extra-task: /CoreOS/libselinux/Sanity/setenforce

diff --git a/libselinux/setenforce/runtest.sh b/libselinux/setenforce/runtest.sh
index a4140d3..7bddb5d 100755
--- a/libselinux/setenforce/runtest.sh
+++ b/libselinux/setenforce/runtest.sh
@@ -50,6 +50,7 @@ rlJournalStart
     rlPhaseEnd
 
     rlPhaseStartTest "basic use"
+        rlRun "which auditctl" 0 "'auditctl' have to be present for proper functioning, failing test otherwise"
         START_DATE_TIME=`date "+%m/%d/%Y %T"`
         sleep 1
         rlRun "setenforce 1"

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

only message in thread, other threads:[~2026-09-11 13:23 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:23 [tests/selinux] pr775-checkpolicy-revdeps: libselinux/setenforce test update audit-rules package dependency for RHEL10+ and making test fail if 'auditctl' is not present on the system Jan Onderka

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