summaryrefslogtreecommitdiff
path: root/Kernel/Syscall.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-12 19:33:24 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-12 19:33:24 +0200
commit7d6689055fbed308324a80769c334a649edcab56 (patch)
tree36c3d20c0778a0429c626ad55657db70f1284221 /Kernel/Syscall.h
parent4917445e2e1ca6ce2c6254db4850eb1cbd2ac485 (diff)
downloadserenity-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.h3
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 {