]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Make pid available for security managers in qemuProcessAttach
authorLuyao Huang <lhuang@redhat.com>
Mon, 1 Dec 2014 09:54:35 +0000 (17:54 +0800)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 1 Dec 2014 11:04:38 +0000 (12:04 +0100)
commitf8c1fb3d2e38f181912544e956af068acde0e900
treefab78ca0cdf1668bb8d82abcea78545a0c97d320
parent03caa543c236d47fe93fd5dba4d1ea1539649719
qemu: Make pid available for security managers in qemuProcessAttach

There are some small issue in qemuProcessAttach:

1.Fix virSecurityManagerGetProcessLabel always get pid = 0,
move 'vm->pid = pid' before call virSecurityManagerGetProcessLabel.

2.Use virSecurityManagerGenLabel to get image label.

3.Fix always set selinux label for other security driver label.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
src/qemu/qemu_process.c