Mount /dev with nosuid
Change-Id: I66c7fcf9b65405dfc12d344ef3ed225d0ad2db84
This commit is contained in:
parent
fbd0827372
commit
150f19e373
|
@ -673,7 +673,7 @@ int main(int argc, char **argv)
|
|||
mkdir("/proc", 0755);
|
||||
mkdir("/sys", 0755);
|
||||
|
||||
mount("tmpfs", "/dev", "tmpfs", 0, "mode=0755");
|
||||
mount("tmpfs", "/dev", "tmpfs", MS_NOSUID, "mode=0755");
|
||||
mkdir("/dev/pts", 0755);
|
||||
mkdir("/dev/socket", 0755);
|
||||
mount("devpts", "/dev/pts", "devpts", 0, NULL);
|
||||
|
|
Loading…
Reference in New Issue