mirror of
https://github.com/RGBCube/serenity
synced 2026-01-12 23:20:59 +00:00
To ensure everything works as expected, a unit test was added with multiple scenarios. This binary has to have the SetUID flag, and we also bind-mount the /usr/Tests directory to allow running of SetUID binaries.
13 lines
501 B
Text
13 lines
501 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,ro
|
|
# Remount /bin, /root, and /home while adding the appropriate permissions.
|
|
/bin /bin bind bind,nodev,ro
|
|
/etc /etc bind bind,nodev,nosuid
|
|
/home /home bind bind,nodev,nosuid
|
|
/root /root bind bind,nodev,nosuid
|
|
/var /var bind bind,nodev,nosuid
|
|
/www /www bind bind,nodev,nosuid
|
|
/usr/Tests /usr/Tests bind bind,nodev
|
|
|
|
none /tmp tmp nodev,nosuid
|