From 62a4099581ce99aef46ab698aa260b155de62f47 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 31 Jul 2020 16:34:47 +0200 Subject: Kernel: Use Userspace in sys$getcwd() and sys$chdir() Add more validation helper overloads as we go. :^) --- Kernel/Syscalls/chdir.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Kernel/Syscalls/chdir.cpp') diff --git a/Kernel/Syscalls/chdir.cpp b/Kernel/Syscalls/chdir.cpp index b815ba8491..68437ab0a9 100644 --- a/Kernel/Syscalls/chdir.cpp +++ b/Kernel/Syscalls/chdir.cpp @@ -31,7 +31,7 @@ namespace Kernel { -int Process::sys$chdir(const char* user_path, size_t path_length) +int Process::sys$chdir(Userspace user_path, size_t path_length) { REQUIRE_PROMISE(rpath); auto path = get_syscall_path_argument(user_path, path_length); @@ -61,7 +61,7 @@ int Process::sys$fchdir(int fd) return 0; } -int Process::sys$getcwd(char* buffer, ssize_t size) +int Process::sys$getcwd(Userspace buffer, ssize_t size) { REQUIRE_PROMISE(rpath); if (size < 0) -- cgit v1.2.3