summaryrefslogtreecommitdiff
path: root/Base/etc
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2023-01-28 19:00:54 +0200
committerAndrew Kaster <andrewdkaster@gmail.com>2023-02-04 15:32:45 -0700
commited67a877a3998a968ebdec27cf210d2dbb6ca0da (patch)
tree63a2e3bb5c52cdfde4cef42b66c4567d441a1b77 /Base/etc
parentfa637e29d2fb1c9d161e204e4e511529f795207d (diff)
downloadserenity-ed67a877a3998a968ebdec27cf210d2dbb6ca0da.zip
Kernel+SystemServer+Base: Introduce the RAMFS filesystem
This filesystem is based on the code of the long-lived TmpFS. It differs from that filesystem in one keypoint - its root inode doesn't have a sticky bit on it. Therefore, we mount it on /dev, to ensure only root can modify files on that directory. In addition to that, /tmp is mounted directly in the SystemServer main (start) code, so it's no longer specified in the fstab file. We ensure that /tmp has a sticky bit and has the value 0777 for root directory permissions, which is certainly a special case when using RAM-backed (and in general other) filesystems. Because of these 2 changes, it's no longer needed to maintain the TmpFS filesystem, hence it's removed (renamed to RAMFS), because the RAMFS represents the purpose of this filesystem in a much better way - it relies on being backed by RAM "storage", and therefore it's easy to conclude it's temporary and volatile, so its content is gone on either system shutdown or unmounting of the filesystem.
Diffstat (limited to 'Base/etc')
-rw-r--r--Base/etc/fstab1
1 files changed, 0 insertions, 1 deletions
diff --git a/Base/etc/fstab b/Base/etc/fstab
index 2c8ea0da07..39e7256dfd 100644
--- a/Base/etc/fstab
+++ b/Base/etc/fstab
@@ -11,4 +11,3 @@
/usr/Tests /usr/Tests bind bind,nodev,ro
/usr/local /usr/local bind bind,nodev,nosuid
-none /tmp tmp nodev,nosuid