mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +00:00
Kernel/SysFS: Make it possible to have custom permissions for nodes
This commit is contained in:
parent
33f033066c
commit
06e95d0fd7
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