]> xenbits.xensource.com Git - libvirt.git/commit
apparmor: fix ptrace rules with kernel 4.18
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Fri, 24 Aug 2018 06:07:39 +0000 (08:07 +0200)
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>
Mon, 27 Aug 2018 08:46:45 +0000 (10:46 +0200)
commit8741b9435108b1f0d87670e44e1ed75f806b7791
treeac6408728c977bcafe86c1652d75fb7e922ee829
parent171aa72baaee3bf3d827a9e7ed98ac7d184e4cfb
apparmor: fix ptrace rules with kernel 4.18

Due to kernel upstream change 338d0be4 ("apparmor: fix ptrace read check")
libvirt now hits apparmor denies like:
  apparmor="DENIED" operation="ptrace" profile="/usr/sbin/libvirtd"
  pid=4409 comm="libvirtd" requested_mask="read" denied_mask="read"
  peer="libvirt-14e92a75-7668-4b97-8f92-322fc1b9c78a"

Extend the ptrace rule to also allow 'ptrace (read)' for libvirtd to work
with these newer kernels.

Fixes: https://bugs.launchpad.net/bugs/1788603
Reported-by: Thadeu Lima de Souza Cascardo <thadeu.cascardo@canonical.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
Acked-by: Jamie Strandboge <jamie@canonical.com>
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
examples/apparmor/usr.sbin.libvirtd