mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Kernel: Use Userspace<T> for the module_unload syscall
This commit is contained in:
parent
c4927ceb08
commit
20e2a5c111
Notes:
sideshowbarker
2024-07-19 04:04:37 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/20e2a5c111f Pull-request: https://github.com/SerenityOS/serenity/pull/3062 Reviewed-by: https://github.com/awesomekling
2 changed files with 2 additions and 2 deletions
|
@ -326,7 +326,7 @@ public:
|
|||
ssize_t sys$getrandom(Userspace<void*>, size_t, unsigned int);
|
||||
int sys$setkeymap(Userspace<const Syscall::SC_setkeymap_params*>);
|
||||
int sys$module_load(Userspace<const char*> path, size_t path_length);
|
||||
int sys$module_unload(const char* name, size_t name_length);
|
||||
int sys$module_unload(Userspace<const char*> name, size_t name_length);
|
||||
int sys$profiling_enable(pid_t);
|
||||
int sys$profiling_disable(pid_t);
|
||||
int sys$futex(Userspace<const Syscall::SC_futex_params*>);
|
||||
|
|
|
@ -163,7 +163,7 @@ int Process::sys$module_load(Userspace<const char*> user_path, size_t path_lengt
|
|||
return 0;
|
||||
}
|
||||
|
||||
int Process::sys$module_unload(const char* user_name, size_t name_length)
|
||||
int Process::sys$module_unload(Userspace<const char*> user_name, size_t name_length)
|
||||
{
|
||||
if (!is_superuser())
|
||||
return -EPERM;
|
||||
|
|
Loading…
Reference in a new issue