Bug 1778612 - selinux-policy-3.14.5-18.fc32: installation script warns: Conflicting name type transition rules: Binary policy creation failed at /var/lib/selinux/targeted/tmp/modules/200/container/cil:1293
Summary: selinux-policy-3.14.5-18.fc32: installation script warns: Conflicting name ty...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: container-selinux
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lokesh Mandvekar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-02 08:15 UTC by Petr Pisar
Modified: 2020-01-12 01:42 UTC (History)
16 users (show)

Fixed In Version: container-selinux-2.124.0-3.fc30 container-selinux-2.124.0-3.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1797574 (view as bug list)
Environment:
Last Closed: 2020-01-12 01:15:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2019-12-02 08:15:30 UTC
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!

Comment 1 Adrian Reber 2019-12-02 13:38:08 UTC
I see the same on a RHEL 8 system installing container-selinux-2.116-1.module+el8.2.0+4456+e1e0d171.noarch.rpm

Comment 2 Ed Santiago 2019-12-12 12:37:37 UTC
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

Comment 3 Jindrich Novy 2019-12-12 16:17:59 UTC
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.

Comment 4 Daniel Walsh 2019-12-12 23:54:55 UTC
Yes we want this, but I believe we already have this in Rawhide,  if I am mistaken please make the change.

Comment 5 Quentin Armitage 2019-12-23 12:09:59 UTC
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.

Comment 6 Jindrich Novy 2019-12-23 13:19:32 UTC
Ok, the changes are present in rawhide and applied the same to F31.

Comment 7 Fedora Update System 2019-12-23 13:23:10 UTC
FEDORA-2019-e49b4789f6 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-e49b4789f6

Comment 8 Elliott Sales de Andrade 2019-12-31 10:12:53 UTC
From comment 2, this should be applied to F30 as well.

Comment 9 Fedora Update System 2020-01-03 13:10:43 UTC
FEDORA-2020-7dc176e358 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-7dc176e358

Comment 10 Fedora Update System 2020-01-04 21:18:28 UTC
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

Comment 11 Fedora Update System 2020-01-04 22:24:43 UTC
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

Comment 12 Fedora Update System 2020-01-12 01:15:52 UTC
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.

Comment 13 Fedora Update System 2020-01-12 01:42:49 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.