summaryrefslogtreecommitdiff
path: root/Kernel/API/Syscall.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-12-25 18:27:42 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-25 19:35:55 +0100
commit82f86e35d6e0aa521df632fdba43fe7a37a5db4c (patch)
tree7f96f91c8467598a8419498576a7da9c06baeaa4 /Kernel/API/Syscall.h
parent3c9bd911b8b90e8034c9b61633a6985e752eb417 (diff)
downloadserenity-82f86e35d6e0aa521df632fdba43fe7a37a5db4c.zip
Kernel+LibC: Introduce a "dumpable" flag for processes
This new flag controls two things: - Whether the kernel will generate core dumps for the process - Whether the EUID:EGID should own the process's files in /proc Processes are automatically made non-dumpable when their EUID or EGID is changed, either via syscalls that specifically modify those ID's, or via sys$execve(), when a set-uid or set-gid program is executed. A process can change its own dumpable flag at any time by calling the new sys$prctl(PR_SET_DUMPABLE) syscall. Fixes #4504.
Diffstat (limited to 'Kernel/API/Syscall.h')
-rw-r--r--Kernel/API/Syscall.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h
index 0555851d7e..bf7de7da2c 100644
--- a/Kernel/API/Syscall.h
+++ b/Kernel/API/Syscall.h
@@ -195,7 +195,8 @@ namespace Kernel {
S(set_process_name) \
S(disown) \
S(adjtime) \
- S(allocate_tls)
+ S(allocate_tls) \
+ S(prctl)
namespace Syscall {