Bug 1591105
Summary: | SELINUX prevent qemu-kvm process started by libvirt to read/write /dev/vhost-vsock | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | yafu <yafu> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED DUPLICATE | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
Severity: | high | Docs Contact: | |
Priority: | urgent | ||
Version: | 7.6 | CC: | dyuan, fjin, jtomko, lmen, lvrabec, mgrepl, mmalik, plautrba, ssekidde, xuzhang, yafu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-06-25 08:51:15 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: | 1291851 |
Description
yafu
2018-06-14 05:27:07 UTC
tcontext=system_u:object_r:device_t:s0 ^^ your /dev/vhost-vsock is still labeled as device_t Can you try restoring the new default: # restorecon /dev/vhost-vsock # ls -lZ /dev/vhost-vsock crw-------. root root system_u:object_r:vhost_device_t:s0 /dev/vhost-vsock It works for me with: selinux-policy-3.13.1-203.el7.noarch libvirt-4.4.0-2.el7.x86_64 (In reply to Ján Tomko from comment #2) > tcontext=system_u:object_r:device_t:s0 > ^^ your /dev/vhost-vsock is still labeled as device_t > > Can you try restoring the new default: > # restorecon /dev/vhost-vsock > # ls -lZ /dev/vhost-vsock > crw-------. root root system_u:object_r:vhost_device_t:s0 /dev/vhost-vsock > > It works for me with: > selinux-policy-3.13.1-203.el7.noarch > libvirt-4.4.0-2.el7.x86_64 It works well after restoring /dev/vhost-vsock. But /dev/vhost-vsock is labeled as device_t after upgrade selinux-policy to 3.13.1-203. Do I need to reboot the os after upgrading selinux-policy? My test steps is: #yum -y update selinux-policy #rpm -q selinux-policy selinux-policy-3.13.1-203.el7.noarch #modprobe vhost_vsock #ll-Z /dev/vhost-vsock crw-------. root root system_u:object_r:device_t:s0 /dev/vhost-vsock *** This bug has been marked as a duplicate of bug 1584011 *** |