public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Milos Malik <mmalik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] pr775-checkpolicy-revdeps: run stress-ng only if secretmem_t is defined
Date: Fri, 11 Sep 2026 13:22:05 GMT [thread overview]
Message-ID: <178913292532.1.14663225848118234642.tests-selinux-94564f402a10@fedoraproject.org> (raw)
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
reply other threads:[~2026-09-11 13:22 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=178913292532.1.14663225848118234642.tests-selinux-94564f402a10@fedoraproject.org \
--to=mmalik@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