summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-10 12:55:14 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-10 14:20:14 +0100
commitde69f84868bb18c63be23f1187bb470826a10d19 (patch)
treedb329fba6a8d88102eef1c9c6ac8acf5f0ad4f27
parentb1ffde61995d83d0f5cd5c860f6353a0e5e61399 (diff)
downloadserenity-de69f84868bb18c63be23f1187bb470826a10d19.zip
Kernel: Remove SmapDisablers in fchmod() and fchown()
-rw-r--r--Kernel/Process.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index ed31b2aab7..e3ec87a198 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -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;