On 08/12/2015 10:59 AM, [email protected] wrote: > Hi, > > [please Cc me any reply, I'm not subscribed to libvir-list.] > > it was reported [1] to Ubuntu that virt-aa-helper blocks access to the > OVMF files needed to boot UEFI virtual machines in QEMU. After I've > confirmed that on Debian sid, Jamie Strandboge suggested a fix. > I've successfully tested in my environment (applied on top of 1.2.18) > so I'm forwarding it here. > > [1] https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1483071 >
diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c
index 4ce1e7a..357dde4 100644
--- a/src/security/virt-aa-helper.c
+++ b/src/security/virt-aa-helper.c
@@ -572,8 +572,9 @@ valid_path(const char *path, const bool readonly)
};
/* override the above with these */
const char * const override[] = {
- "/sys/devices/pci", /* for hostdev pci devices */
- "/etc/libvirt-sandbox/services/" /* for virt-sandbox service config */
+ "/sys/devices/pci", /* for hostdev pci devices */
+ "/etc/libvirt-sandbox/services/", /* for virt-sandbox service config */
+ "/usr/share/ovmf/" /* for OVMF images */
};
if (path == NULL) {
Unsurprisingly, this looks good to me.
ACK
--
Jamie Strandboge http://www.ubuntu.com/
signature.asc
Description: OpenPGP digital signature
-- AppArmor mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
