From 48d9f3c2e6a77f9596a4dbc5d19eb7d5d1976b00 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 9 Aug 2020 12:37:47 -0700 Subject: [PATCH] Kernel: Use Userspace for the getresgid 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 e37dac611d..a363039331 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -217,7 +217,7 @@ public: pid_t sys$getpid(); pid_t sys$getppid(); int sys$getresuid(Userspace, Userspace, Userspace); - int sys$getresgid(gid_t*, gid_t*, gid_t*); + int sys$getresgid(Userspace, Userspace, Userspace); mode_t sys$umask(mode_t); int sys$open(Userspace); int sys$close(int fd); diff --git a/Kernel/Syscalls/getuid.cpp b/Kernel/Syscalls/getuid.cpp index 8e1f10bd06..d8bbda740d 100644 --- a/Kernel/Syscalls/getuid.cpp +++ b/Kernel/Syscalls/getuid.cpp @@ -63,7 +63,7 @@ int Process::sys$getresuid(Userspace ruid, Userspace euid, Users return 0; } -int Process::sys$getresgid(gid_t* rgid, gid_t* egid, gid_t* sgid) +int Process::sys$getresgid(Userspace rgid, Userspace egid, Userspace sgid) { REQUIRE_PROMISE(stdio); if (!validate_write_typed(rgid) || !validate_write_typed(egid) || !validate_write_typed(sgid))