diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-25 18:27:42 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-25 19:35:55 +0100 |
commit | 82f86e35d6e0aa521df632fdba43fe7a37a5db4c (patch) | |
tree | 7f96f91c8467598a8419498576a7da9c06baeaa4 /Services | |
parent | 3c9bd911b8b90e8034c9b61633a6985e752eb417 (diff) | |
download | serenity-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 'Services')
0 files changed, 0 insertions, 0 deletions