Skip to content

Instantly share code, notes, and snippets.

@srics
Created December 23, 2014 21:36
Show Gist options
  • Save srics/48b52d1a642c9ce97f86 to your computer and use it in GitHub Desktop.
Save srics/48b52d1a642c9ce97f86 to your computer and use it in GitHub Desktop.
Edit apparmor policy to allow chained backing file for qcow2 disks (list all backing files in chain-level > 2)
$ diff -c /etc/apparmor.d/abstractions/libvirt-qemu.orig /etc/apparmor.d/abstractions/libvirt-qemu
*** /etc/apparmor.d/abstractions/libvirt-qemu.orig 2014-12-22 19:04:30.970000983 -0800
--- /etc/apparmor.d/abstractions/libvirt-qemu 2014-12-22 19:06:44.262003742 -0800
***************
*** 146,148 ****
--- 146,152 ----
# for ppc device-tree access
@{PROC}/device-tree/ r,
@{PROC}/device-tree/** r,
+
+ # allow following to support chained backing file(s)
+ # added by Sridhar Ramaswamy 12-22-2014
+ /opt/vms/_base_trusty64_openstack/_base_trusty64_openstack_disk.qcow2 r,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment