提交 6c7665e1 编写于 作者: G Gao feng 提交者: Daniel P. Berrange

LXC: controller: change the owner of /dev/pts and ptmx to the root of container

These files are created for container,
the owner should be the root user of container.
Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
上级 a591ae60
......@@ -1548,6 +1548,10 @@ virLXCControllerSetupDevPTS(virLXCControllerPtr ctrl)
goto cleanup;
}
if ((virLXCControllerChown(ctrl, ctrl->devptmx) < 0) ||
(virLXCControllerChown(ctrl, devpts) < 0))
goto cleanup;
ret = 0;
cleanup:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册