Kernel: Wrap HIDManagement keymap data in SpinlockProtected

This serializes access to the current keymap data everywhere in the
kernel, allowing to mark sys$setkeymap() as not needing the big lock.
This commit is contained in:
Andreas Kling 2022-03-07 16:34:14 +01:00
commit baa6ff5649
Notes: sideshowbarker 2024-07-17 18:46:57 +09:00
5 changed files with 52 additions and 36 deletions

View file

@ -162,7 +162,7 @@ enum class NeedsBigProcessLock {
S(setgid, NeedsBigProcessLock::Yes) \
S(setgroups, NeedsBigProcessLock::Yes) \
S(sethostname, NeedsBigProcessLock::No) \
S(setkeymap, NeedsBigProcessLock::Yes) \
S(setkeymap, NeedsBigProcessLock::No) \
S(setpgid, NeedsBigProcessLock::Yes) \
S(setresgid, NeedsBigProcessLock::Yes) \
S(setresuid, NeedsBigProcessLock::Yes) \