[refpolicy] [PATCH 2/2] virt: Allow creating qemu guest agent socket

Jason Zaman jason at perfinion.com
Sat Sep 5 07:35:12 UTC 2015


This is needed for the host side guest agent socket for qemu.

type=AVC msg=audit(1441210375.086:110241): avc:  denied  { create } for
pid=25153 comm="libvirtd"
scontext=system_u:system_r:virtd_t:s0-s0:c0.c1023
tcontext=system_u:system_r:svirt_t:s0:c110,c185
tclass=unix_stream_socket permissive=0
---
 virt.te | 1 +
 1 file changed, 1 insertion(+)

diff --git a/virt.te b/virt.te
index c6ec8bc..6187ef1 100644
--- a/virt.te
+++ b/virt.te
@@ -451,6 +451,7 @@ allow virtd_t self:netlink_kobject_uevent_socket create_socket_perms;
 allow virtd_t self:netlink_route_socket nlmsg_write;
 
 allow virtd_t virt_domain:process { getattr getsched setsched transition signal signull sigkill };
+allow virtd_t virt_domain:unix_stream_socket create_stream_socket_perms;
 dontaudit virtd_t virt_domain:process { siginh noatsecure rlimitinh };
 
 allow virtd_t svirt_lxc_domain:unix_stream_socket { create_stream_socket_perms connectto };
-- 
2.4.6



More information about the refpolicy mailing list