Bug 1115533
Summary: | Attempt to start /bin/dbus-daemon --system --fork fails with Failed to drop capabilities: Operation not permitted | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Jan Pazdziora <jpazdziora> | ||||||
Component: | docker | Assignee: | Daniel Walsh <dwalsh> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 7.0 | CC: | bsarathy, dwalsh, jpazdziora, lnykryn, maci, mitr, mjenner, pahan | ||||||
Target Milestone: | rc | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2014-09-18 20:46:02 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: | 1109938 | ||||||||
Attachments: |
|
Description
Jan Pazdziora
2014-07-02 14:35:15 UTC
Or does it actually fail because CAP_AUDIT_WRITE is being added? +1 I am affected by this as well. Trying to run FreeIPA in a docker container. Created attachment 916918 [details]
build & run script for fake library and dbus
Created attachment 916919 [details]
fake library
was able to get it working with the good old LD_PRELOAD script. Test files attached Docker just added support for --cap-add which you should be able to figure out which capability you are missing. You should be able to drop caps but you might not have all of the caps you need. but using --cap-add will permanently add that capability to the container, which could be a security risk. :/ I was able to start the dbus-daemon without the capability and just faking the library calls for dbus-daemon. @dwalsh I put something together, might interest you http://maci0.wordpress.com/2014/07/23/run-systemd-in-an-unprivileged-docker-container/ Have you tried working with systemd-container? BTW I just added back AUDIT_WRITE to docker-1.1.1-3.el7.x86_64 For FreeIPA, I just run the dbus as dbus directly from systemd: https://github.com/adelton/docker-freeipa/commit/7a66b011dde9c60d63cc493904b798347f5530d3 That avoids the critical part of the code. Fixed in docker-1.1.2-8.el7.x86_64 (In reply to Daniel Walsh from comment #12) > Fixed in docker-1.1.2-8.el7.x86_64 Confirming that with this daemon, dbus-daemon process starts and is running. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1266.html |