未验证 提交 dca69148 编写于 作者: O openharmony_ci 提交者: Gitee

!470 修复config 在沙盒中挂载失败的问题

Merge pull request !470 from 熊磊/init330_1
......@@ -21,6 +21,7 @@
"chmod 0771 /data",
"mkdir /data/service 0711 root root",
"mkdir /data/service/el0 0711 root root",
"mount configfs none /config nodev noexec nosuid",
"mksandbox system",
"mksandbox chipset",
"load_persist_params ",
......
......@@ -50,9 +50,6 @@ void MountBasicFs(void)
if (mount("tmpfs", "/storage", "tmpfs", MS_NOEXEC | MS_NODEV| MS_NOSUID, "mode=0755") != 0) {
INIT_LOGE("Mount storage failed. %s", strerror(errno));
}
if (mount("none", "/config", "configfs", MS_NOEXEC | MS_NODEV| MS_NOSUID, "mode=0755") != 0) {
INIT_LOGE("Mount configfs failed. %s", strerror(errno));
}
if (mkdir("/dev/pts", S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) != 0) {
INIT_LOGE("mkdir /dev/pts failed. %s", strerror(errno));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册