]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Enable mount namespace
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 6 Dec 2016 16:35:12 +0000 (17:35 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 15 Dec 2016 08:25:16 +0000 (09:25 +0100)
https://bugzilla.redhat.com/show_bug.cgi?id=1404952

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c

index 12114ce700761dedd26e58ae67bb26c903d50161..d92b303c6e5a8924f4a181a44f19b3aaf267ec17 100644 (file)
@@ -7396,7 +7396,8 @@ qemuDomainCreateNamespace(virQEMUDriverPtr driver,
         }
     }
 
-    /* Enabling of the mount namespace goes here. */
+    if (qemuDomainEnableNamespace(vm, QEMU_DOMAIN_NS_MOUNT) < 0)
+        goto cleanup;
 
     ret = 0;
  cleanup: