mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
Kernel: Add dedicated "ptrace" pledge promise
The vast majority of programs don't ever need to use sys$ptrace(), and it seems like a high-value system call to prevent a compromised process from using. This patch moves sys$ptrace() from the "proc" promise to its own, new "ptrace" promise and updates the affected apps.
This commit is contained in:
parent
127ce32d9e
commit
f03800cee3
6 changed files with 7 additions and 5 deletions
|
@ -53,6 +53,7 @@ If the process later attempts to use any system functionality it has previously
|
|||
* `sigaction`: Change signal handlers and dispositions (\*)
|
||||
* `sendfd`: Send file descriptors over a local socket
|
||||
* `recvfd`: Receive file descriptors over a local socket
|
||||
* `ptrace`: The [`ptrace(2)`](ptrace.md) syscall (\*)
|
||||
|
||||
Promises marked with an asterisk (\*) are SerenityOS specific extensions not supported by the original OpenBSD `pledge()`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue