]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
apparmor: read only access to overcommit_memory
authorJamie Strandboge <jamie@ubuntu.com>
Mon, 3 Aug 2020 11:41:33 +0000 (13:41 +0200)
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>
Mon, 10 Aug 2020 05:32:06 +0000 (07:32 +0200)
Allow qemu to read @{PROC}/sys/vm/overcommit_memory.
This is read on guest start-up and (as read-only) not a
critical secret that has to stay hidden.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Jamie Strandboge <jamie@ubuntu.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/security/apparmor/libvirt-qemu

index 2d08d6f7ad15ce4847085c2fea24c11f08eb477b..b132cf02262606fb0719096ba2b994631a924a53 100644 (file)
@@ -32,6 +32,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,