Hide Forgot
It looks like the bug is now in RHEL 7.3(.1) as well. Running # docker run --rm -ti -e container=docker -v /sys/fs/cgroup:/sys/fs/cgroup:ro --tmpfs /run --tmpfs /tmp fedora:24 /usr/sbin/init produces AVC denials type=AVC msg=audit(1481292675.651:396): avc: denied { write } for pid=8350 comm="systemd" name="core_pattern" dev="proc" ino=146479 scontext=system_u:system_r:svirt_lxc_net_t:s0:c662,c859 tcontext=system_u:object_r:usermodehelper_t:s0 tclass=file type=AVC msg=audit(1481292675.654:397): avc: denied { write } for pid=8350 comm="systemd" name="max_dgram_qlen" dev="proc" ino=145343 scontext=system_u:system_r:svirt_lxc_net_t:s0:c662,c859 tcontext=system_u:object_r:sysctl_net_unix_t:s0 tclass=file This is with docker-1.10.3-59.el7.x86_64 selinux-policy-3.13.1-102.el7.noarch container-selinux-1.10.3-59.el7.x86_64
Looks like I added a commit to virt.te to take care of this back in Augues. commit 1014781f4b6f08bef0a1ffda852d3bcd97ea506b Author: Dan Walsh <dwalsh> Date: Mon Aug 22 10:06:39 2016 -0400 Fixes for containers Allow containers to attempt to write to unix_sysctls. Allow cotainers to use the FD's leaked to them from parent processes. Are you sure you have the latest policy installed? The dontaudit of usermodehelper happened back in March. 8c42cec0f7 virt.te (Dan Walsh 2016-03-07 10:50:07 -0500 1360) kernel_dontaudit_write_usermodehelper_state(svirt_sandbox_domain) Lukas what version of virt.te do we have for rhel7.3?\
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:1861