1
Fork 0
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:
Liav A 2021-09-11 12:03:44 +03:00 committed by Andreas Kling
parent 33f033066c
commit 06e95d0fd7
3 changed files with 7 additions and 1 deletions

View file

@ -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());