mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:47:45 +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
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