summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-04-09 22:45:23 +0300
committerAndreas Kling <kling@serenityos.org>2022-04-09 23:46:02 +0200
commit02973499222e40364734c45f90261d0f43c25dab (patch)
tree572f9d2be24f04db9a616a025373ec44d045b1d3 /Kernel/Syscalls
parent8458313e8a39a6fe67664551d7faaf6dae3eb1f0 (diff)
downloadserenity-02973499222e40364734c45f90261d0f43c25dab.zip
Kernel: Remove big lock from sys$chown
This syscall doesn't access any unprotected shared data.
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r--Kernel/Syscalls/chown.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/chown.cpp b/Kernel/Syscalls/chown.cpp
index 97ba35a21e..b58919c53d 100644
--- a/Kernel/Syscalls/chown.cpp
+++ b/Kernel/Syscalls/chown.cpp
@@ -22,7 +22,7 @@ ErrorOr<FlatPtr> Process::sys$fchown(int fd, UserID uid, GroupID gid)
ErrorOr<FlatPtr> Process::sys$chown(Userspace<Syscall::SC_chown_params const*> user_params)
{
- VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
+ VERIFY_NO_PROCESS_BIG_LOCK(this);
TRY(require_promise(Pledge::chown));
auto params = TRY(copy_typed_from_user(user_params));
auto path = TRY(get_syscall_path_argument(params.path));