diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index 9bb62183932ee48d76762bed71aa3bfade9213b0..0636eabce41c2fe128912b6240d9c3df65ec94ed 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -1366,14 +1366,14 @@ static int lxcContainerChild( void *data ) 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);