mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
Kernel: Use Userspace<T> for the module_load syscall
This commit is contained in:
parent
b5a2a215f6
commit
c4927ceb08
Notes:
sideshowbarker
2024-07-19 04:04:41 +09:00
Author: https://github.com/bgianfo
Commit: c4927ceb08
Pull-request: https://github.com/SerenityOS/serenity/pull/3062
Reviewed-by: https://github.com/awesomekling
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ namespace Kernel {
|
|||
|
||||
extern HashMap<String, OwnPtr<Module>>* g_modules;
|
||||
|
||||
int Process::sys$module_load(const char* user_path, size_t path_length)
|
||||
int Process::sys$module_load(Userspace<const char*> user_path, size_t path_length)
|
||||
{
|
||||
if (!is_superuser())
|
||||
return -EPERM;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue