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: test if confined nfsdcld runs without SELinux denials
Date: Fri, 11 Sep 2026 13:18:08 GMT [thread overview]
Message-ID: <178913268871.1.10906190889582471996.tests-selinux-5d4b68dee6a3@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 5d4b68dee6a386b4a24cbfc25c5b36504c287223
Author : Milos Malik <mmalik@redhat.com>
Date : 2020-09-01T11:14:48+02:00
Stats : +9/-0 in 2 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/5d4b68dee6a386b4a24cbfc25c5b36504c287223?branch=pr775-checkpolicy-revdeps
Log:
test if confined nfsdcld runs without SELinux denials
The automated TC runs the nfsdcld service and it also checks for
the existence of appropriate SELinux policy rules and definitions.
The TC covers BZ#1834234.
---
diff --git a/selinux-policy/nfsdcld-and-similar/Makefile b/selinux-policy/nfsdcld-and-similar/Makefile
index a0383b2..0de572a 100644
--- a/selinux-policy/nfsdcld-and-similar/Makefile
+++ b/selinux-policy/nfsdcld-and-similar/Makefile
@@ -62,6 +62,7 @@ $(METADATA): Makefile
@echo "Confidential: no" >> $(METADATA)
@echo "Destructive: no" >> $(METADATA)
@echo "Releases: -RHEL4 -RHEL5 -RHEL6 -RHEL7" >> $(METADATA)
+ @echo "Bug: 1834234" >> $(METADATA) # Fedora 32
rhts-lint $(METADATA)
diff --git a/selinux-policy/nfsdcld-and-similar/runtest.sh b/selinux-policy/nfsdcld-and-similar/runtest.sh
index e0e64c2..0fd7a54 100755
--- a/selinux-policy/nfsdcld-and-similar/runtest.sh
+++ b/selinux-policy/nfsdcld-and-similar/runtest.sh
@@ -56,6 +56,14 @@ rlJournalStart
sleep 2
rlPhaseEnd
+ rlPhaseStartTest "bz#1834234"
+ rlSEMatchPathCon "/usr/sbin/nfsdcld" "rpcd_exec_t"
+ rlSESearchRule "allow init_t rpcd_exec_t : file { getattr open read execute } [ ]"
+ rlSESearchRule "type_transition init_t rpcd_exec_t : process rpcd_t"
+ rlSESearchRule "allow init_t rpcd_t : process { transition } [ ]"
+ rlSESearchRule "allow rpcd_t nfsd_fs_t : file { getattr open read } [ ]"
+ rlPhaseEnd
+
rlPhaseStartTest "real scenario -- standalone service"
rlRun "echo ${ROOT_PASSWORD} | passwd --stdin root"
if ! rlSEDefined ${PROCESS_CONTEXT} ; then
reply other threads:[~2026-09-11 13:18 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=178913268871.1.10906190889582471996.tests-selinux-5d4b68dee6a3@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