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:
parent
317800324c
commit
82bf6e8133
2 changed files with 2 additions and 2 deletions
|
@ -285,7 +285,7 @@ public:
|
||||||
int sys$symlink(Userspace<const Syscall::SC_symlink_params*>);
|
int sys$symlink(Userspace<const Syscall::SC_symlink_params*>);
|
||||||
int sys$rmdir(Userspace<const char*> pathname, size_t path_length);
|
int sys$rmdir(Userspace<const char*> pathname, size_t path_length);
|
||||||
int sys$mount(Userspace<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$umount(Userspace<const char*> mountpoint, size_t mountpoint_length);
|
||||||
int sys$chmod(const char* pathname, size_t path_length, mode_t);
|
int sys$chmod(const char* pathname, size_t path_length, mode_t);
|
||||||
int sys$fchmod(int fd, mode_t);
|
int sys$fchmod(int fd, mode_t);
|
||||||
int sys$chown(Userspace<const Syscall::SC_chown_params*>);
|
int sys$chown(Userspace<const Syscall::SC_chown_params*>);
|
||||||
|
|
|
@ -122,7 +122,7 @@ int Process::sys$mount(Userspace<const Syscall::SC_mount_params*> user_params)
|
||||||
return result;
|
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())
|
if (!is_superuser())
|
||||||
return -EPERM;
|
return -EPERM;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue