mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 00:35:08 +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:
parent
8026d8926c
commit
f86b671de2
27 changed files with 109 additions and 94 deletions
|
@ -783,10 +783,11 @@ bool Thread::WaitBlocker::unblock(Process& process, UnblockFlags flags, u8 signa
|
|||
siginfo_t siginfo {};
|
||||
{
|
||||
SpinlockLocker lock(g_scheduler_lock);
|
||||
auto credentials = process.credentials();
|
||||
// We need to gather the information before we release the scheduler lock!
|
||||
siginfo.si_signo = SIGCHLD;
|
||||
siginfo.si_pid = process.pid().value();
|
||||
siginfo.si_uid = process.uid().value();
|
||||
siginfo.si_uid = credentials->uid().value();
|
||||
siginfo.si_status = signal;
|
||||
|
||||
switch (flags) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue