diff options
author | Andreas Kling <kling@serenityos.org> | 2021-03-11 13:23:23 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-11 14:21:49 +0100 |
commit | 08e0e2eb417d7c9a50b4309b4cdcef70b8554537 (patch) | |
tree | a56a81392d8e620e7b147ad244d662a388903a50 /Kernel/Syscalls/umask.cpp | |
parent | 90c0f9664ea96d3d4c23eaba8a431f6e57db9e6c (diff) | |
download | serenity-08e0e2eb417d7c9a50b4309b4cdcef70b8554537.zip |
Kernel: Move process umask into protected data :^)
Diffstat (limited to 'Kernel/Syscalls/umask.cpp')
-rw-r--r-- | Kernel/Syscalls/umask.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Syscalls/umask.cpp b/Kernel/Syscalls/umask.cpp index c2f0592136..fa26a8a2ed 100644 --- a/Kernel/Syscalls/umask.cpp +++ b/Kernel/Syscalls/umask.cpp @@ -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; } |