Bug 1179488
Summary: | SELinux is preventing docker from using the 'setsched' accesses on a process. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | M. Edward (Ed) Borasky <znmeb> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 21 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, znmeb |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:d303cdc734eeea3293782d302eb4bb0418df0807b7787b8f2bdf1edb54dd5a55 | ||
Fixed In Version: | selinux-policy-3.13.1-105.fc21 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-01-30 23:55:19 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
M. Edward (Ed) Borasky
2015-01-06 21:52:22 UTC
1cb9223c43e08147321deaa3cdcfd6741777f1a6 fixes this in git. Are you running with a BTRFS back end? Or just disabling SELinux for docker? (In reply to Daniel Walsh from comment #2) > Are you running with a BTRFS back end? Or just disabling SELinux for docker? Neither - all my filesystems are ext4 and I'm only doing setbools as the troubleshooter recommends them. What I can't understand then is why is your container running as unconfined_t and not svirt_lxc_net_t? We have a fix coming for the setsched problem, but by default your containers should be running with a locked down context. What does ps -auxZ | grep docker show? (In reply to Daniel Walsh from comment #4) > What I can't understand then is why is your container running as > unconfined_t and not svirt_lxc_net_t? > > We have a fix coming for the setsched problem, but by default your > containers should be running with a locked down context. > What does > > ps -auxZ | grep docker > > show? $ ps -auxZ | grep docker system_u:system_r:docker_t:s0 root 21985 0.0 0.0 359016 16140 ? Ssl Jan06 0:01 /usr/bin/docker -d -H fd:// --selinux-enabled Is there a config or labelling step I missed? I just did "yum install docker-io", started and enabled the daemon and added myself to the 'docker' group. What does docker run --ti --rm fedora ps -eZ Show? (In reply to Daniel Walsh from comment #6) > What does > > docker run --ti --rm fedora ps -eZ > > Show? $ ps -eZ | grep docker unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 16627 pts/1 00:00:00 docker system_u:system_r:docker_t:s0 21985 ? 00:00:02 docker That is not what I asked.
> What does
>
> docker run --ti --rm fedora ps -eZ
>
> Show?
(In reply to Daniel Walsh from comment #8) > That is not what I asked. > > > What does > > > > docker run --ti --rm fedora ps -eZ > > > > Show? $ docker run -ti --rm fedora ps -eZ LABEL PID TTY TIME CMD system_u:system_r:svirt_lxc_net_t:s0:c671,c755 1 ? 00:00:00 ps Ok that looks good. Not sure why it ran as unconfined_t for one of your runs. commit 839860456add3770d21bd66ec96b4d5d2f461490 Author: Dan Walsh <dwalsh> Date: Tue Dec 16 07:54:08 2014 -0500 Allow docker to setsched on unconfined_t user selinux-policy-3.13.1-105.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-105.fc21 Package selinux-policy-3.13.1-105.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.13.1-105.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-1337/selinux-policy-3.13.1-105.fc21 then log in and leave karma (feedback). selinux-policy-3.13.1-105.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. |