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: fix the systemd-journal-upload test for RHEL-9.x
Date: Fri, 11 Sep 2026 13:22:32 GMT [thread overview]
Message-ID: <178913295273.1.10030299832382460588.tests-selinux-e07c1a96fb64@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : e07c1a96fb64c9379e9a66d2e9151f25187c8467
Author : Milos Malik <mmalik@redhat.com>
Date : 2025-04-15T16:58:53+00:00
Stats : +8/-3 in 1 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/e07c1a96fb64c9379e9a66d2e9151f25187c8467?branch=pr775-checkpolicy-revdeps
Log:
fix the systemd-journal-upload test for RHEL-9.x
One of the test phases failed on RHEL-9.6 because the systemd_conf_t
type is not defined there. The issue should be fixed now.
---
diff --git a/selinux-policy/systemd-journal-upload/runtest.sh b/selinux-policy/systemd-journal-upload/runtest.sh
index 09a627e..fe8367e 100755
--- a/selinux-policy/systemd-journal-upload/runtest.sh
+++ b/selinux-policy/systemd-journal-upload/runtest.sh
@@ -23,11 +23,16 @@ rlJournalStart
sleep 2
rlPhaseEnd
- if seinfo -t | grep -q ${PROCESS_CONTEXT} ; then
+ if rlSEDefined ${PROCESS_CONTEXT} ; then
rlPhaseStartTest "RHEL-57774 + RHEL-62196"
rlSEMatchPathCon "/usr/lib/systemd/systemd-journal-upload" "systemd_journal_upload_exec_t"
- rlSEMatchPathCon "/run/systemd/journal-upload.conf.d" "systemd_conf_t"
- rlSESearchRule "allow systemd_journal_upload_t systemd_conf_t : dir { read } [ ]"
+ if rlSEDefined "systemd_conf_t" ; then
+ rlSEMatchPathCon "/run/systemd/journal-upload.conf.d" "systemd_conf_t"
+ rlSESearchRule "allow systemd_journal_upload_t systemd_conf_t : dir { read } [ ]"
+ else
+ rlSEMatchPathCon "/run/systemd/journal-upload.conf.d" "init_var_run_t"
+ rlSESearchRule "allow systemd_journal_upload_t init_var_run_t : dir { read } [ ]"
+ fi
rlPhaseEnd
fi
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=178913295273.1.10030299832382460588.tests-selinux-e07c1a96fb64@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