提交 71f8443c 编写于 作者: Z zhangkaixiang

mount mnt dir to MS_SHARED

Signed-off-by: Nzhangkaixiang <zhangkaixiang5@huawei.com>
上级 c94657fd
......@@ -34,6 +34,9 @@ void MountBasicFs(void)
if (mount("tmpfs", "/mnt", "tmpfs", MS_NOSUID, "mode=0755") != 0) {
INIT_LOGE("Mount tmpfs failed. %s", strerror(errno));
}
if (mount(NULL, "/mnt", NULL, MS_SHARED, NULL) != 0) {
INIT_LOGE("Mount tmpfs shared failed. %s", strerror(errno));
}
if (mount("tmpfs", "/storage", "tmpfs", MS_NOEXEC | MS_NODEV| MS_NOSUID, "mode=0755") != 0) {
INIT_LOGE("Mount storage failed. %s", strerror(errno));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册