提交 40a8fe6d 编写于 作者: G Gao feng 提交者: Daniel P. Berrange

LXC: controller: change the owner of /dev to the root user of container

container will create /dev/pts directory in /dev.
the owner of /dev should be the root user of container.
Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
上级 ff1a6019
......@@ -1257,6 +1257,9 @@ static int virLXCControllerSetupDev(virLXCControllerPtr ctrl)
goto cleanup;
}
if (virLXCControllerChown(ctrl, dev) < 0)
goto cleanup;
ret = 0;
cleanup:
VIR_FREE(opts);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册