public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: passt-dev@passt.top
Cc: "Radosław Stachowiak" <50bda1cd2babf798@rdslw.online>
Subject: [PATCH] selinux: Don't use legacy /var/run path for PID file context
Date: Thu,  3 Dec 2026 08:18:59 +0100	[thread overview]
Message-ID: <20261203071859.3126066-1-sbrivio@redhat.com> (raw)

Radosław reports that each install of the passt-selinux package
triggers two policy rebuilds, because, quoting:

  /usr/libexec/selinux/varrun-convert.sh finds this entry in file_contexts,
  generates the extra_varrun module and runs a second "semodule -i".
  %selinux_modules_install removes extra_varrun first, so each install or
  update of any package with a SELinux module does two full policy rebuilds
  instead of one (13-14 s each on one of my machines).

Fix this by switching to the modern /run path for the PID file
context.

Reported-by: Radosław Stachowiak <50bda1cd2babf798@rdslw.online>
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2587559
Suggested-by: Radosław Stachowiak <50bda1cd2babf798@rdslw.online>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
---
 contrib/selinux/pasta.fc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/selinux/pasta.fc b/contrib/selinux/pasta.fc
index 82dbcbe..3495d9a 100644
--- a/contrib/selinux/pasta.fc
+++ b/contrib/selinux/pasta.fc
@@ -11,7 +11,7 @@
 /usr/bin/pasta						system_u:object_r:pasta_exec_t:s0
 /usr/bin/pasta.avx2					system_u:object_r:pasta_exec_t:s0
 /tmp/pasta\.pcap					system_u:object_r:pasta_log_t:s0
-/var/run/pasta\.pid					system_u:object_r:pasta_pid_t:s0
+/run/pasta\.pid						system_u:object_r:pasta_pid_t:s0
 /run/user/[0-9]+/netns				system_u:object_r:ifconfig_var_run_t:s0
 /run/user/[0-9]+/containers/networks/rootless-netns	system_u:object_r:ifconfig_var_run_t:s0
 # In case XDG_RUNTIME_DIR is not set (i.e. no systemd user session) Podman falls
-- 
2.43.0


                 reply	other threads:[~2026-12-03  7:18 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=20261203071859.3126066-1-sbrivio@redhat.com \
    --to=sbrivio@redhat.com \
    --cc=50bda1cd2babf798@rdslw.online \
    --cc=passt-dev@passt.top \
    /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.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).