public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Zdenek Pytela <zpytela@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] pr775-checkpolicy-revdeps: Change default context for timesync runtime files
Date: Fri, 11 Sep 2026 13:19:36 GMT	[thread overview]
Message-ID: <178913277683.1.17715265371840180751.tests-selinux-bb05179a3052@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : tests/selinux
            Branch : pr775-checkpolicy-revdeps
            Commit : bb05179a3052db55df3f260b00f91473c4311ef6
            Author : Zdenek Pytela <zpytela@redhat.com>
            Date   : 2022-02-01T20:38:06+00:00
            Stats  : +4/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/bb05179a3052db55df3f260b00f91473c4311ef6?branch=pr775-checkpolicy-revdeps

            Log:
            Change default context for timesync runtime files

With the fix for bz#1822131, the default file context for
/run/systemd/timesync and /run/systemd/timesync/synchronized
changed to systemd_timedated_var_run_t, so the test requires
to be updated, too.
Additionally, rules for checking access to the directory and file
for systemd-timesyncd need to be updated.

---
diff --git a/selinux-policy/systemd-timesyncd-and-similar/runtest.sh b/selinux-policy/systemd-timesyncd-and-similar/runtest.sh
index 66f114f..fab5ec7 100755
--- a/selinux-policy/systemd-timesyncd-and-similar/runtest.sh
+++ b/selinux-policy/systemd-timesyncd-and-similar/runtest.sh
@@ -72,10 +72,11 @@ rlJournalStart
 
     if rlIsFedora ; then
     rlPhaseStartTest "bz#1649671"
-        rlSEMatchPathCon "/run/systemd/timesync" "init_var_run_t"
-        rlSEMatchPathCon "/run/systemd/timesync/synchronized" "init_var_run_t"
+        rlSEMatchPathCon "/run/systemd/timesync" "systemd_timedated_var_run_t"
+        rlSEMatchPathCon "/run/systemd/timesync/synchronized" "systemd_timedated_var_run_t"
         rlSESearchRule "allow systemd_timedated_t init_var_run_t : dir { write add_name } [ ]"
-        rlSESearchRule "allow systemd_timedated_t init_var_run_t : file { create write open } [ ]"
+        rlSESearchRule "allow systemd_timedated_t systemd_timedated_var_run_t : dir { write add_name } [ ]"
+        rlSESearchRule "allow systemd_timedated_t systemd_timedated_var_run_t : file { create write open } [ ]"
     rlPhaseEnd
 
     rlPhaseStartTest "bz#1694272"

                 reply	other threads:[~2026-09-11 13:19 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=178913277683.1.17715265371840180751.tests-selinux-bb05179a3052@fedoraproject.org \
    --to=zpytela@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