mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
Kernel: Use Userspace<T> for the chmod syscall
This commit is contained in:
parent
82bf6e8133
commit
2bac7190c8
Notes:
sideshowbarker
2024-07-19 04:05:15 +09:00
Author: https://github.com/bgianfo
Commit: 2bac7190c8
Pull-request: https://github.com/SerenityOS/serenity/pull/3062
Reviewed-by: https://github.com/awesomekling
2 changed files with 2 additions and 2 deletions
|
@ -286,7 +286,7 @@ public:
|
||||||
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(Userspace<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(Userspace<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*>);
|
||||||
int sys$fchown(int fd, uid_t, gid_t);
|
int sys$fchown(int fd, uid_t, gid_t);
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
||||||
int Process::sys$chmod(const char* user_path, size_t path_length, mode_t mode)
|
int Process::sys$chmod(Userspace<const char*> user_path, size_t path_length, mode_t mode)
|
||||||
{
|
{
|
||||||
REQUIRE_PROMISE(fattr);
|
REQUIRE_PROMISE(fattr);
|
||||||
auto path = get_syscall_path_argument(user_path, path_length);
|
auto path = get_syscall_path_argument(user_path, path_length);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue