mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
Kernel: Make sys$unveil() not take the big process lock
The unveil syscall uses the UnveilData struct which is already SpinlockProtected, so there is no need to take the big lock.
This commit is contained in:
parent
146903a3b5
commit
b5a2f59320
Notes:
sideshowbarker
2024-07-17 08:10:18 +09:00
Author: https://github.com/SamuelBowman
Commit: b5a2f59320
Pull-request: https://github.com/SerenityOS/serenity/pull/14907
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ static void update_intermediate_node_permissions(UnveilNode& root_node, UnveilAc
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$unveil(Userspace<Syscall::SC_unveil_params const*> user_params)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
auto params = TRY(copy_typed_from_user(user_params));
|
||||
|
||||
if (!params.path.characters && !params.permissions.characters) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue