public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: enable the systemd-oomd test for RHEL-10
@ 2026-09-11 13:23 Milos Malik
0 siblings, 0 replies; only message in thread
From: Milos Malik @ 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 : ff7b5b91471b4e7267476045911d97bc66f4424f
Author : Milos Malik <mmalik@redhat.com>
Date : 2025-10-25T08:33:23+02:00
Stats : +9/-4 in 3 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/ff7b5b91471b4e7267476045911d97bc66f4424f?branch=pr775-checkpolicy-revdeps
Log:
enable the systemd-oomd test for RHEL-10
Because the systemd-oomd package is available on RHEL-10, the TC
is also relevant there.
---
diff --git a/selinux-policy/systemd-oomd/Makefile b/selinux-policy/systemd-oomd/Makefile
index d8c2bcd..f1cb2e5 100644
--- a/selinux-policy/systemd-oomd/Makefile
+++ b/selinux-policy/systemd-oomd/Makefile
@@ -60,6 +60,7 @@ $(METADATA): Makefile
@echo "Requires: policycoreutils" >> $(METADATA)
@echo "Requires: selinux-policy" >> $(METADATA)
@echo "Requires: selinux-policy-targeted" >> $(METADATA)
+ @echo "Requires: systemd-oomd" >> $(METADATA)
@echo "RhtsRequires: library(selinux-policy/common)" >> $(METADATA)
@echo "Priority: Normal" >> $(METADATA)
@echo "License: GPLv2" >> $(METADATA)
@@ -73,7 +74,7 @@ $(METADATA): Makefile
@echo "Releases: -RHEL7" >> $(METADATA)
@echo "Releases: -RHEL8" >> $(METADATA)
@echo "Releases: -RHEL9" >> $(METADATA)
- @echo "Releases: -RHEL10" >> $(METADATA)
+ @echo "Bug: RHEL-106998" >> $(METADATA) # RHEL-10
rhts-lint $(METADATA)
diff --git a/selinux-policy/systemd-oomd/main.fmf b/selinux-policy/systemd-oomd/main.fmf
index 149583d..3131c08 100644
--- a/selinux-policy/systemd-oomd/main.fmf
+++ b/selinux-policy/systemd-oomd/main.fmf
@@ -18,6 +18,7 @@ recommend:
- selinux-policy
- selinux-policy-targeted
- setools-console
+ - systemd-oomd
environment:
AVC_ERROR: +no_avc_check
duration: 5m
@@ -29,11 +30,12 @@ tag:
- NoRHEL7
- NoRHEL8
- NoRHEL9
- - NoRHEL10
- TierCandidatesPASS
- targeted
- NoRHIVOS
+link:
+ - verifies: https://issues.redhat.com/browse/RHEL-106998
adjust+:
- enabled: false
- when: distro == rhel-4, rhel-5, rhel-6, rhel-7, rhel-8, rhel-9, rhel-10
+ when: distro == rhel-4, rhel-5, rhel-6, rhel-7, rhel-8, rhel-9
continue: false
diff --git a/selinux-policy/systemd-oomd/runtest.sh b/selinux-policy/systemd-oomd/runtest.sh
index 6ab389b..dd3e54f 100755
--- a/selinux-policy/systemd-oomd/runtest.sh
+++ b/selinux-policy/systemd-oomd/runtest.sh
@@ -30,6 +30,7 @@
. /usr/share/beakerlib/beakerlib.sh || exit 1
PACKAGE="selinux-policy"
+SERVICE_PACKAGE="systemd-oomd"
SERVICE_NAME="systemd-oomd"
FILE_PATH="/usr/lib/systemd/systemd-oomd"
FILE_CONTEXT="systemd_oomd_exec_t"
@@ -61,7 +62,7 @@ rlJournalStart
rlSESetTimestamp
rlRun "cat /etc/system-release"
rlRun "uname -a"
- rlRun "rpm -qa \"selinux-*\" \"systemd*\"|sort"
+ rlRun "rpm -qa | grep -e selinux-policy -e systemd | sort"
rlPhaseEnd
rlPhaseStartTest "SELinux contexts and rules"
@@ -146,3 +147,4 @@ EOF
rlPhaseEnd
rlJournalPrintText
rlJournalEnd
+
^ 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: enable the systemd-oomd test for RHEL-10 Milos Malik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox