From: jason@perfinion.com (Jason Zaman) Date: Sat, 5 Sep 2015 15:35:12 +0800 Subject: [refpolicy] [PATCH 2/2] virt: Allow creating qemu guest agent socket In-Reply-To: <1441438512-1237-1-git-send-email-jason@perfinion.com> References: <1441438512-1237-1-git-send-email-jason@perfinion.com> Message-ID: <1441438512-1237-2-git-send-email-jason@perfinion.com> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com 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