1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:08:12 +00:00
serenity/Libraries/LibC/sys
Andreas Kling 82f86e35d6 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.
2020-12-25 19:35:55 +01:00
..
arch/i386 Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00
cdefs.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
file.h Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00
internals.h LibC: Make it possible to use ASSERTs without initializing stdio 2020-12-14 23:05:53 +01:00
ioctl.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
ioctl_numbers.h LibC: Implement tcflush(3) 2020-07-11 11:33:33 +02:00
mman.h Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00
param.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
prctl.cpp Kernel+LibC: Introduce a "dumpable" flag for processes 2020-12-25 19:35:55 +01:00
prctl.h Kernel+LibC: Introduce a "dumpable" flag for processes 2020-12-25 19:35:55 +01:00
prctl_numbers.h Kernel+LibC: Introduce a "dumpable" flag for processes 2020-12-25 19:35:55 +01:00
ptrace.cpp Everywhere: Fix typos 2020-10-02 16:03:17 +02:00
ptrace.h Kernel: More PID/TID typing 2020-08-10 11:51:45 +02:00
resource.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
select.cpp Kernel: Move headers intended for userspace use into Kernel/API/ 2020-07-04 17:22:23 +02:00
select.h LibC: Implement pselect 2020-06-22 16:00:20 +02:00
socket.cpp Kernel+LibC: Use uintptr_t as the main type in the syscall interface 2020-10-12 19:53:25 +02:00
socket.h LibC: Add flag SO_BROADCAST so we can at least build programs that use it 2020-12-02 10:45:38 +01:00
stat.h LibC: Move stat(), lstat() and fstat() to <sys/stat.h> 2020-08-11 20:29:14 +02:00
sysmacros.h Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00
time.h Kernel+LibC: Add adjtime(2) 2020-11-10 19:03:08 +01:00
times.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
types.h LibPthread: Implement pthread_once() 2020-11-24 21:36:28 +01:00
uio.cpp Kernel: Move headers intended for userspace use into Kernel/API/ 2020-07-04 17:22:23 +02:00
uio.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
un.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
utsname.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
wait.cpp Kernel: Move block condition evaluation out of the Scheduler 2020-11-30 13:17:02 +01:00
wait.h Kernel: Move block condition evaluation out of the Scheduler 2020-11-30 13:17:02 +01:00