From 3f9a66fb7bb35a101d8be50d8f2fa238af62d11f Mon Sep 17 00:00:00 2001
From: jinlun <jinlun@huawei.com>
Date: Tue, 26 Dec 2023 17:18:00 +0800
Subject: [PATCH] add qemu_exec_t for stratovirt

---
 policy/modules/contrib/virt_supplementary.fc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/policy/modules/contrib/virt_supplementary.fc b/policy/modules/contrib/virt_supplementary.fc
index d27441f..5563457 100644
--- a/policy/modules/contrib/virt_supplementary.fc
+++ b/policy/modules/contrib/virt_supplementary.fc
@@ -62,6 +62,7 @@ HOME_DIR/\.local/share/gnome-boxes/images(/.*)? gen_context(system_u:object_r:sv
 /usr/bin/qemu-system-.*                 --      gen_context(system_u:object_r:qemu_exec_t,s0)
 /usr/bin/qemu-kvm                       --      gen_context(system_u:object_r:qemu_exec_t,s0)
 /usr/libexec/qemu.*                     --      gen_context(system_u:object_r:qemu_exec_t,s0)
+/usr/bin/stratovirt                     --      gen_context(system_u:object_r:qemu_exec_t,s0)
 
 # support for QEMU-GA
 /etc/qemu-ga/fsfreeze-hook\.d(/.*)?		gen_context(system_u:object_r:virt_qemu_ga_unconfined_exec_t,s0)
-- 
2.27.0

