Kernel: Use Userspace<T> for the mount syscall

This commit is contained in:
Brian Gianforcaro 2020-08-06 20:49:16 -07:00 committed by Andreas Kling
parent 3fb62e8c63
commit 7e7ee2ec94
Notes: sideshowbarker 2024-07-19 04:10:10 +09:00
2 changed files with 2 additions and 2 deletions

View File

@ -281,7 +281,7 @@ public:
int sys$unlink(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(const Syscall::SC_mount_params*);
int sys$mount(Userspace<const Syscall::SC_mount_params*>);
int sys$umount(const char* mountpoint, size_t mountpoint_length);
int sys$chmod(const char* pathname, size_t path_length, mode_t);
int sys$fchmod(int fd, mode_t);

View File

@ -35,7 +35,7 @@
namespace Kernel {
int Process::sys$mount(const Syscall::SC_mount_params* user_params)
int Process::sys$mount(Userspace<const Syscall::SC_mount_params*> user_params)
{
if (!is_superuser())
return -EPERM;