mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Kernel: Use Userspace<T> for the mount syscall
This commit is contained in:
parent
3fb62e8c63
commit
7e7ee2ec94
Notes:
sideshowbarker
2024-07-19 04:10:10 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/7e7ee2ec94f Pull-request: https://github.com/SerenityOS/serenity/pull/3039
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user