From e7728ca8fdcf46debbda6495ab7e2a8742cf0b5a Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 9 Aug 2020 12:20:04 -0700 Subject: [PATCH] Kernel: Use Userspace for the getgroups 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 fbc7a46507..85bd6091b4 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -263,7 +263,7 @@ public: int sys$sigaction(int signum, const sigaction* act, sigaction* old_act); int sys$sigprocmask(int how, const sigset_t* set, sigset_t* old_set); int sys$sigpending(sigset_t*); - int sys$getgroups(ssize_t, gid_t*); + int sys$getgroups(ssize_t, Userspace); int sys$setgroups(ssize_t, Userspace); int sys$pipe(int pipefd[2], int flags); int sys$killpg(pid_t pgrp, int sig); diff --git a/Kernel/Syscalls/getuid.cpp b/Kernel/Syscalls/getuid.cpp index 6771143109..59e96c48bc 100644 --- a/Kernel/Syscalls/getuid.cpp +++ b/Kernel/Syscalls/getuid.cpp @@ -74,7 +74,7 @@ int Process::sys$getresgid(gid_t* rgid, gid_t* egid, gid_t* sgid) return 0; } -int Process::sys$getgroups(ssize_t count, gid_t* user_gids) +int Process::sys$getgroups(ssize_t count, Userspace user_gids) { REQUIRE_PROMISE(stdio); if (count < 0)