mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00
Kernel: Mark sys$umount as not needing the big lock
All accesses to the mount table are already serialized by the actual spinlock of that table.
This commit is contained in:
parent
902dac7f5f
commit
0be79f9bc2
2 changed files with 2 additions and 2 deletions
|
@ -193,7 +193,7 @@ enum class NeedsBigProcessLock {
|
||||||
S(sysconf, NeedsBigProcessLock::No) \
|
S(sysconf, NeedsBigProcessLock::No) \
|
||||||
S(times, NeedsBigProcessLock::No) \
|
S(times, NeedsBigProcessLock::No) \
|
||||||
S(umask, NeedsBigProcessLock::No) \
|
S(umask, NeedsBigProcessLock::No) \
|
||||||
S(umount, NeedsBigProcessLock::Yes) \
|
S(umount, NeedsBigProcessLock::No) \
|
||||||
S(uname, NeedsBigProcessLock::No) \
|
S(uname, NeedsBigProcessLock::No) \
|
||||||
S(unlink, NeedsBigProcessLock::No) \
|
S(unlink, NeedsBigProcessLock::No) \
|
||||||
S(unveil, NeedsBigProcessLock::No) \
|
S(unveil, NeedsBigProcessLock::No) \
|
||||||
|
|
|
@ -161,7 +161,7 @@ ErrorOr<FlatPtr> Process::sys$bindmount(Userspace<Syscall::SC_bindmount_params c
|
||||||
|
|
||||||
ErrorOr<FlatPtr> Process::sys$umount(Userspace<char const*> user_mountpoint, size_t mountpoint_length)
|
ErrorOr<FlatPtr> Process::sys$umount(Userspace<char const*> user_mountpoint, size_t mountpoint_length)
|
||||||
{
|
{
|
||||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
|
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||||
auto credentials = this->credentials();
|
auto credentials = this->credentials();
|
||||||
if (!credentials->is_superuser())
|
if (!credentials->is_superuser())
|
||||||
return EPERM;
|
return EPERM;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue