diff options
Diffstat (limited to 'Kernel/Syscalls/profiling.cpp')
-rw-r--r-- | Kernel/Syscalls/profiling.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Syscalls/profiling.cpp b/Kernel/Syscalls/profiling.cpp index 01001fe161..62aa46a443 100644 --- a/Kernel/Syscalls/profiling.cpp +++ b/Kernel/Syscalls/profiling.cpp @@ -57,7 +57,7 @@ KResultOr<int> Process::sys$profiling_enable(pid_t pid) return ESRCH; if (process->is_dead()) return ESRCH; - if (!is_superuser() && process->uid() != m_euid) + if (!is_superuser() && process->uid() != euid()) return EPERM; if (!process->create_perf_events_buffer_if_needed()) return ENOMEM; @@ -79,7 +79,7 @@ KResultOr<int> Process::sys$profiling_disable(pid_t pid) auto process = Process::from_pid(pid); if (!process) return ESRCH; - if (!is_superuser() && process->uid() != m_euid) + if (!is_superuser() && process->uid() != euid()) return EPERM; if (!process->is_profiling()) return EINVAL; |