Kernel: Remove big lock from sys$fchown
This syscall doesn't access any unprotected shared data.
This commit is contained in:
parent
f986a3b886
commit
8458313e8a
Notes:
sideshowbarker
2024-07-17 14:13:55 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/8458313e8a Pull-request: https://github.com/SerenityOS/serenity/pull/13594
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ enum class NeedsBigProcessLock {
|
|||
S(exit_thread, NeedsBigProcessLock::Yes) \
|
||||
S(fchdir, NeedsBigProcessLock::No) \
|
||||
S(fchmod, NeedsBigProcessLock::No) \
|
||||
S(fchown, NeedsBigProcessLock::Yes) \
|
||||
S(fchown, NeedsBigProcessLock::No) \
|
||||
S(fcntl, NeedsBigProcessLock::Yes) \
|
||||
S(fork, NeedsBigProcessLock::Yes) \
|
||||
S(fstat, NeedsBigProcessLock::No) \
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace Kernel {
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$fchown(int fd, UserID uid, GroupID gid)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
TRY(require_promise(Pledge::chown));
|
||||
auto description = TRY(open_file_description(fd));
|
||||
TRY(description->chown(uid, gid));
|
||||
|
|
Loading…
Add table
Reference in a new issue