]> git.ipfire.org Git - thirdparty/libvirt.git/commit
apparmor: allow unix stream for p2p migrations
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Tue, 19 Dec 2017 13:13:06 +0000 (14:13 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 3 Jan 2018 08:45:21 +0000 (09:45 +0100)
commit8f882cf36e4709b103fa237253052d09ff349cfe
tree6c8b58c95cbcf7841bd00b483de43b12d83bcd93
parent4ce06ba6f43ebaeeb6d47d70237fd1c747f42883
apparmor: allow unix stream for p2p migrations

On live migration with --p2p like:
 $ virsh migrate --live --p2p kvmguest-bionic-normal \
       qemu+ssh://10.6.221.80/system

We hit an apparmor deny like:
  apparmor="DENIED" operation="file_inherit"
  profile="/usr/sbin/libvirtd" pid=23477 comm="ssh" family="unix"
  sock_type="stream" protocol=0 requested_mask="send receive"
  denied_mask="send" addr=none peer_addr=none peer="unconfined"

The rule is not perfect, but can't be restricted further at the moment
(new upstream kernel features needed). For now the lack of a profile on the
peer as well as comm not being a conditional on rules do not allow to filter
further.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
examples/apparmor/usr.sbin.libvirtd