mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Kernel: Use Userspace<T> for the sethostname syscall
This commit is contained in:
parent
1d9554f470
commit
cfedd62b5c
Notes:
sideshowbarker
2024-07-19 04:05:44 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/cfedd62b5c7 Pull-request: https://github.com/SerenityOS/serenity/pull/3062 Reviewed-by: https://github.com/awesomekling
@ -251,7 +251,7 @@ public:
|
||||
int sys$clock_settime(clockid_t, Userspace<const timespec*>);
|
||||
int sys$clock_nanosleep(Userspace<const Syscall::SC_clock_nanosleep_params*>);
|
||||
int sys$gethostname(Userspace<char*>, ssize_t);
|
||||
int sys$sethostname(const char*, ssize_t);
|
||||
int sys$sethostname(Userspace<const char*>, ssize_t);
|
||||
int sys$uname(utsname*);
|
||||
int sys$readlink(Userspace<const Syscall::SC_readlink_params*>);
|
||||
int sys$ttyname(int fd, Userspace<char*>, size_t);
|
||||
|
@ -45,7 +45,7 @@ int Process::sys$gethostname(Userspace<char*> buffer, ssize_t size)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int Process::sys$sethostname(const char* hostname, ssize_t length)
|
||||
int Process::sys$sethostname(Userspace<const char*> hostname, ssize_t length)
|
||||
{
|
||||
REQUIRE_NO_PROMISES;
|
||||
if (!is_superuser())
|
||||
|
Loading…
Reference in New Issue
Block a user