| Summary: | selinux problems accessing xen from libvirt | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Michael Young <m.a.young> |
| Component: | selinux-policy-targeted | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Ben Levenson <benl> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | dwalsh |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.10.0-38.fc16 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-10-09 19:35:42 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Michael Young
2011-10-01 19:33:50 UTC
Sorry, the errors I posted above were older than I realised and may not still be current. Here are some new ones (including some which may be with a xen guest running)
type=AVC msg=audit(1317503403.133:66): avc: denied { getattr } for pid=1248 comm="xl" path="/var/run/xenstored.pid" dev=tmpfs ino=18157 scontext=system_u:system_r:virsh_t:s0 tcontext=system_u:object_r:xenstored_var_run_t:s0 tclass=file
type=AVC msg=audit(1317503850.899:99): avc: denied { execute } for pid=1535 comm="virsh" name="xend" dev=dm-5 ino=431318 scontext=system_u:system_r:virsh_t:s0 tcontext=system_u:object_r:xend_exec_t:s0 tclass=file
type=AVC msg=audit(1317503850.899:99): avc: denied { read open } for pid=1535 comm="virsh" name="xend" dev=dm-5 ino=431318 scontext=system_u:system_r:virsh_t:s0 tcontext=system_u:object_r:xend_exec_t:s0 tclass=file
type=AVC msg=audit(1317503850.899:99): avc: denied { execute_no_trans } for pid=1535 comm="virsh" path="/usr/sbin/xend" dev=dm-5 ino=431318 scontext=system_u:system_r:virsh_t:s0 tcontext=system_u:object_r:xend_exec_t:s0 tclass=file
type=AVC msg=audit(1317503850.949:104): avc: denied { getattr } for pid=1535 comm="xend" path="/usr/sbin/xend" dev=dm-5 ino=431318 scontext=system_u:system_r:virsh_t:s0 tcontext=system_u:object_r:xend_exec_t:s0 tclass=file
type=AVC msg=audit(1317503850.949:105): avc: denied { ioctl } for pid=1535 comm="xend" path="/usr/sbin/xend" dev=dm-5 ino=431318 scontext=system_u:system_r:virsh_t:s0 tcontext=system_u:object_r:xend_exec_t:s0 tclass=file
type=AVC msg=audit(1317556148.669:69): avc: denied { getattr } for pid=1248 comm="xl" path="/var/run/xenstored.pid" dev=tmpfs ino=18185 scontext=system_u:system_r:virsh_t:s0 tcontext=system_u:object_r:xenstored_var_run_t:s0 tclass=file
type=AVC msg=audit(1317556624.321:94): avc: denied { sys_module } for pid=2141 comm="brctl" capability=16 scontext=system_u:system_r:brctl_t:s0-s0:c0.c1023 tcontext=system_u:system_r:brctl_t:s0-s0:c0.c1023 tclass=capability
Fixed in selinux-policy-3.10.0-36.fc16 selinux-policy-3.10.0-36.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-36.fc16 Package selinux-policy-3.10.0-36.fc16: * should fix your issue, * was pushed to the Fedora 16 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-36.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-36.fc16 then log in and leave karma (feedback). The problem isn't entirely fixed. I still get messages like
type=AVC msg=audit(1317843757.701:65): avc: denied { getattr } for pid=1246 comm="xl" path="/var/run/xenstored.pid" dev=tmpfs ino=18473 scontext=system_u:system_r:virsh_t:s0 tcontext=system_u:object_r:xenstored_var_run_t:s0 tclass=file
Are you getting more AVC msgs in permissive mode? #setenforce 0 re-test it. # ausearch -m avc -ts recent #setenforce 1 These messages were all generated in permissive mode. The message in comment 5 is essentially the same as one in comment 3 (and one in comment 1) so it isn't a new discovery. Fixed in selinux-policy-3.10.0-38.fc16 selinux-policy-3.10.0-38.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. |