Mount /dev with noexec and nosuid

Change-Id: Iea182c1e6a72c281abd17bf83ff765bb9cb59270
This commit is contained in:
Nick Kralevich 2010-06-08 14:40:53 -07:00
parent 7b84e72cc4
commit 4ec97f2b25
1 changed files with 1 additions and 1 deletions

View File

@ -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_NOEXEC | MS_NOSUID, "mode=0755");
mkdir("/dev/pts", 0755);
mkdir("/dev/socket", 0755);
mount("devpts", "/dev/pts", "devpts", 0, NULL);