mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +00:00
Kernel: Make VirtualFileSystem functions take credentials as input
Instead of getting credentials from Process::current(), we now require that they be provided as input to the various VFS functions. This ensures that an atomic set of credentials is used throughout an entire VFS operation.
This commit is contained in:
parent
9744dedb50
commit
c3351d4b9f
33 changed files with 159 additions and 165 deletions
|
@ -42,6 +42,10 @@ struct InodeMetadata {
|
|||
bool may_write(Process const&) const;
|
||||
bool may_execute(Process const&) const;
|
||||
|
||||
bool may_read(Credentials const&) const;
|
||||
bool may_write(Credentials const&) const;
|
||||
bool may_execute(Credentials const&) const;
|
||||
|
||||
bool may_read(UserID u, GroupID g, Span<GroupID const> eg) const
|
||||
{
|
||||
if (u == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue