Bug 1145270
Summary: | updating Docker cause users in docker group to not be able to use docker service | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Eric Rich <erich> |
Component: | systemd | Assignee: | systemd-maint |
Status: | CLOSED DUPLICATE | QA Contact: | qe-baseos-daemons |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.0 | CC: | dwalsh, jpazdziora, jyundt, lars, lnykryn, lsm5, msekleta, riehecky, sghosh, systemd-maint-list, yundtj |
Target Milestone: | rc | Keywords: | NeedsTestCase |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | systemd-208-12.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-10-01 10:11:55 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, 1145299 |
Description
Eric Rich
2014-09-22 17:45:10 UTC
Well that is probably a good thing. ls -l /var/run/docker.sock ls -l /var/run/docker.sock srw-rw----. 1 root docker 0 Sep 19 12:54 /var/run/docker.sock This might be a bug in systemd... I think this is the same as: https://bugzilla.redhat.com/show_bug.cgi?id=1119282 systemd 208 does not support the SocketGroup directive, so it always creates the socket with root:root ownerhsip. On eric's system, running "chgrp docker /var/run/docker.sock" allowed a non-root user in the "docker" group to run docker. Note that running "chgrp" is a temporary workaround, because every time the socket is restarted (e.g., on reboot), it will get re-created with the root:root permissions. I have verified that lack of SocketGroup/SocketUser is the problem: Sep 30 14:52:27 host.example.com systemd[1]: [/usr/lib/systemd/system/docker.socket:8] Unknown lvalue 'SocketGroup' in section 'Socket' I am retargeting this bz to systemd. Note that the systemd 208 packages in F20 already have the necessary support backported. *** Bug 1146705 has been marked as a duplicate of this bug. *** Is this going to be fixed in 7.1? 7.0z? or 8.0? What does Closed NextRelease mean? Micahl have added "socket: add SocketUser= and SocketGroup= for chown()ing sockets in the file system" to 208-12 so it means that it will be in 7.1. Sorry for the confusion. This is dup of #1111761 which will be fixed in RHEL-7.1. *** This bug has been marked as a duplicate of bug 1111761 *** |