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 tests which fail for known reasons
Date: Fri, 11 Sep 2026 13:21:52 GMT [thread overview]
Message-ID: <178913291251.1.6735666010487035130.tests-selinux-a2c9af2d1883@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : a2c9af2d188316233b5ba830e1f3ea4e00f31a2d
Author : Milos Malik <mmalik@redhat.com>
Date : 2024-08-02T17:29:13+02:00
Stats : +3/-3 in 2 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/a2c9af2d188316233b5ba830e1f3ea4e00f31a2d?branch=pr775-checkpolicy-revdeps
Log:
fix tests which fail for known reasons
The chronyd test does not produce non-printable characters now.
The libvirt-dbus test phases relevancy is improved now.
---
diff --git a/selinux-policy/chronyd-and-similar/runtest.sh b/selinux-policy/chronyd-and-similar/runtest.sh
index 2eb7fc2..e7c7094 100755
--- a/selinux-policy/chronyd-and-similar/runtest.sh
+++ b/selinux-policy/chronyd-and-similar/runtest.sh
@@ -53,8 +53,6 @@ rlJournalStart
rlFileBackup /etc/shadow
rlFileBackup /etc/chrony.keys
- rlRun "find /var /run -type f -name '*lease*'"
- rlRun "find /var /run -type f -name '*lease*' | xargs cat"
rlSESetEnforce
rlSEStatus
rlSESetTimestamp
@@ -286,7 +284,7 @@ rlJournalStart
rlPhaseStartTest "bz#1900143"
rlSEMatchPathCon "/run/systemd/resolve/io.systemd.Resolve" "systemd_resolved_var_run_t"
rlSESearchRule "allow chronyd_t systemd_resolved_var_run_t : sock_file { write } [ ]"
- rlRun "grep resolve /etc/nsswitch.conf"
+ # rlRun "grep resolve /etc/nsswitch.conf"
rlPhaseEnd
rlPhaseStartTest "bz#2173604"
diff --git a/selinux-policy/libvirt-dbus-and-similar/runtest.sh b/selinux-policy/libvirt-dbus-and-similar/runtest.sh
index a624305..bf886b1 100755
--- a/selinux-policy/libvirt-dbus-and-similar/runtest.sh
+++ b/selinux-policy/libvirt-dbus-and-similar/runtest.sh
@@ -60,12 +60,14 @@ rlJournalStart
sleep 2
rlPhaseEnd
+ if seinfo -t | grep -q virt_dbus ; then
rlPhaseStartTest "RHEL-46893"
rlSEMatchPathCon ${FILE_PATH} ${FILE_CONTEXT}
rlSESearchRule "allow virt_dbus_t virtqemud_t : unix_stream_socket { connectto } [ ]"
rlSESearchRule "allow virtqemud_t virt_dbus_t : dir { search } [ ]"
rlSESearchRule "allow virtqemud_t virt_dbus_t : file { getattr open read } [ ]"
rlPhaseEnd
+ fi
rlPhaseStartTest "real scenario -- standalone service"
rlSEService - ${SERVICE_NAME} ${PROCESS_NAME} ${PROCESS_CONTEXT} "start status" 1
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=178913291251.1.6735666010487035130.tests-selinux-a2c9af2d1883@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