Kernel/SysFS: Fix bizarre mode bits for directories in SysFS

Not sure what led to 0445 being used here, but let's use 0755.
This commit is contained in:
Andreas Kling 2023-12-01 17:27:25 +01:00
parent 7edc69dc94
commit 34ae39478a
Notes: sideshowbarker 2024-07-16 20:31:50 +09:00

View File

@ -28,7 +28,7 @@ InodeMetadata SysFSDirectoryInode::metadata() const
// NOTE: No locking required as m_associated_component or its component index will never change during our lifetime.
InodeMetadata metadata;
metadata.inode = { fsid(), m_associated_component->component_index() };
metadata.mode = S_IFDIR | S_IRUSR | S_IRGRP | S_IROTH | S_IXOTH;
metadata.mode = S_IFDIR | 0755;
metadata.uid = 0;
metadata.gid = 0;
metadata.size = 0;