Bug 1416896
Summary: | container-selinux not properly setting labels on /usr/bin/docker* | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Jake Hunsaker <jhunsaker> | ||||
Component: | docker | Assignee: | Lokesh Mandvekar <lsm5> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | atomic-bugs <atomic-bugs> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.3 | CC: | agross, amurdaca, bbreard, brubisch, dwalsh, jamills, lfriedma, lsm5 | ||||
Target Milestone: | rc | Keywords: | Extras | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-05-31 15:36:25 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: | 1186913, 1399379, 1422984 | ||||||
Attachments: |
|
Description
Jake Hunsaker
2017-01-26 17:44:33 UTC
What error are you seeing when you install the container-selinux package? I asked the customer for a bit of clarification on that point, here's what they said: ------8<----------- Basically, I am creating a file system in a partition on a second disk, bind mounting in /proc, /dev/, /sys, and /sys/fs/selinux and then installing rpms into it using --root. When it gets to docker-common, I get errors: error: unpacking of archive failed: cpio: lsetfilecon failed - Invalid argument error: docker-common-2:1.12.5-14.el7.x86_64: install failed and on docker-client: error: unpacking of archive failed on file /usr/bin/docker-current;588a4135: cpio: lsetfilecon failed - Invalid argument error: docker-client-2:1.12.5-14.el7.x86_64: install failed This is what I have been calling symptom #2, so that still exists. Note that the machine I am installing from has the same versions of container-selinux (1.12.5-14.el7) and selinux-policy-targeted (3.13.1-102.el7_3.13) installed as I am trying to install inside the --root. I have container-selinux listed in the same rpm -i command as the docker packages, but because docker-common and docker-client do not declare that they require it, the rpm command choose to install it after them. If I explicitly force container-selinux to be installed first, by doing a separate rpm -i command just for it, then the lsetfilecon errors go away. So that implies to me that those two package have some subtle interaction or dependency on the container-selinux command which is not declared, and only shows up during a --root style installation. ------8<----------- Yes this looks like docker-client does not require container-selinux to be installed first. It should have container-selinux in its pre, Probably happened with the break out of docker-client from docker. Created attachment 1245352 [details]
Patch to fix installation order of container selinux packages.
Yes this should be fixed. container-selinux-2.9-4.el7 |