Kernel: Use Userspace<T> in unveil syscall

This commit is contained in:
Brian Gianforcaro 2020-08-01 16:12:09 -07:00 committed by Andreas Kling
parent 9db5a1b92f
commit 2242f69cd6
Notes: sideshowbarker 2024-07-19 04:22:17 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -326,7 +326,7 @@ public:
int sys$set_process_boost(pid_t, int amount);
int sys$chroot(const char* path, size_t path_length, int mount_flags);
int sys$pledge(Userspace<const Syscall::SC_pledge_params*>);
int sys$unveil(const Syscall::SC_unveil_params*);
int sys$unveil(Userspace<const Syscall::SC_unveil_params*>);
int sys$perf_event(int type, FlatPtr arg1, FlatPtr arg2);
int sys$get_stack_bounds(FlatPtr* stack_base, size_t* stack_size);
int sys$ptrace(Userspace<const Syscall::SC_ptrace_params*>);

View file

@ -31,7 +31,7 @@
namespace Kernel {
int Process::sys$unveil(const Syscall::SC_unveil_params* user_params)
int Process::sys$unveil(Userspace<const Syscall::SC_unveil_params*> user_params)
{
Syscall::SC_unveil_params params;
if (!validate_read_and_copy_typed(&params, user_params))