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

!540 allow readproc group to access /proc

Merge pull request !540 from handy/0421
......@@ -56,7 +56,7 @@ void MountBasicFs(void)
if (mount("devpts", "/dev/pts", "devpts", 0, NULL) != 0) {
INIT_LOGE("Mount devpts failed. %s", strerror(errno));
}
if (mount("proc", "/proc", "proc", 0, "hidepid=2") != 0) {
if (mount("proc", "/proc", "proc", 0, "gid=3009,hidepid=2") != 0) {
INIT_LOGE("Mount procfs failed. %s", strerror(errno));
}
if (mount("sysfs", "/sys", "sysfs", 0, NULL) != 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册