diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-12 19:33:24 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-12 19:33:24 +0200 |
commit | 7d6689055fbed308324a80769c334a649edcab56 (patch) | |
tree | 36c3d20c0778a0429c626ad55657db70f1284221 /Kernel/Syscall.h | |
parent | 4917445e2e1ca6ce2c6254db4850eb1cbd2ac485 (diff) | |
download | serenity-7d6689055fbed308324a80769c334a649edcab56.zip |
Kernel+LibC+crash: Add mprotect() syscall
This patch adds the mprotect() syscall to allow changing the protection
flags for memory regions. We don't do any region splitting/merging yet,
so this only works on whole mmap() regions.
Added a "crash -r" flag to verify that we crash when you attempt to
write to read-only memory. :^)
Diffstat (limited to 'Kernel/Syscall.h')
-rw-r--r-- | Kernel/Syscall.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/Syscall.h b/Kernel/Syscall.h index 0451c415da..cec9a23749 100644 --- a/Kernel/Syscall.h +++ b/Kernel/Syscall.h @@ -122,7 +122,8 @@ struct timeval; __ENUMERATE_SYSCALL(dbgputstr) \ __ENUMERATE_SYSCALL(watch_file) \ __ENUMERATE_SYSCALL(share_buffer_globally) \ - __ENUMERATE_SYSCALL(set_process_icon) + __ENUMERATE_SYSCALL(set_process_icon) \ + __ENUMERATE_SYSCALL(mprotect) namespace Syscall { |