1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00

Kernel: Move InodeMetadata methods out of line

This commit is contained in:
Andreas Kling 2022-08-19 22:20:43 +02:00
parent 11eee67b85
commit bec314611d
3 changed files with 28 additions and 15 deletions

View file

@ -0,0 +1,27 @@
/*
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/FileSystem/InodeMetadata.h>
#include <Kernel/Process.h>
namespace Kernel {
bool InodeMetadata::may_read(Process const& process) const
{
return may_read(process.euid(), process.egid(), process.extra_gids());
}
bool InodeMetadata::may_write(Process const& process) const
{
return may_write(process.euid(), process.egid(), process.extra_gids());
}
bool InodeMetadata::may_execute(Process const& process) const
{
return may_execute(process.euid(), process.egid(), process.extra_gids());
}
}