1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:27:44 +00:00

Kernel: Use Userspace<T> for the umount syscall

This commit is contained in:
Brian Gianforcaro 2020-08-09 15:08:07 -07:00 committed by Andreas Kling
parent 317800324c
commit 82bf6e8133
2 changed files with 2 additions and 2 deletions

View file

@ -285,7 +285,7 @@ public:
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*>);
int sys$umount(const char* mountpoint, size_t mountpoint_length);
int sys$umount(Userspace<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);
int sys$chown(Userspace<const Syscall::SC_chown_params*>);

View file

@ -122,7 +122,7 @@ int Process::sys$mount(Userspace<const Syscall::SC_mount_params*> user_params)
return result;
}
int Process::sys$umount(const char* user_mountpoint, size_t mountpoint_length)
int Process::sys$umount(Userspace<const char*> user_mountpoint, size_t mountpoint_length)
{
if (!is_superuser())
return -EPERM;