]> xenbits.xensource.com Git - libvirt.git/commitdiff
AppArmor: allow QEMU to set_process_name.
authorintrigeri <intrigeri+libvirt@boum.org>
Mon, 12 Dec 2016 10:59:32 +0000 (10:59 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 12 Dec 2016 14:08:45 +0000 (14:08 +0000)
https://bugzilla.redhat.com/show_bug.cgi?id=1369281

Acked-by: Christian Ehrhardt <christian.ehrhardt@canonical.co>
examples/apparmor/libvirt-qemu

index 133c2eb093f8ec65e2a486c979394ec06b1d2244..a9020aa8079ee4a4491a80d4e86d04740dcb03cf 100644 (file)
@@ -21,6 +21,9 @@
   /dev/ptmx rw,
   /dev/kqemu rw,
   @{PROC}/*/status r,
+  # Per man(5) proc, the kernel enforces that a thread may
+  # 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,
 
   # For hostdev access. The actual devices will be added dynamically