Bug 1322623 - selinux-policy-targeted-3.13.1-180.fc25 scriptlet errors
Summary: selinux-policy-targeted-3.13.1-180.fc25 scriptlet errors
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: docker
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Lokesh Mandvekar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-30 22:17 UTC by Kevin Fenzi
Modified: 2016-06-03 19:41 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-03 19:41:15 UTC
Type: Bug


Attachments (Terms of Use)

Description Kevin Fenzi 2016-03-30 22:17:56 UTC
On upgrading to this version: 

  Upgrading   : selinux-policy-targeted-3.13.1-180.fc25.noarch                                                                 32/84 
neverallow check failed at line 8831 of /var/lib/selinux/targeted/tmp/modules/100/base/cil
  (neverallow base_typeattr_12 unlabeled_t (file (entrypoint)))
    <root>
    allow at line 545 of /var/lib/selinux/targeted/tmp/modules/400/docker/cil
      (allow spc_t unlabeled_t (file (entrypoint)))
    <root>
    allow at line 828 of /var/lib/selinux/targeted/tmp/modules/100/sandboxX/cil
      (allow sandbox_x_domain exec_type (file (entrypoint)))
    <root>
    allow at line 1591 of /var/lib/selinux/targeted/tmp/modules/100/virt/cil
      (allow virtd_lxc_t exec_type (file (entrypoint)))
    <root>
    allow at line 1968 of /var/lib/selinux/targeted/tmp/modules/100/virt/cil
      (allow svirt_sandbox_domain exec_type (file (entrypoint)))

Failed to generate binary
/usr/sbin/semodule:  Failed!

Comment 1 Lukas Vrabec 2016-03-31 12:21:59 UTC
This problem is caused because you have also docker-selinux package on your system. Policy in this package contains some rules which we don't want to allow. This semanage failure is right behaviour.

While docker policy is broken, you can use following workround:
In /etc/selinux/semanage.conf file, change expand-check=1 option to expand-check=0.

Moving to docker component.

Comment 2 Daniel Walsh 2016-06-03 19:41:15 UTC
Should work fine in Rawhide now.


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