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

LXC: controller: change the owner of devices created on host

Since these devices are created for the container.
the owner should be the root user of the container.
Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
上级 40a8fe6d
......@@ -1305,6 +1305,10 @@ static int virLXCControllerPopulateDevices(virLXCControllerPtr ctrl)
path);
goto cleanup;
}
if (virLXCControllerChown(ctrl, path) < 0)
goto cleanup;
VIR_FREE(path);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册