Kernel: Remove SmapDisablers in fchmod() and fchown()

This commit is contained in:
Andreas Kling 2020-01-10 12:55:14 +01:00
parent b1ffde6199
commit de69f84868
Notes: sideshowbarker 2024-07-19 10:13:52 +09:00

View file

@ -2596,7 +2596,6 @@ int Process::sys$chmod(const char* user_path, size_t path_length, mode_t mode)
int Process::sys$fchmod(int fd, mode_t mode)
{
SmapDisabler disabler;
auto description = file_description(fd);
if (!description)
return -EBADF;
@ -2605,7 +2604,6 @@ int Process::sys$fchmod(int fd, mode_t mode)
int Process::sys$fchown(int fd, uid_t uid, gid_t gid)
{
SmapDisabler disabler;
auto description = file_description(fd);
if (!description)
return -EBADF;