]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_namespace: Don't build namespace if domain doesn't have it enabled
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 21 Aug 2020 13:49:29 +0000 (15:49 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 24 Aug 2020 17:19:47 +0000 (19:19 +0200)
commitdb37396e4106821099d345ec5cf93d21f599959b
treef743ccbef1fa26dbb2c172602757baeffdf1320e
parent2d93cbdea9d1b8dbf36bc0ffee6cb73d83d208c7
qemu_namespace: Don't build namespace if domain doesn't have it enabled

Even if namespaces are disabled, then due to a missing check at the
beginning of qemuDomainBuildNamespace(), the domain startup code
still tries to populate (nonexistent) domain's namespace.

Fixes: 8da362fe62766b4eee209cd3ce591ceb62299d13
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_namespace.c