public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: Replace all /var/run matchpathcon checks with /var/run/pcp
@ 2026-09-11 13:20 Zdenek Pytela
  0 siblings, 0 replies; only message in thread
From: Zdenek Pytela @ 2026-09-11 13:20 UTC (permalink / raw)
  To: git-commits

            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 } [ ]"

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-11 13:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 13:20 [tests/selinux] pr775-checkpolicy-revdeps: Replace all /var/run matchpathcon checks with /var/run/pcp Zdenek Pytela

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox