diff --git a/Kernel/Process.h b/Kernel/Process.h index d9087d663f..8bcab0db08 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -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); - int sys$unveil(const Syscall::SC_unveil_params*); + int sys$unveil(Userspace); 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); diff --git a/Kernel/Syscalls/unveil.cpp b/Kernel/Syscalls/unveil.cpp index 9aee67b4bc..b9f82fdf85 100644 --- a/Kernel/Syscalls/unveil.cpp +++ b/Kernel/Syscalls/unveil.cpp @@ -31,7 +31,7 @@ namespace Kernel { -int Process::sys$unveil(const Syscall::SC_unveil_params* user_params) +int Process::sys$unveil(Userspace user_params) { Syscall::SC_unveil_params params; if (!validate_read_and_copy_typed(¶ms, user_params))