* [PATCH] selinux: Don't use legacy /var/run path for PID file context
@ 2026-12-03 7:18 Stefano Brivio
0 siblings, 0 replies; only message in thread
From: Stefano Brivio @ 2026-12-03 7:18 UTC (permalink / raw)
To: passt-dev; +Cc: Radosław Stachowiak
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-03 7:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-03 7:18 [PATCH] selinux: Don't use legacy /var/run path for PID file context Stefano Brivio
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).