mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
Kernel/SysFS: Make it possible to have custom permissions for nodes
This commit is contained in:
parent
33f033066c
commit
06e95d0fd7
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
Author: https://github.com/supercomputer7
Commit: 06e95d0fd7
Pull-request: https://github.com/SerenityOS/serenity/pull/9958
3 changed files with 7 additions and 1 deletions
|
@ -26,6 +26,11 @@ SysFSComponent::SysFSComponent(StringView name)
|
|||
{
|
||||
}
|
||||
|
||||
mode_t SysFSComponent::permissions() const
|
||||
{
|
||||
return S_IRUSR | S_IRGRP | S_IROTH;
|
||||
}
|
||||
|
||||
KResult SysFSDirectory::traverse_as_directory(unsigned fsid, Function<bool(FileSystem::DirectoryEntryView const&)> callback) const
|
||||
{
|
||||
MutexLocker locker(SysFSComponentRegistry::the().get_lock());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue