mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:27:34 +00:00
Kernel: Use Userspace<T> for the getresgid syscall
This commit is contained in:
parent
3ca18a88d7
commit
48d9f3c2e6
2 changed files with 2 additions and 2 deletions
|
@ -217,7 +217,7 @@ public:
|
||||||
pid_t sys$getpid();
|
pid_t sys$getpid();
|
||||||
pid_t sys$getppid();
|
pid_t sys$getppid();
|
||||||
int sys$getresuid(Userspace<uid_t*>, Userspace<uid_t*>, Userspace<uid_t*>);
|
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);
|
mode_t sys$umask(mode_t);
|
||||||
int sys$open(Userspace<const Syscall::SC_open_params*>);
|
int sys$open(Userspace<const Syscall::SC_open_params*>);
|
||||||
int sys$close(int fd);
|
int sys$close(int fd);
|
||||||
|
|
|
@ -63,7 +63,7 @@ int Process::sys$getresuid(Userspace<uid_t*> ruid, Userspace<uid_t*> euid, Users
|
||||||
return 0;
|
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);
|
REQUIRE_PROMISE(stdio);
|
||||||
if (!validate_write_typed(rgid) || !validate_write_typed(egid) || !validate_write_typed(sgid))
|
if (!validate_write_typed(rgid) || !validate_write_typed(egid) || !validate_write_typed(sgid))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue