Bug 1112748
Summary: | Selinux prevents docker-io from updating /etc/passwd within a container | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Aurelien Marchand <artaxerxes2> |
Component: | docker-io | Assignee: | Lokesh Mandvekar <lsm5> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 20 | CC: | admiller, dwalsh, golang-updates, hushan.jia, jkeck, jperrin, lsm5, mattdm, mgoldman, s, vbatts |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-07-22 17:41:38 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
Aurelien Marchand
2014-06-24 15:40:03 UTC
one more details, I opened this bug based on the exchange I had with Daniel Walsh for Bug 1096123. See comment #35 and onward (https://bugzilla.redhat.com/show_bug.cgi?id=1096123#c35). What does docker run -t -i -p 80:80 -p 20022:22 oskarhane/docker-wordpress-nginx-ssh id -Z Return? $ docker run --rm -t -i -p 80:80 -p 20042:22 oskarhane/docker-wordpress-nginx-ssh id -Z system_u:system_r:svirt_lxc_net_t:s0:c62,c983 That indicates to me that you are running with an image that does not handle SELinux properly. docker run -ti -v /tmp:/tmp fedora /bin/id -Z /bin/id: --context (-Z) works only on an SELinux-enabled kernel Meaning that the image does nont have an updated libselinux in it. libselinux in rhel6 and Centos6 report to programs that SELinux is enabled, when run within a container. In Fedora and RHEL7 they report that SELinux is disabled. When apps try to do SELinux stuff within a container, they are blocked and fail. This is why I am pushing to get an updated libselinux into Centos 6 and RHEL6 container images. The CentOS docker image has the patch that was posted to the centos-devel mailing list included. We pushed it into centosplus and specifically install it in the docker image. I believe this image was pushed to the docker index around June 9th. |