mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 13:17:36 +00:00
Kernel: Use Userspace<T> for the getresuid syscall
This commit is contained in:
parent
7943655838
commit
3ca18a88d7
2 changed files with 2 additions and 2 deletions
|
@ -216,7 +216,7 @@ public:
|
|||
gid_t sys$getegid();
|
||||
pid_t sys$getpid();
|
||||
pid_t sys$getppid();
|
||||
int sys$getresuid(uid_t*, uid_t*, uid_t*);
|
||||
int sys$getresuid(Userspace<uid_t*>, Userspace<uid_t*>, Userspace<uid_t*>);
|
||||
int sys$getresgid(gid_t*, gid_t*, gid_t*);
|
||||
mode_t sys$umask(mode_t);
|
||||
int sys$open(Userspace<const Syscall::SC_open_params*>);
|
||||
|
|
|
@ -52,7 +52,7 @@ gid_t Process::sys$getegid()
|
|||
return m_egid;
|
||||
}
|
||||
|
||||
int Process::sys$getresuid(uid_t* ruid, uid_t* euid, uid_t* suid)
|
||||
int Process::sys$getresuid(Userspace<uid_t*> ruid, Userspace<uid_t*> euid, Userspace<uid_t*> suid)
|
||||
{
|
||||
REQUIRE_PROMISE(stdio);
|
||||
if (!validate_write_typed(ruid) || !validate_write_typed(euid) || !validate_write_typed(suid))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue