summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-08-09 12:17:12 -0700
committerAndreas Kling <kling@serenityos.org>2020-08-10 12:52:15 +0200
commit80011cd62d48a54c470943e640e8bd47649aeb41 (patch)
tree16f84d62c3f5cfd2a041e8d2e8dd873a25fbf14a
parent0f42463eabe7afd81f0f9a1fcb2a61afffb8faf8 (diff)
downloadserenity-80011cd62d48a54c470943e640e8bd47649aeb41.zip
Kernel: Use Userspace<T> for the setgroups syscall
-rw-r--r--Kernel/Process.h2
-rw-r--r--Kernel/Syscalls/setuid.cpp2
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<const gid_t*>);
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<const gid_t*> user_gids)
{
REQUIRE_PROMISE(id);
if (count < 0)