Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1517690
Summary: | `mv` in container tries to remove the MCS part of SELinux context | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Standa Laznicka <slaznick> |
Component: | container-selinux | Assignee: | Lokesh Mandvekar <lsm5> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 26 | CC: | amurdaca, dwalsh, fkluknav, jchaloup, jlebon, jpazdziora, lsm5 |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | container-selinux-2.36-1.fc27 container-selinux-2.36-1.fc26 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-12-10 05:07:08 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
Standa Laznicka
2017-11-27 08:57:27 UTC
This is strange, It looks like the system thinks SElinux is enabled within the container? If you run this same container but just launch and run a sh, does id -Z report that SELinux is disabled? `docker exec $CONTAINER_NAME id -Z` seems to correctly give: """ id: --context (-Z) works only on an SELinux-enabled kernel """ Ok does some code do a mv -Z from inside of the contaiener on top of /opt/ipa-darta-master? Is this content private to this container or do other containers need to use this data? -v /opt/ipa-data-master:/data:Z Would fix this issue if it is private to this container. And you could eliminate the chcon command from above. Ok I got it. Fixed in container-selinux-2.36 Thanks. For the record - the data in /opt/ipa-data-master are supposed to be persistent container storage and can be used in different containers so the :Z way is unfortunately not possible. We were allowing the relabel on files and directories, but not on link_file which is what you are seeing. I have updated container-selinux do allow it on all file types now. Thanks, tested the new package from koji and it seems to have fixed the problem for me. Ok I will push it into updates as tomorrow, since we have a container-selinux package update about to finish the updates process. Once I push, could you update karma. container-selinux-2.36-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-27cf1ada3a container-selinux-2.36-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-acc79c0e3e container-selinux-2.36-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-acc79c0e3e container-selinux-2.36-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-27cf1ada3a container-selinux-2.36-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. container-selinux-2.36-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. |