Fedora Account System
Red Hat Associate
Red Hat Customer
Version: passt-selinux-0^20261002.gcba3570-1.fc45, selinux-policy-45.26-1.fc45 Problem: pasta.pp contains the file context /var/run/pasta\.pid system_u:object_r:pasta_pid_t:s0 and no /run/pasta\.pid equivalent. Effect: /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). Reproducible: Always Steps to Reproduce: 1. strings /usr/share/selinux/packages/targeted/pasta.pp | grep '^/var/run' 2. dnf reinstall flatpak-selinux (or any other *-selinux package) 3. journalctl -k | grep MAC_POLICY_LOAD -> two policy loads for one %post 4. cat /run/selinux-policy/extra_varrun.cil -> contains /run/pasta.pid Expected Results: Expected: pasta.fc uses /run/pasta\.pid. No extra_varrun entry, one policy rebuild.
Posted patch at https://archives.passt.top/passt-dev/20261203071859.3126066-1-sbrivio@redhat.com/.