Bug 1441100
Summary: | Docker-latest could not run systemd container without privilege or seccomp | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Guohua Ouyang <gouyang> | |
Component: | docker-latest | Assignee: | Lokesh Mandvekar <lsm5> | |
Status: | CLOSED ERRATA | QA Contact: | atomic-bugs <atomic-bugs> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 7.3 | CC: | bbreard, dwalsh, gscrivan, imcleod, lfriedma, lsu, qcai | |
Target Milestone: | rc | Keywords: | Extras | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | docker-latest-1.13.1-6.gitb7732b0.el7_3 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1452751 (view as bug list) | Environment: | ||
Last Closed: | 2017-05-26 14:52:57 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: | 1452751 |
Description
Guohua Ouyang
2017-04-11 08:28:48 UTC
I believe this is because docker 1.13 blocks more syscalls than docker 1.12 via seccomp policy. As a workaround mentioned above, it needs --security-opt seccomp:unconfined to disable seccomp to get systemd container working with docker-latest here. docker 1.13 starts to block "name_to_handle_at" syscall by default. Once added that syscall to the seccomp allow-list, everything is working fine. I confirm that. I needed to add name_to_handle_at to get systemd working in a container. Blocker for 7.3.5. Antonio can you get a fix for this in rhel7.3.5 Alright, let's get this fixed. Fedora docker-latest already ships `/etc/docker-latest/seccomp.json`: 643 # install %%{repo} config directory 644 install -dp %{buildroot}%{_sysconfdir}/%{name} 645 # install defalut seccomp profile 646 install -p -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/%{name}/seccomp.json Lokesh, we need the same for RH docker-latest dist-git and also modify the systemd unit to have: 15 --seccomp-profile=/etc/docker-latest/seccomp.json \ ``--seccomp-profile=/etc/docker-latest/seccomp.json`` has been added in docker-latest-1.13.1-10.git475c5d2.el7.x86_64 , move to verified. 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. https://access.redhat.com/errata/RHBA-2017:1330 |