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 systemd-timesyncd can read files in /sys/firmware/efi/efivars
Date: Fri, 11 Sep 2026 13:18:15 GMT [thread overview]
Message-ID: <178913269538.1.10950074368768664281.tests-selinux-ce2e88d63c08@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : ce2e88d63c08ae259ca73bfe51a7c62093e3156b
Author : Milos Malik <mmalik@redhat.com>
Date : 2020-09-17T15:00:35+00:00
Stats : +5/-0 in 2 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/ce2e88d63c08ae259ca73bfe51a7c62093e3156b?branch=pr775-checkpolicy-revdeps
Log:
test if systemd-timesyncd can read files in /sys/firmware/efi/efivars
This automated TC found SELinux denials during testing of systemd-timesyncd
service on a machine where SecureBoot was configured. As of now, SELinux
policy does not allow the systemd-timesyncd process to read files labeled
efivarfs_t (stored in /sys/firmware/efi/efivars directory).
I believe this issue should be fixed in selinux-policy component via
appropriate allow rule.
The automated TC covers BZ#1869979.
---
diff --git a/selinux-policy/systemd-timesyncd-and-similar/Makefile b/selinux-policy/systemd-timesyncd-and-similar/Makefile
index abe7ae7..25410b7 100644
--- a/selinux-policy/systemd-timesyncd-and-similar/Makefile
+++ b/selinux-policy/systemd-timesyncd-and-similar/Makefile
@@ -72,6 +72,7 @@ $(METADATA): Makefile
@echo "Bug: 1666222" >> $(METADATA) # Fedora 29
@echo "Bug: 1694272" >> $(METADATA) # Fedora 29
@echo "Bug: 1822131" >> $(METADATA) # Fedora 32
+ @echo "Bug: 1869979" >> $(METADATA) # RHEL-8
rhts-lint $(METADATA)
diff --git a/selinux-policy/systemd-timesyncd-and-similar/runtest.sh b/selinux-policy/systemd-timesyncd-and-similar/runtest.sh
index c4e4251..18950fe 100755
--- a/selinux-policy/systemd-timesyncd-and-similar/runtest.sh
+++ b/selinux-policy/systemd-timesyncd-and-similar/runtest.sh
@@ -98,6 +98,10 @@ rlJournalStart
rlSESearchRule "allow init_t systemd_timedated_t : process2 { nnp_transition } [ ]"
rlPhaseEnd
+ rlPhaseStartTest "bz#1869979"
+ rlSESearchRule "allow systemd_timedated_t efivarfs_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=178913269538.1.10950074368768664281.tests-selinux-ce2e88d63c08@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