diff options
-rw-r--r-- | Kernel/FileSystem/VirtualFileSystem.cpp | 1 | ||||
-rw-r--r-- | Kernel/FileSystem/VirtualFileSystem.h | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Kernel/FileSystem/VirtualFileSystem.cpp b/Kernel/FileSystem/VirtualFileSystem.cpp index c8c6f19367..ebc94a3ac5 100644 --- a/Kernel/FileSystem/VirtualFileSystem.cpp +++ b/Kernel/FileSystem/VirtualFileSystem.cpp @@ -24,7 +24,6 @@ namespace Kernel { static Singleton<VirtualFileSystem> s_the; -static constexpr int symlink_recursion_limit { 5 }; // FIXME: increase? static constexpr int root_mount_flags = MS_NODEV | MS_NOSUID | MS_RDONLY; UNMAP_AFTER_INIT void VirtualFileSystem::initialize() diff --git a/Kernel/FileSystem/VirtualFileSystem.h b/Kernel/FileSystem/VirtualFileSystem.h index 54af26bdce..edecba50e8 100644 --- a/Kernel/FileSystem/VirtualFileSystem.h +++ b/Kernel/FileSystem/VirtualFileSystem.h @@ -35,6 +35,10 @@ struct UidAndGid { class VirtualFileSystem { AK_MAKE_ETERNAL public: + // Required to be at least 8 by POSIX + // https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html + static constexpr int symlink_recursion_limit = 8; + static void initialize(); static VirtualFileSystem& the(); |