Bug 1420096

Summary: container-selinux SELinux rules broken
Product: [Fedora] Fedora Reporter: Tomasz Kłoczko <kloczko.tomasz>
Component: container-selinuxAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: amurdaca, dwalsh, fkluknav, ignatenko, jchaloup, jlebon, lsm5
Target Milestone: ---   
Target Release: ---   
Hardware: armv7hl   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-09 17:44:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomasz Kłoczko 2017-02-07 19:34:21 UTC
During upgrade on ARM:

  Upgrading   : container-selinux-2:2.6-1.fc26.noarch                                                                                                              14/45 
Child type container_t exceeds bounds of parent container_runtime_t
  (allow container_t container_t (capability2 (mac_override mac_admin)))
    <root>
    booleanif at /var/lib/selinux/targeted/tmp/modules/100/virt/cil:2721
    true at /var/lib/selinux/targeted/tmp/modules/100/virt/cil:2722
    allow at /var/lib/selinux/targeted/tmp/modules/100/virt/cil:2723
      (allow container_t self (capability2 (mac_override mac_admin syslog wake_alarm block_suspend audit_read epolwakeup)))
  (allow container_t container_t (capability (sys_module)))
    <root>
    booleanif at /var/lib/selinux/targeted/tmp/modules/100/virt/cil:2721
    true at /var/lib/selinux/targeted/tmp/modules/100/virt/cil:2722
    allow at /var/lib/selinux/targeted/tmp/modules/100/virt/cil:2724
      (allow container_t self (capability (chown dac_override dac_read_search fowner fsetid kill setgid setuid setpcap linux_immutable net_bind_service net_broadcast net_admin net_raw ipc_lock ipc_owner sys_module sys_rawio sys_chroot sys_ptrace sys_pacct sys_admin sys_boot sys_nice sys_resource sys_time sys_tty_config mknod lease audit_write audit_control setfcap)))
Failed to generate binary
/usr/sbin/semodule:  Failed!

Comment 1 Daniel Walsh 2017-02-07 20:51:24 UTC
This has to be fixed here

https://github.com/fedora-selinux/selinux-policy/pull/187

Comment 2 Daniel Walsh 2017-02-07 20:52:49 UTC
If you change the expand-check field in /etc/sysconfig/semange.conf to zero, the container-selinux should install fine.

expand-check = 0

Comment 3 Yanko Kaneti 2017-02-09 15:36:34 UTC
*** Bug 1420822 has been marked as a duplicate of this bug. ***

Comment 4 Daniel Walsh 2017-02-09 17:43:48 UTC
Fixed in selinux-policy-3.13.1-237.fc26.noarch