From 3ca18a88d77f3451c4dc6c1e2e6d97168066cfa5 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 9 Aug 2020 12:34:08 -0700 Subject: [PATCH] Kernel: Use Userspace for the getresuid syscall --- Kernel/Process.h | 2 +- Kernel/Syscalls/getuid.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/Process.h b/Kernel/Process.h index 30d26037d9..e37dac611d 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -216,7 +216,7 @@ public: gid_t sys$getegid(); pid_t sys$getpid(); pid_t sys$getppid(); - int sys$getresuid(uid_t*, uid_t*, uid_t*); + int sys$getresuid(Userspace, Userspace, Userspace); int sys$getresgid(gid_t*, gid_t*, gid_t*); mode_t sys$umask(mode_t); int sys$open(Userspace); diff --git a/Kernel/Syscalls/getuid.cpp b/Kernel/Syscalls/getuid.cpp index 59e96c48bc..8e1f10bd06 100644 --- a/Kernel/Syscalls/getuid.cpp +++ b/Kernel/Syscalls/getuid.cpp @@ -52,7 +52,7 @@ gid_t Process::sys$getegid() return m_egid; } -int Process::sys$getresuid(uid_t* ruid, uid_t* euid, uid_t* suid) +int Process::sys$getresuid(Userspace ruid, Userspace euid, Userspace suid) { REQUIRE_PROMISE(stdio); if (!validate_write_typed(ruid) || !validate_write_typed(euid) || !validate_write_typed(suid))