]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
apparmor: allow tunnelled migrations.
authorSerge Hallyn <serge.hallyn@canonical.com>
Fri, 2 Dec 2011 19:10:58 +0000 (13:10 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 2 Dec 2011 19:31:51 +0000 (12:31 -0700)
commit4cfdbfc46f0a7b777035a5b2af5ecbe7373a7e12
treeff63a7de377f5acf7b78cd332ea61167f08b4def
parentfd066925440ba48acc95d8f31b2c98b1cc9d582d
apparmor: allow tunnelled migrations.

The pathname for the pipe for tunnelled migration is unresolvable.  The
libvirt apparmor driver therefore refuses access, causing migration to
fail.  If we can't resolve the path, the worst that can happen is that
we should have given permission to the file but didn't.  Otherwise
(especially since this is a /proc/$$/fd/N file) the file is already open
and libvirt won't be refused access by apparmor anyway.

Also adjust virt-aa-helper to allow access to the
*.tunnelmigrate.dest.name files.

For more information, see https://launchpad.net/bugs/869553.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
src/security/security_apparmor.c
src/security/virt-aa-helper.c