diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-08-09 15:39:05 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-10 12:52:15 +0200 |
commit | e8917cc5f36d5862656e56959127ed391ec0d9ff (patch) | |
tree | ee8d416945b2cbe89177a057eba94af03e11b14b | |
parent | 20e2a5c111f488a53233fd3765dbc7f8e4a3e2b3 (diff) | |
download | serenity-e8917cc5f36d5862656e56959127ed391ec0d9ff.zip |
Kernel: Use Userspace<T> for the chroot syscall
-rw-r--r-- | Kernel/Process.h | 2 | ||||
-rw-r--r-- | Kernel/Syscalls/chroot.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h index 195ac60f4e..0795dcd038 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -332,7 +332,7 @@ public: int sys$futex(Userspace<const Syscall::SC_futex_params*>); int sys$set_thread_boost(pid_t tid, int amount); int sys$set_process_boost(pid_t, int amount); - int sys$chroot(const char* path, size_t path_length, int mount_flags); + int sys$chroot(Userspace<const char*> path, size_t path_length, int mount_flags); int sys$pledge(Userspace<const Syscall::SC_pledge_params*>); int sys$unveil(Userspace<const Syscall::SC_unveil_params*>); int sys$perf_event(int type, FlatPtr arg1, FlatPtr arg2); diff --git a/Kernel/Syscalls/chroot.cpp b/Kernel/Syscalls/chroot.cpp index 1e223813fd..73ba127967 100644 --- a/Kernel/Syscalls/chroot.cpp +++ b/Kernel/Syscalls/chroot.cpp @@ -31,7 +31,7 @@ namespace Kernel { -int Process::sys$chroot(const char* user_path, size_t path_length, int mount_flags) +int Process::sys$chroot(Userspace<const char*> user_path, size_t path_length, int mount_flags) { if (!is_superuser()) return -EPERM; |