@@ -64,7 +64,7 @@ early_mounts(void)
mount("tmpfs", "/dev", "tmpfs", MS_NOATIME | MS_NOEXEC | MS_NOSUID, "mode=0755,size=512K");
ignore(symlink("/tmp/shm", "/dev/shm"));
mkdir("/dev/pts", 0755);
- mount("devpts", "/dev/pts", "devpts", MS_NOATIME | MS_NOEXEC | MS_NOSUID, "mode=600");
+ mount("devpts", "/dev/pts", "devpts", MS_NOATIME | MS_NOEXEC | MS_NOSUID, 0);
early_dev();
}
@@ -50,7 +50,7 @@ void procd_coldplug(void)
umount2("/dev/", MNT_DETACH);
mount("tmpfs", "/dev", "tmpfs", MS_NOATIME | MS_NOEXEC | MS_NOSUID, "mode=0755,size=512K");
mkdir("/dev/pts", 0755);
- mount("devpts", "/dev/pts", "devpts", MS_NOEXEC | MS_NOSUID, 0);
+ mount("devpts", "/dev/pts", "devpts", MS_NOATIME | MS_NOEXEC | MS_NOSUID, 0);
}
ignore(symlink("/tmp/shm", "/dev/shm"));
The default mode is already 600, no need to specify it. Access times are also irrelevant. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> --- initd/early.c | 2 +- plug/coldplug.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)