提交 c52d3ee6 编写于 作者: H handyohos

bugfix: allow readproc group to access /proc.

1)mount /proc时增加gid选型,使得readproc组的进程可以访问/proc文件系统。
Signed-off-by: Nhandyohos <zhangxiaotian@huawei.com>
Change-Id: If2d7b80e72bdda35ae1615fdc055867de40cee1e
上级 93516c8d
......@@ -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.
先完成此消息的编辑!
想要评论请 注册