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 boothd can talk to kernel via UNIX socket
Date: Fri, 11 Sep 2026 13:21:59 GMT [thread overview]
Message-ID: <178913291961.1.16890148867351928106.tests-selinux-9245b35ac692@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 9245b35ac692573edee14bc98d56d0c4a5ccce5a
Author : Milos Malik <mmalik@redhat.com>
Date : 2024-09-19T10:46:49+00:00
Stats : +9/-1 in 3 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/9245b35ac692573edee14bc98d56d0c4a5ccce5a?branch=pr775-checkpolicy-revdeps
Log:
test if boothd can talk to kernel via UNIX socket
A recent booth + selinux-policy testing revealed that SELinux
prevents the boothd processes from reading the /run/systemd/userdb/
directory and connecting through the io.systemd.DynamicUser socket
stored in it. The TC reproduces the situation.
In order to support the intended boothd functionality, I believe that
SELinux policy should allow these actions. The TC looks for appropriate
policy rules and file context patterns.
The TC covers RHEL-57104 and RHEL-58060.
---
diff --git a/selinux-policy/boothd-and-similar/Makefile b/selinux-policy/boothd-and-similar/Makefile
index 7fd82bb..d78cc89 100644
--- a/selinux-policy/boothd-and-similar/Makefile
+++ b/selinux-policy/boothd-and-similar/Makefile
@@ -50,7 +50,7 @@ $(METADATA): Makefile
@echo "Name: $(TEST)" >> $(METADATA)
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
@echo "Path: $(TEST_DIR)" >> $(METADATA)
- @echo "Description: the service was running as initrc_t or init_t, now it is confined by SELinux" >> $(METADATA)
+ @echo "Description: SELinux interferes with boothd and related programs" >> $(METADATA)
@echo "Type: Regression" >> $(METADATA)
@echo "TestTime: 10m" >> $(METADATA)
@echo "RunFor: selinux-policy" >> $(METADATA)
@@ -64,6 +64,8 @@ $(METADATA): Makefile
@echo "Destructive: no" >> $(METADATA)
@echo "Releases: -RHEL4 -RHEL5 -RHEL6 -RHEL7" >> $(METADATA)
@echo "Bug: RHEL-45907" >> $(METADATA) # RHEL-10
+ @echo "Bug: RHEL-57104" >> $(METADATA) # RHEL-9
+ @echo "Bug: RHEL-58060" >> $(METADATA) # RHEL-10
rhts-lint $(METADATA)
diff --git a/selinux-policy/boothd-and-similar/main.fmf b/selinux-policy/boothd-and-similar/main.fmf
index 6d1791b..90edcac 100644
--- a/selinux-policy/boothd-and-similar/main.fmf
+++ b/selinux-policy/boothd-and-similar/main.fmf
@@ -32,6 +32,8 @@ tag:
- NoRHIVOS
link:
- verifies: https://issues.redhat.com/browse/RHEL-45907
+ - verifies: https://issues.redhat.com/browse/RHEL-57104
+ - verifies: https://issues.redhat.com/browse/RHEL-58060
adjust:
- enabled: false
when: distro == rhel-4, rhel-5, rhel-6, rhel-7
diff --git a/selinux-policy/boothd-and-similar/runtest.sh b/selinux-policy/boothd-and-similar/runtest.sh
index 2845bf1..27231d6 100755
--- a/selinux-policy/boothd-and-similar/runtest.sh
+++ b/selinux-policy/boothd-and-similar/runtest.sh
@@ -67,6 +67,10 @@ rlJournalStart
rlSESearchRule "allow boothd_t systemd_userdbd_runtime_t : sock_file { write } [ ]"
rlSESearchRule "allow boothd_t systemd_userdbd_t : unix_stream_socket { connectto } [ ]"
rlPhaseEnd
+
+ rlPhaseStartTest "RHEL-57104 + RHEL-58060"
+ rlSESearchRule "allow boothd_t kernel_t : unix_stream_socket { connectto } [ ]"
+ rlPhaseEnd
fi
if [ -f /usr/lib/systemd/system/${SERVICE_NAME}.service ] ; then
reply other threads:[~2026-09-11 13:21 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=178913291961.1.16890148867351928106.tests-selinux-9245b35ac692@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