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: Replace all /var/run matchpathcon checks with /var/run/pcp
Date: Fri, 11 Sep 2026 13:20:45 GMT	[thread overview]
Message-ID: <178913284525.1.4351091819405411033.tests-selinux-506cb9f2d98f@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : tests/selinux
            Branch : pr775-checkpolicy-revdeps
            Commit : 506cb9f2d98f2c4ad073c73e7a4d044c2da9802b
            Author : Zdenek Pytela <zpytela@redhat.com>
            Date   : 2023-06-20T11:58:11+00:00
            Stats  : +2/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/506cb9f2d98f2c4ad073c73e7a4d044c2da9802b?branch=pr775-checkpolicy-revdeps

            Log:
            Replace all /var/run matchpathcon checks with /var/run/pcp

New versions of pcp use only the /run/pcp directory for storing all
runtime files. The old default file context rules were removed from
the policy.

---
diff --git a/selinux-policy/pcp-daemons-and-similar/runtest.sh b/selinux-policy/pcp-daemons-and-similar/runtest.sh
index c22a7e8..94b5693 100755
--- a/selinux-policy/pcp-daemons-and-similar/runtest.sh
+++ b/selinux-policy/pcp-daemons-and-similar/runtest.sh
@@ -106,7 +106,7 @@ rlJournalStart
             rlSESearchRule "type_transition ${SOURCE_TYPE} ${FILE_CONTEXT} : process ${PROCESS_CONTEXT}"
         done
         rlSEMatchPathCon "/var/run/pcp" "pcp_var_run_t"
-        rlSEMatchPathCon "/var/run/pmcd.socket" "pcp_var_run_t"
+        rlSEMatchPathCon "/var/run/pcp/pmcd.socket" "pcp_var_run_t"
         rlSEMatchPathCon "/dev/log" "devlog_t"
         rlSEMatchPathCon "/dev/mapper/control" "lvm_control_t"
         rlSEMatchPortCon tcp 4330 dey_sapi_port_t
@@ -216,7 +216,7 @@ rlJournalStart
     rlPhaseStartTest "bz#1286234"
         rlSEMatchPathCon "/usr/bin/pmlogger" "pcp_pmlogger_exec_t"
         rlSEMatchPathCon "/var/run" "var_run_t"
-        rlSEMatchPathCon "/var/run/pmlogger.primary.socket" "pcp_var_run_t"
+        rlSEMatchPathCon "/var/run/pcp/pmlogger.primary.socket" "pcp_var_run_t"
         rlSESearchRule "allow pcp_pmlogger_t var_run_t : dir { write add_name } [ ]"
         rlSESearchRule "type_transition pcp_pmlogger_t var_run_t : lnk_file pcp_var_run_t [ ]"
         rlSESearchRule "allow pcp_pmlogger_t pcp_var_run_t : lnk_file { create } [ ]"

                 reply	other threads:[~2026-09-11 13:20 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=178913284525.1.4351091819405411033.tests-selinux-506cb9f2d98f@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