Once lxcContainerSetStdio is invoked, logging will not work as
expected in libvirt_lxc. So make sure this is the last thing to
be called, in particular after setting the security process label
goto cleanup;
}
- if (lxcContainerSetStdio(argv->monitor, ttyfd, argv->handshakefd) < 0) {
- goto cleanup;
- }
-
VIR_DEBUG("Setting up security labeling");
if (virSecurityManagerSetProcessLabel(argv->securityDriver, vmDef) < 0)
goto cleanup;
+ if (lxcContainerSetStdio(argv->monitor, ttyfd, argv->handshakefd) < 0) {
+ goto cleanup;
+ }
+
ret = 0;
cleanup:
VIR_FREE(ttyPath);