Bug 1403398
Summary: | f25 - docker doesn't label overlay2 directory correctly | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dusty Mabe <dustymabe> |
Component: | docker | Assignee: | Antonio Murdaca <amurdaca> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 25 | CC: | adimania, admiller, amurdaca, anass.1430, dwalsh, ichavero, jcajka, jchaloup, lsm5, marianne, miminar, nalin, riek, vbatts |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | docker-1.12.4-2.git1b5971a.fc25 docker-1.12.4-6.git1b5971a.fc25 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-12-16 00:27:34 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
Dusty Mabe
2016-12-09 23:47:39 UTC
Lokesh or Antonio can you update the version of container-selinux that we are shipping with docker package to the latest in master. We have policy that says sesearch -T -s container_runtime_t | grep overlay type_transition container_runtime_t container_var_lib_t : dir container_share_t "overlay2"; type_transition container_runtime_t container_var_lib_t : dir container_share_t "overlay"; These type transitions say when the label type that the docker/runc is running as "container_runtime_t" creates a directory named overlay or overlay2 in a directory labeled container_var_lib_t (The label of /var/lib/docker) it will get created with container_share_t. After this policy is installed you can verify this happened by removing all content under /var/lib/docker atomic storage reset Will do this for you. Then start docker again and run an overlay based container. I'll fix this in Fedora (F25 and F26) docker-1.12.3-15.git0423d89.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-37c2c59240 Upgrading to the newer RPM seems to give errors: ``` [root@localhost ~]# rpm -q docker docker-common container-selinux docker-1.12.3-12.git97974ae.fc25.x86_64 docker-common-1.12.3-12.git97974ae.fc25.x86_64 container-selinux-1.12.3-12.git97974ae.fc25.x86_64 [root@localhost ~]# [root@localhost ~]# [root@localhost ~]# rpm -Uvh https://kojipkgs.fedoraproject.org//packages/docker/1.12.3/15.git0423d89.fc25/x86_64/container-selinux-1.12.3-15.git0423d89.fc25.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/docker/1.12.3/15.git0423d89.fc25/x86_64/docker-1.12.3-15.git0423d89.fc25.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/docker/1.12.3/15.git0423d89.fc25/x86_64/docker-common-1.12.3-15.git0423d89.fc25.x86_64.rpm Retrieving https://kojipkgs.fedoraproject.org//packages/docker/1.12.3/15.git0423d89.fc25/x86_64/container-selinux-1.12.3-15.git0423d89.fc25.x86_64.rpm Retrieving https://kojipkgs.fedoraproject.org//packages/docker/1.12.3/15.git0423d89.fc25/x86_64/docker-1.12.3-15.git0423d89.fc25.x86_64.rpm Retrieving https://kojipkgs.fedoraproject.org//packages/docker/1.12.3/15.git0423d89.fc25/x86_64/docker-common-1.12.3-15.git0423d89.fc25.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:docker-common-2:1.12.3-15.git0423################################# [ 17%] 2:container-selinux-2:1.12.3-15.git################################# [ 33%] /var/lib/selinux/final/targeted/contexts/files/file_contexts: Multiple different specifications for /var/lib/containers(/.*)? (system_u:object_r:gear_var_lib_t:s0 and system_u:object_r:container_var_lib_t:s0). /var/lib/selinux/final/targeted/contexts/files/file_contexts: Invalid argument libsemanage.semanage_validate_and_compile_fcontexts: setfiles returned error code 1. /usr/sbin/semodule: Failed! 3:docker-2:1.12.3-15.git0423d89.fc2################################# [ 50%] Cleaning up / removing... 4:docker-2:1.12.3-12.git97974ae.fc2################################# [ 67%] 5:container-selinux-2:1.12.3-12.git################################# [ 83%] 6:docker-common-2:1.12.3-12.git9797################################# [100%] ``` same thing happens on a pure install: Installing : container-selinux-2:1.12.3-15.git0423d89.fc25.x86_64 10/21 /var/lib/selinux/final/targeted/contexts/files/file_contexts: Multiple different specifications for /var/lib/containers(/.*)? (system_u:object_r:gear_var_lib_t:s0 and system_u:object_r:container_var_lib_t:s0). /var/lib/selinux/final/targeted/contexts/files/file_contexts: Invalid argument libsemanage.semanage_validate_and_compile_fcontexts: setfiles returned error code 1. /usr/sbin/semodule: Failed! (In reply to Dusty Mabe from comment #5) > same thing happens on a pure install: > > Installing : container-selinux-2:1.12.3-15.git0423d89.fc25.x86_64 > 10/21 > /var/lib/selinux/final/targeted/contexts/files/file_contexts: Multiple > different specifications for /var/lib/containers(/.*)? > (system_u:object_r:gear_var_lib_t:s0 and > system_u:object_r:container_var_lib_t:s0). > /var/lib/selinux/final/targeted/contexts/files/file_contexts: Invalid > argument > libsemanage.semanage_validate_and_compile_fcontexts: setfiles returned error > code 1. > /usr/sbin/semodule: Failed! Same here, didn't notice the first time when I upgraded. docker-1.12.3-15.git0423d89.fc25 has been pushed to the Fedora 25 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-2016-37c2c59240 Do semodule -d gear dnf reinstall container-selinux And it should work. We need to get gear dropped from selinux-policy. docker-1.12.4-2.git1b5971a.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-bb5ee53c0a docker-1.12.4-5.git1b5971a.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-2a18b9e056 docker-1.12.4-2.git1b5971a.fc25 has been pushed to the Fedora 25 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-2016-bb5ee53c0a docker-1.12.4-6.git1b5971a.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-44ed3dd527 docker-1.12.4-2.git1b5971a.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. docker-1.12.4-6.git1b5971a.fc25 is what fixes this bug, not 1.12.4-2 docker-1.12.4-6.git1b5971a.fc25 has been pushed to the Fedora 25 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-2016-44ed3dd527 docker-1.12.4-6.git1b5971a.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. |