public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: run stress-ng only if secretmem_t is defined
@ 2026-09-11 13:22 Milos Malik
0 siblings, 0 replies; only message in thread
From: Milos Malik @ 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 : 94564f402a100f76ee02c8cef5c2f46362161c74
Author : Milos Malik <mmalik@redhat.com>
Date : 2024-10-07T11:14:08+00:00
Stats : +5/-1 in 3 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/94564f402a100f76ee02c8cef5c2f46362161c74?branch=pr775-checkpolicy-revdeps
Log:
run stress-ng only if secretmem_t is defined
The test phase covers both BZ#2270895 and RHEL-60837 because they
the same. The test phase should not be executed in environments
where the following SELinux type is not defined:
* secretmem_t
---
diff --git a/selinux-policy/anon_inode-and-similar/Makefile b/selinux-policy/anon_inode-and-similar/Makefile
index 9efa34d..69a0f7f 100644
--- a/selinux-policy/anon_inode-and-similar/Makefile
+++ b/selinux-policy/anon_inode-and-similar/Makefile
@@ -70,6 +70,7 @@ $(METADATA): Makefile
@echo "Bug: 2187745" >> $(METADATA) # RHEL-9
@echo "Bug: RHEL-11792" >> $(METADATA) # RHEL-9
@echo "Bug: 2270895" >> $(METADATA) # Fedora 41
+ @echo "Bug: RHEL-60837" >> $(METADATA) # RHEL-10
rhts-lint $(METADATA)
diff --git a/selinux-policy/anon_inode-and-similar/main.fmf b/selinux-policy/anon_inode-and-similar/main.fmf
index 41ffda8..81712be 100644
--- a/selinux-policy/anon_inode-and-similar/main.fmf
+++ b/selinux-policy/anon_inode-and-similar/main.fmf
@@ -39,6 +39,7 @@ link:
- verifies: https://bugzilla.redhat.com/show_bug.cgi?id=2187745
- verifies: https://issues.redhat.com/browse/RHEL-11792
- verifies: https://bugzilla.redhat.com/show_bug.cgi?id=2270895
+ - verifies: https://issues.redhat.com/browse/RHEL-60837
adjust:
- enabled: false
when: distro == rhel-4, rhel-5, rhel-6, rhel-7, rhel-8, centos-stream-8
diff --git a/selinux-policy/anon_inode-and-similar/runtest.sh b/selinux-policy/anon_inode-and-similar/runtest.sh
index 6efbe69..3961d8b 100755
--- a/selinux-policy/anon_inode-and-similar/runtest.sh
+++ b/selinux-policy/anon_inode-and-similar/runtest.sh
@@ -97,13 +97,15 @@ rlJournalStart
rlSESearchRule "allow unconfined_service_t unconfined_service_t : io_uring { cmd } [ ]"
rlPhaseEnd
- rlPhaseStartTest "bz#2270895"
+ if seinfo -t | grep -q secretmem_t ; then
+ rlPhaseStartTest "bz#2270895 + RHEL-60837"
rlSESearchRule "allow unconfined_t secretmem_t : anon_inode { create } [ ]"
rlSESearchRule "allow sysadm_t secretmem_t : anon_inode { create } [ ]"
rlSESearchRule "type_transition unconfined_t unconfined_t : anon_inode secretmem_t [secretmem]"
rlSESearchRule "type_transition sysadm_t sysadm_t : anon_inode secretmem_t [secretmem]"
rlRun "stress-ng --resources 16 --timeout 5 --log-file /dev/null"
rlPhaseEnd
+ fi
rlPhaseStartCleanup
sleep 2
^ 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: run stress-ng only if secretmem_t is defined Milos Malik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox