From 8266e40b35ac9f91aeae1f996e9fa6f631e3f5be Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 11 Feb 2023 10:34:57 +0200 Subject: [PATCH] Kernel/FileSystem: Don't assume flags for root filesystem mount flags This is considered somewhat an abstraction layer violation, because we should always let userspace to decide on the root filesystem mount flags because it allows the user to configure the mount table to preferences that they desire. Now that SystemServer is modified to re-mount the root mount with the desired flags, we can just mount the root filesystem without assuming special flags. --- Kernel/FileSystem/VirtualFileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/FileSystem/VirtualFileSystem.cpp b/Kernel/FileSystem/VirtualFileSystem.cpp index 47edde7dbf5..bc73e1f03ff 100644 --- a/Kernel/FileSystem/VirtualFileSystem.cpp +++ b/Kernel/FileSystem/VirtualFileSystem.cpp @@ -26,7 +26,7 @@ namespace Kernel { static Singleton s_the; -static constexpr int root_mount_flags = MS_NODEV | MS_NOSUID | MS_RDONLY; +static constexpr int root_mount_flags = 0; UNMAP_AFTER_INIT void VirtualFileSystem::initialize() {