1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 14:44:58 +00:00

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.
This commit is contained in:
Liav A 2023-02-11 10:34:57 +02:00 committed by Linus Groh
parent 73bc856c16
commit 8266e40b35

View file

@ -26,7 +26,7 @@
namespace Kernel {
static Singleton<VirtualFileSystem> 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()
{