Bug 1127357
Summary: | Docker image is not able to patch file on host system | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Eric Rich <erich> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.0 | CC: | dwalsh, erich, mmalik |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.13.1-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-05 10:42:32 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1064025 |
Description
Eric Rich
2014-08-06 18:13:39 UTC
In your container what does "id -Z" say? Does it show SELinux as disabled? $ docker run -t -i -u nobody --rm -v $HOME/dockerplay/:/mnt rhel7 /bin/bash bash-4.2$ id -Z id: --context (-Z) works only on an SELinux-enabled kernel bash-4.2$ exit $ docker run -t -i -u nobody --rm --privileged -v $HOME/dockerplay/:/mnt rhel7 /bin/bash bash-4.2$ id -Z id: --context (-Z) works only on an SELinux-enabled kernel bash-4.2$ exit exit $ getenforce Enforcing ^^ from the host. eb488fe790bcd3394c317c88d990ba54510617dc fixes this in git. Have no idea why it is doing it, but I have no problem allowing it. Needs back port to F20, F21 and RHEL7 Milos what version of docker? # rpm -qa docker\* docker-1.4.1-1.el7.x86_64 # Going to test it with the latest one. 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://rhn.redhat.com/errata/RHBA-2015-0458.html Well it is walking the file system and changing the context. Hopefully it is comparable to chcon -R -t svirt_sandbox_file_t /mount/pint |