Bug 1173423
Summary: | SELinux is preventing docker from 'write' accesses on the file /etc/docker/key.json. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Igor Gnatenko <ignatenko> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 22 | CC: | dominick.grift, dwalsh, jsastreh, lsm5, lvrabec, maztaim, mgrepl, plautrba |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:1ffb579cf65a07792487346ff70d62f088334543a73fbddc61c857555bc20201 | ||
Fixed In Version: | selinux-policy-3.13.1-116.fc22 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-10 02:59:03 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Igor Gnatenko
2014-12-12 06:10:05 UTC
1572405786e6ff9ba9af5aef6bb5664ef3ba2201 fixes this in git. commit 1572405786e6ff9ba9af5aef6bb5664ef3ba2201 Author: Dan Walsh <dwalsh> Date: Fri Dec 12 07:58:06 2014 -0500 Docker has a new config/key file it writes to /etc/docker Thank you Dan. Back ported F20,F21. GOing to need this in RHEL7... Yes, Rhel7 included. This still occurs the very first time docker is started (/etc/docker dir has not been created yet). The problem is that a type_transition to allow docker_t to create files and folders with the right label (docker_config_t) under /etc is missing. Adding the following to docker local policy solves the problem: files_etc_filetrans(docker_t, docker_config_t, { dir file }) Tested on f21. Should work on rawhide too. /etc/docker should be in the docker.spec rpm, it should be owned by it. files_etc_filetrans(docker_t, docker_config_t, dir, "docker") SHould be added but nothing more. This would allow docker to create a docker directory in a directory labeled etc_t. Your version would allow it to create any directory/file in a directory labeled etc_t if the file or directory did not already exist. This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22 selinux-policy-3.13.1-116.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-116.fc22 Package selinux-policy-3.13.1-116.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.13.1-116.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-3508/selinux-policy-3.13.1-116.fc22 then log in and leave karma (feedback). selinux-policy-3.13.1-116.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. |