diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c index 8ee4dd448fa5bbf07debdbe68e2e0a4b84632496..4c825aa05dc86ef9f3e45128cc5e456c4206602b 100644 --- a/src/lxc/lxc_controller.c +++ b/src/lxc/lxc_controller.c @@ -1548,6 +1548,10 @@ virLXCControllerSetupDevPTS(virLXCControllerPtr ctrl) goto cleanup; } + if ((virLXCControllerChown(ctrl, ctrl->devptmx) < 0) || + (virLXCControllerChown(ctrl, devpts) < 0)) + goto cleanup; + ret = 0; cleanup: