]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virt-aa-helper: allow riscv64 EDK II
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 9 Dec 2024 11:41:10 +0000 (12:41 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 10 Dec 2024 08:39:53 +0000 (09:39 +0100)
Debian has packaged EDK II for 64-bit RISC-V in directory
/usr/share/qemu-efi-riscv64/.

For usage with libvirt update the AppArmor helper.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/security/virt-aa-helper.c

index e82b5de2b4cae7a8817901124e8497a0e8709e3b..1cf9d7ad3d8800dd4ef8e75bbfb74324e1b01f47 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-riscv64/",
         "/usr/share/qemu/",                  /* SUSE path for OVMF and AAVMF images */
         "/usr/lib/u-boot/",
         "/usr/lib/riscv64-linux-gnu/opensbi",