Bug 1716044
Summary: | SELinux is preventing dockerd-current from using the 'net_broadcast' capabilities. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Allan Poulsen <allan.poulsen> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | high | ||
Version: | 30 | CC: | aconole, chrisw, dwalsh, fleitner, jpazdziora, lvrabec, mcroce, mgrepl, plautrba, tgraf, tredaelli, zpytela |
Target Milestone: | --- | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:44c6270f4dc9af1fa736768a600eba9d9e3cee9111701f8c59ab0827eab786c6; | ||
Fixed In Version: | selinux-policy-3.14.3-52.fc30 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-11-17 01:13:27 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
Allan Poulsen
2019-06-01 09:49:16 UTC
Description of problem: Trying to start a docker container with an openvswitch instance active simultaneously Version-Release number of selected component: selinux-policy-3.14.3-37.fc30.noarch Additional info: reporter: libreport-2.10.0 hashmarkername: setroubleshoot kernel: 5.1.5-300.fc30.x86_64 type: libreport This AVC looks like openvswitch was not run as a container, it was direcly launched or docker daemon is not running as contianer_runtime_t. openvswitch_t is not a container label. You would need to run the container with --security-opt label=disable and the process should be running as spc_t. BTW Have you looked into Podman for running containers? In any case, running just dnf install -y /usr/lib/systemd/system/ovs-vswitchd.service systemctl start ovs-vswitchd.service on Fedora 29 yields the same AVC denial. Is Open vSwitch really only supported in containers and not on Fedora host? This is a regression against Fedora 28. Package versions are openvswitch-2.10.0-3.fc29.x86_64 selinux-policy-3.14.2-59.fc29.noarch Hi All, I'm not aware that openvswitch is supported only in containers, but it sound very unlikely to me. The reason why openvswitch has net_broadcast capability in container is because of this boolean: virt_sandbox_use_all_caps turned on by default. On the other hand, I'm not sure if this is regression against Fedora 28, because this capability was not allowed on F28. Jan, Do we know which feature in openvswitch require net_broadcast capability? THanks, Lukas. I have no idea. I merely install the package and start the service. This likely needs to be brought to the Open vSwitch's maintainers attention. Hi Openvswich folks, Is net_broadcast capability used by openvswitch in Fedora 29+ ? Feel free to move it back to selinux-policy component, after we find out if it make sense to allow in selinux-policy. Thanks, Lukas. It's needed - OvS needs to listen for certain multicast sockets that need this capability. commit 3b7467adffac219eb8ab24cabb0bfcbc61c566da (HEAD -> rawhide) Author: Lukas Vrabec <lvrabec> Date: Wed Oct 2 12:46:39 2019 +0200 Add net_broadcast capability to openvswitch_t domain BZ(1716044) FEDORA-2019-6bbf3d600d has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-6bbf3d600d *** Bug 1758633 has been marked as a duplicate of this bug. *** selinux-policy-3.14.3-48.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-6bbf3d600d FEDORA-2019-6bbf3d600d has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-6bbf3d600d selinux-policy-3.14.3-49.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-6bbf3d600d FEDORA-2019-d68c9e27f8 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-d68c9e27f8 selinux-policy-3.14.3-50.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-d68c9e27f8 FEDORA-2019-f83217e2bf has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-f83217e2bf selinux-policy-3.14.3-51.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-f83217e2bf FEDORA-2019-70d80ad4bc has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-70d80ad4bc selinux-policy-3.14.3-52.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-70d80ad4bc selinux-policy-3.14.3-52.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report. |