1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:27:45 +00:00

Kernel: Use Userspace<T> for the getresgid syscall

This commit is contained in:
Brian Gianforcaro 2020-08-09 12:37:47 -07:00 committed by Andreas Kling
parent 3ca18a88d7
commit 48d9f3c2e6
2 changed files with 2 additions and 2 deletions

View file

@ -217,7 +217,7 @@ public:
pid_t sys$getpid();
pid_t sys$getppid();
int sys$getresuid(Userspace<uid_t*>, Userspace<uid_t*>, Userspace<uid_t*>);
int sys$getresgid(gid_t*, gid_t*, gid_t*);
int sys$getresgid(Userspace<gid_t*>, Userspace<gid_t*>, Userspace<gid_t*>);
mode_t sys$umask(mode_t);
int sys$open(Userspace<const Syscall::SC_open_params*>);
int sys$close(int fd);

View file

@ -63,7 +63,7 @@ int Process::sys$getresuid(Userspace<uid_t*> ruid, Userspace<uid_t*> euid, Users
return 0;
}
int Process::sys$getresgid(gid_t* rgid, gid_t* egid, gid_t* sgid)
int Process::sys$getresgid(Userspace<gid_t*> rgid, Userspace<gid_t*> egid, Userspace<gid_t*> sgid)
{
REQUIRE_PROMISE(stdio);
if (!validate_write_typed(rgid) || !validate_write_typed(egid) || !validate_write_typed(sgid))