serenity/Base/etc/fstab
Sergey Bugaev fee6d0a3a6 Kernel+Base: Mount root as nodev,nosuid
Then bind-mount /dev and /bin while adding back the appropriate permissions :^)
2020-01-12 20:02:11 +01:00

10 lines
365 B
Text

# Root file system. This is a fake entry which gets ignored by `mount -a`;
# the actual logic for mounting root is in the kernel.
/dev/hda / ext2 nodev,nosuid
# Remount /bin and /dev while adding the appropriate permissions.
/dev /dev bind bind,nosuid
/bin /bin bind bind,nodev
proc /proc proc nosuid
devpts /dev/pts devpts noexec,nosuid
tmp /tmp tmp nodev,nosuid