mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
Kernel: Use Process::credentials() and remove user ID/group ID helpers
Move away from using the group ID/user ID helpers in the process to allow for us to take advantage of the immutable credentials instead.
This commit is contained in:
committed by
Andreas Kling
parent
8026d8926c
commit
f86b671de2
@@ -15,7 +15,8 @@ UserID Process::ProcessProcFSTraits::owner_user() const
|
||||
if (!process)
|
||||
return 0;
|
||||
|
||||
return process->uid();
|
||||
auto credentials = process->credentials();
|
||||
return credentials->uid();
|
||||
}
|
||||
|
||||
GroupID Process::ProcessProcFSTraits::owner_group() const
|
||||
@@ -24,7 +25,8 @@ GroupID Process::ProcessProcFSTraits::owner_group() const
|
||||
if (!process)
|
||||
return 0;
|
||||
|
||||
return process->gid();
|
||||
auto credentials = process->credentials();
|
||||
return credentials->gid();
|
||||
}
|
||||
|
||||
InodeIndex Process::ProcessProcFSTraits::component_index() const
|
||||
|
||||
Reference in New Issue
Block a user