[libvirt] [PATCH 09/10] apparmor, libvirt-qemu: Allow read access to overcommit_memory

Stefan Bader stefan.bader at canonical.com
Tue May 23 16:22:47 UTC 2017

From: Jamie Strandboge <jamie at ubuntu.com>

Allow qemu to read @{PROC}/sys/vm/overcommit_memory.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt at canonical.com>
Signed-off-by: Stefan Bader <stefan.bader at canonical.com>
 examples/apparmor/libvirt-qemu | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/apparmor/libvirt-qemu b/examples/apparmor/libvirt-qemu
index e2b0dfd..89525b3 100644
--- a/examples/apparmor/libvirt-qemu
+++ b/examples/apparmor/libvirt-qemu
@@ -26,6 +26,7 @@
   # only modify its comm value or those in its thread group.
   owner @{PROC}/@{pid}/task/@{tid}/comm rw,
   @{PROC}/sys/kernel/cap_last_cap r,
+  @{PROC}/sys/vm/overcommit_memory r,
   # For hostdev access. The actual devices will be added dynamically
   /sys/bus/usb/devices/ r,

More information about the libvir-list mailing list