When upgrading to or reinstalling selinux-policy-3.14.5-18.fc32, RPM prints this warning: Conflicting name type transition rules Binary policy creation failed at /var/lib/selinux/targeted/tmp/modules/200/container/cil:1293 Failed to generate binary semodule: Failed!
I see the same on a RHEL 8 system installing container-selinux-2.116-1.module+el8.2.0+4456+e1e0d171.noarch.rpm
Seeing the same on fc30, selinux-policy-targeted-3.14.3-52.fc30 -> selinux-policy-targeted-3.14.3-53.fc30.noarch Running scriptlet: selinux-policy-targeted-3.14.3-53.fc30.noarch 3/32 Conflicting name type transition rules Binary policy creation failed at /var/lib/selinux/targeted/tmp/modules/200/container/cil:1784 Failed to generate binary /usr/sbin/semodule: Failed! /var/log/audit/audit.log: type=AVC msg=audit(1576153530.565:733284): avc: denied { mac_admin } for pid=16970 comm="restorecon" capability=33 scontext=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 tclass=capability2 permissive=0
We might wanna apply https://github.com/containers/container-selinux/commit/0b25a4a5f05e1810f6bbeffcc40d89c3db5d2a30 to the spec to see whether it fixes the problem. It currently works well in RHEL.
Yes we want this, but I believe we already have this in Rawhide, if I am mistaken please make the change.
I have just done a fresh install of fc31 followed by dnf upgrade and experienced the same problems; it also stopped some other packages upgrading properly. The original version on the system of container-selinux was 2.117.0-1.gitbfde70a and I got the same problems regardless of whether I excluded container-selinux from the dnf upgrade or not. The upgraded version is 2.123.0-2. I built container-selinux 2.123.0-2 incorporating commits c36566 and cf0837 from https://src.fedoraproject.org/rpms/container-selinux/commits/master, and installing the new rpm before doing the dnf upgrade resolved the problems. Would it be possible to merge the two commits mentioned above into the f30 and f31 branches.
Ok, the changes are present in rawhide and applied the same to F31.
FEDORA-2019-e49b4789f6 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-e49b4789f6
From comment 2, this should be applied to F30 as well.
FEDORA-2020-7dc176e358 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-7dc176e358
container-selinux-2.124.0-3.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-7dc176e358
container-selinux-2.124.0-3.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-34d0c31a55
container-selinux-2.124.0-3.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.
container-selinux-2.124.0-3.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.