From 80011cd62d48a54c470943e640e8bd47649aeb41 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 9 Aug 2020 12:17:12 -0700 Subject: [PATCH] Kernel: Use Userspace for the setgroups syscall --- Kernel/Process.h | 2 +- Kernel/Syscalls/setuid.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/Process.h b/Kernel/Process.h index 132eecdead..fbc7a46507 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -264,7 +264,7 @@ public: 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$setgroups(ssize_t, const gid_t*); + int sys$setgroups(ssize_t, Userspace); int sys$pipe(int pipefd[2], int flags); int sys$killpg(pid_t pgrp, int sig); int sys$seteuid(uid_t); diff --git a/Kernel/Syscalls/setuid.cpp b/Kernel/Syscalls/setuid.cpp index 39e508120f..3cedc049ec 100644 --- a/Kernel/Syscalls/setuid.cpp +++ b/Kernel/Syscalls/setuid.cpp @@ -118,7 +118,7 @@ int Process::sys$setresgid(gid_t rgid, gid_t egid, gid_t sgid) return 0; } -int Process::sys$setgroups(ssize_t count, const gid_t* user_gids) +int Process::sys$setgroups(ssize_t count, Userspace user_gids) { REQUIRE_PROMISE(id); if (count < 0)