提交 ae4e916f 编写于 作者: G Gao feng 提交者: Eric Blake

LXC: controller: change the owner of disk to the root of container

These disk devices are created for container,
the owner should be the root user of container.
Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
上级 7161f0a3
......@@ -1369,6 +1369,9 @@ static int virLXCControllerSetupDisk(virLXCControllerPtr ctrl,
goto cleanup;
}
if (virLXCControllerChown(ctrl, dst) < 0)
goto cleanup;
/* Labelling normally operates on src, but we need
* to actally label the dst here, so hack the config */
def->src = dst;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册