Bug 851860
Summary: | selinux policy is preventing libvirt-guests to shutdown or suspend guests | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Gerd v. Egidy <gerd> |
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: | 17 | CC: | dave.downing, dominick.grift, dwalsh, kenny, mgrepl |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-09-21 23:59:13 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: | 843836 |
Description
Gerd v. Egidy
2012-08-26 15:40:49 UTC
Did you try to create a local policy module with this rules? (In reply to comment #1) > Did you try to create a local policy module with this rules? yes, then everything works as expected for me. But I just run qemu/kvm virtualization on my machine. It may be that it still fails with any of the other virtualization backends that libvirt supports. I think the codepaths and syscalls used within virsh to connect to them are different then. Fixed in selinux-policy-3.10.0-148.fc17 I had to add this in order to get everything to work after updating to -148.fc17: allow virsh_t virtd_exec_t:file getattr; I can confirm Kennys report: # rpm -q selinux-policy selinux-policy-3.10.0-148.fc17.noarch when stopping the libvirt-guests service I get this denied message in the audit log: type=AVC msg=audit(1346528581.292:51): avc: denied { getattr } for pid=5176 comm="virsh" path="/usr/sbin/libvirtd" dev="sda1" ino=1587265 scontext=system_u:system_r:virsh_t:s0 tcontext=system_u:object_r:virtd_exec_t:s0 tclass=file adding this to the policy fixes the problem: allow virsh_t virtd_exec_t:file getattr; Added also a rule for this AVC msg. selinux-policy-3.10.0-149.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-149.fc17 Package selinux-policy-3.10.0-149.fc17: * should fix your issue, * was pushed to the Fedora 17 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.10.0-149.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-14301/selinux-policy-3.10.0-149.fc17 then log in and leave karma (feedback). selinux-policy-3.10.0-149.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. |