public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: test if boothd can talk to kernel via UNIX socket
@ 2026-09-11 13:21 Milos Malik
0 siblings, 0 replies; only message in thread
From: Milos Malik @ 2026-09-11 13:21 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-11 13:21 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:21 [tests/selinux] pr775-checkpolicy-revdeps: test if boothd can talk to kernel via UNIX socket Milos Malik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox