]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
apparmor, virt-aa-helper: Allow aarch64 UEFI.
authorWilliam Grant <wgrant@ubuntu.com>
Tue, 23 May 2017 16:22:41 +0000 (18:22 +0200)
committerGuido Günther <agx@sigxcpu.org>
Fri, 16 Jun 2017 08:38:52 +0000 (10:38 +0200)
Allow access to aarch64 UEFI images.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Guido Günther <agx@sigxcpu.org>
examples/apparmor/libvirt-qemu
src/security/virt-aa-helper.c
tests/virt-aa-helper-test

index e0988bbe1eeb0653a18d8cc8dd0c20b110e049e4..89466c9a365ff6b4859a2000e24cb4cc4305d7d4 100644 (file)
@@ -71,6 +71,8 @@
   /usr/share/seabios/** r,
   /usr/share/ovmf/** r,
   /usr/share/OVMF/** r,
+  /usr/share/AAVMF/** r,
+  /usr/share/qemu-efi/** r,
 
   # access PKI infrastructure
   /etc/pki/libvirt-vnc/** r,
index 52ab56c11a3f5d8ec1c565a5a7feeefbab3e233f..7f3b7ad08978a7d162f107569f4c492489b48d00 100644 (file)
@@ -513,7 +513,9 @@ valid_path(const char *path, const bool readonly)
         "/initrd",
         "/initrd.img",
         "/usr/share/OVMF/",              /* for OVMF images */
-        "/usr/share/ovmf/"               /* for OVMF images */
+        "/usr/share/ovmf/",              /* for OVMF images */
+        "/usr/share/AAVMF/",             /* for AAVMF images */
+        "/usr/share/qemu-efi/"           /* for AAVMF images */
     };
     /* override the above with these */
     const char * const override[] = {
index 73f3080d178c4bea6cd7b758c56200af773a9146..51072f622cff0b698f062320cf3de82969cba982 100755 (executable)
@@ -307,6 +307,8 @@ testme "0" "kernel" "-r -u $valid_uuid" "$test_xml"
 
 testfw "ovmf (old path)" "/usr/share/ovmf/OVMF.fd"
 testfw "OVMF (new path)" "/usr/share/OVMF/OVMF_CODE.fd"
+testfw "AAVMF" "/usr/share/AAVMF/AAVMF_CODE.fd"
+testfw "qemu-efi" "/usr/share/qemu-efi/QEMU_EFI.fd"
 
 sed -e "s,###UUID###,$uuid,g" -e "s,###DISK###,$disk1,g" -e "s,</os>,<initrd>$tmpdir/initrd</initrd></os>,g" "$template_xml" > "$test_xml"
 touch "$tmpdir/initrd"