1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

Kernel: Use Userspace<T> for sys$read() and sys$stat()

Add validation helper overloads as needed.
This commit is contained in:
Andreas Kling 2020-07-31 16:28:37 +02:00
parent e39a410546
commit 314dbc10d4
5 changed files with 67 additions and 7 deletions

View file

@ -46,7 +46,7 @@ int Process::sys$fstat(int fd, stat* user_statbuf)
return rc;
}
int Process::sys$stat(const Syscall::SC_stat_params* user_params)
int Process::sys$stat(Userspace<const Syscall::SC_stat_params*> user_params)
{
REQUIRE_PROMISE(rpath);
Syscall::SC_stat_params params;