mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:47:46 +00:00
Kernel+Base: Mount root as nodev,nosuid
Then bind-mount /dev and /bin while adding back the appropriate permissions :^)
This commit is contained in:
parent
1a55264fe6
commit
fee6d0a3a6
2 changed files with 9 additions and 3 deletions
|
@ -1,4 +1,10 @@
|
|||
/dev/hda / ext2
|
||||
# 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue