mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-07 19:57:45 +03:00
Kernel: Use Userspace<T> for the unlink syscall
This commit is contained in:
parent
ecfe20efd2
commit
317800324c
Notes:
sideshowbarker
2024-07-19 04:05:24 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/317800324ca Pull-request: https://github.com/SerenityOS/serenity/pull/3062 Reviewed-by: https://github.com/awesomekling
@ -281,7 +281,7 @@ public:
|
||||
clock_t sys$times(Userspace<tms*>);
|
||||
int sys$utime(Userspace<const char*> pathname, size_t path_length, Userspace<const struct utimbuf*>);
|
||||
int sys$link(Userspace<const Syscall::SC_link_params*>);
|
||||
int sys$unlink(const char* pathname, size_t path_length);
|
||||
int sys$unlink(Userspace<const char*> pathname, size_t path_length);
|
||||
int sys$symlink(Userspace<const Syscall::SC_symlink_params*>);
|
||||
int sys$rmdir(Userspace<const char*> pathname, size_t path_length);
|
||||
int sys$mount(Userspace<const Syscall::SC_mount_params*>);
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
int Process::sys$unlink(const char* user_path, size_t path_length)
|
||||
int Process::sys$unlink(Userspace<const char*> user_path, size_t path_length)
|
||||
{
|
||||
REQUIRE_PROMISE(cpath);
|
||||
if (!validate_read(user_path, path_length))
|
||||
|
Loading…
Reference in New Issue
Block a user