Bug 1071505
Summary: | SELinux is preventing /usr/sbin/collectd from 'write' accesses on the sock_file libvirt-sock-ro. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Andrew Cooks <acooks> |
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: | 20 | CC: | apevec, dominick.grift, dwalsh, lvrabec, mail, mgrepl, ruben |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:ed2f1f1619351972cb2aca733ebb5b767140a253d90ed4d18d21168ab7e427b9 | ||
Fixed In Version: | selinux-policy-3.12.1-149.fc20 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-04-09 13:21:28 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
Andrew Cooks
2014-03-01 03:45:15 UTC
Is collectd supposed to connect to libvirt? I believe the libvirt plugin[1] for collectd, installed by the collectd-virt package[2] is causing the violation. (I specifically installed collectd-virt; it wasn't pulled in as a collectd dependency). My first guess is that it doesn't need write access and if it does it should open /run/libvirt/libvirt-sock instead of /run/libvirt/libvirt-sock-ro [3]. Since this bug report should be for the collectd-virt package, not collectd or selinux-policy, so I'm changing the "component" from selinux-policy to the closest matching thing: collectd. 1. https://collectd.org/wiki/index.php/Plugin:libvirt 2. https://apps.fedoraproject.org/packages/collectd-virt 3. http://libvirt.org/guide/html/Application_Development_Guide-Architecture-Transports.html In reply to comment #1 The libvirt plugin for collectd sends commands to the ro socket using the libvirt api. Those are just read-only commands from a libvirt point of view, but it still needs to be able to write to the socket. Can this be adjusted in the policy? commit 3ff85522ee22c61c6d24700037b864dc69f4634f fixes this in git. selinux-policy-3.12.1-149.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-149.fc20 Package selinux-policy-3.12.1-149.fc20: * should fix your issue, * was pushed to the Fedora 20 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.12.1-149.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-4604/selinux-policy-3.12.1-149.fc20 then log in and leave karma (feedback). selinux-policy-3.12.1-149.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |