Bug 987225
| Summary: | SELinux prevents virt-sandbox QEMU session from starting due to kernel label | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Dimitris <dimitris.on.linux> |
| Component: | libvirt-sandbox | Assignee: | Daniel Berrangé <berrange> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | berrange, crobinso, dwalsh, virt-maint |
| 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: | 2013-12-16 19:08:35 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: | |||
|
Description
Dimitris
2013-07-23 03:00:22 UTC
virt-sandbox should not be doing any SELinux stuff unless the user requests it, it should preferably run in the users context. (unconfined_t) or staff_t That's where it's running: $ id -Z unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 $ virt-sandbox -c qemu:///session /bin/date Unable to start sandbox: Failed to create domain: unable to set security context 'system_u:object_r:virt_content_t:s0' on '/boot/vmlinuz-3.9.9-302.fc19.x86_64': Operation not permitted Hang on, I had seen this and yet somehow managed to forget it while experimenting. From http://fedoraproject.org/wiki/QA:Testcase_VirtSandbox_CommonSetup : > Disable SELinux. This will be resolved in a future update > # setenforce 0 Is that still applicable? Setting to permissive does make this work. BTW, this used to work when run as root, but no longer as of today: $ sudo virt-sandbox -c qemu:///session /bin/date Unable to start sandbox: Failed to create domain: Unable to read from monitor: Connection reset by peer in the log: Aug 06 19:22:41 gaspode libvirtd[2171]: Unable to read from monitor: Connection reset by peer Aug 06 19:22:42 gaspode libvirtd[2171]: cannot lookup default selinux label for /tmp/libvirt-sandbox-initrd-hdJqwS No changes with libvirt-1.0.5.5-1.fc19 *** This bug has been marked as a duplicate of bug 903593 *** |