]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
apparmor: Allow running loongarch64 VMs
authorXianglai Li <lixianglai@loongson.cn>
Tue, 17 Dec 2024 12:29:17 +0000 (20:29 +0800)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 2 Jan 2025 12:48:12 +0000 (13:48 +0100)
Allows to load firmware in the qemu-efi-loongarch64 directory
Allows the binary qemu-system-loongarch64 to be run

This makes it possible to run loongarch64 VMs when AppArmor
is enabled

Signed-off-by: Xianglai Li <lixianglai@loongson.cn>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/security/apparmor/libvirt-qemu.in
src/security/virt-aa-helper.c

index 694da26dea02c9b13ee3174a787444d3b1eba7f6..c63077574e61c4197eca48eee0e97634c332b4a2 100644 (file)
   /usr/bin/qemu-system-hppa rmix,
   /usr/bin/qemu-system-i386 rmix,
   /usr/bin/qemu-system-lm32 rmix,
+  /usr/bin/qemu-system-loongarch64 rmix,
   /usr/bin/qemu-system-m68k rmix,
   /usr/bin/qemu-system-microblaze rmix,
   /usr/bin/qemu-system-microblazeel rmix,
index 1cf9d7ad3d8800dd4ef8e75bbfb74324e1b01f47..94a28bf33168c3df712afc865515cc9db978459f 100644 (file)
@@ -481,6 +481,7 @@ valid_path(const char *path, const bool readonly)
         "/usr/share/AAVMF/",
         "/usr/share/qemu-efi/",              /* for AAVMF images */
         "/usr/share/qemu-efi-aarch64/",
+        "/usr/share/qemu-efi-loongarch64/",
         "/usr/share/qemu-efi-riscv64/",
         "/usr/share/qemu/",                  /* SUSE path for OVMF and AAVMF images */
         "/usr/lib/u-boot/",