diff options
| author | Stefano Brivio <sbrivio@redhat.com> | 2026-12-03 02:50:27 +0100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-12-03 02:50:27 +0100 |
| commit | 29fc1490b48a04b4d3fde8769c7c64d594335915 (patch) | |
| tree | 9e72f775b4f53516c00a5644890baa314dd54649 | |
| parent | 111029829f8761cd0ccd7c5f8648ad0e9527841b (diff) | |
| download | passt-29fc1490b48a04b4d3fde8769c7c64d594335915.tar passt-29fc1490b48a04b4d3fde8769c7c64d594335915.tar.gz passt-29fc1490b48a04b4d3fde8769c7c64d594335915.tar.bz2 passt-29fc1490b48a04b4d3fde8769c7c64d594335915.tar.lz passt-29fc1490b48a04b4d3fde8769c7c64d594335915.tar.xz passt-29fc1490b48a04b4d3fde8769c7c64d594335915.tar.zst passt-29fc1490b48a04b4d3fde8769c7c64d594335915.zip | |
selinux: Don't use legacy /var/run path for PID file context
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>
| -rw-r--r-- | contrib/selinux/pasta.fc | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
