]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: fix regression with fd labeling on migration
authorEric Blake <eblake@redhat.com>
Mon, 28 Mar 2011 21:50:22 +0000 (15:50 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 29 Mar 2011 13:12:29 +0000 (07:12 -0600)
commitdaa6aa687aa91121bce4e10649b62e3039810400
treeb6eeeb24b8501e49c902b4bbc1d4fb567b286d41
parent285e8a17690ef59ce45f6266d384986e93108960
qemu: fix regression with fd labeling on migration

My earlier testing for commit 34fa0de0 was done while starting
just-built libvirt from an unconfined_t shell, where the fds happened
to work when transferring to qemu.  But when installed and run under
virtd_t, failure to label the raw file (with no compression) or the
pipe (with compression) triggers SELinux failures when passing fds
over SCM_RIGHTS to svirt_t qemu.

* src/qemu/qemu_migration.c (qemuMigrationToFile): When passing
FDs, make sure they are labeled.
src/qemu/qemu_migration.c