diff options
Diffstat (limited to 'Kernel/Syscalls/sched.cpp')
-rw-r--r-- | Kernel/Syscalls/sched.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Syscalls/sched.cpp b/Kernel/Syscalls/sched.cpp index 48a1faadbd..521513a108 100644 --- a/Kernel/Syscalls/sched.cpp +++ b/Kernel/Syscalls/sched.cpp @@ -67,7 +67,7 @@ KResultOr<int> Process::sys$sched_setparam(int pid, Userspace<const struct sched if (!peer) return ESRCH; - if (!is_superuser() && m_euid != peer->process().m_uid && m_uid != peer->process().m_uid) + if (!is_superuser() && euid() != peer->process().uid() && uid() != peer->process().uid()) return EPERM; peer->set_priority((u32)desired_param.sched_priority); @@ -90,7 +90,7 @@ KResultOr<int> Process::sys$sched_getparam(pid_t pid, Userspace<struct sched_par if (!peer) return ESRCH; - if (!is_superuser() && m_euid != peer->process().m_uid && m_uid != peer->process().m_uid) + if (!is_superuser() && euid() != peer->process().uid() && uid() != peer->process().uid()) return EPERM; priority = (int)peer->priority(); |