1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 09:07:44 +00:00

Kernel: Move process umask into protected data :^)

This commit is contained in:
Andreas Kling 2021-03-11 13:23:23 +01:00
parent 90c0f9664e
commit 08e0e2eb41
3 changed files with 4 additions and 5 deletions

View file

@ -32,6 +32,7 @@ KResultOr<mode_t> Process::sys$umask(mode_t mask)
{
REQUIRE_PROMISE(stdio);
auto old_mask = m_umask;
ProtectedDataMutationScope scope { *this };
m_umask = mask & 0777;
return old_mask;
}