aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/syscalls.master
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-07-07 23:46:56 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-08-28 11:55:11 +0000
commit73c92a978ccef5e1683914510ea35e6e338646d1 (patch)
tree4acf52be27e707ca88803cfe9917e49d19eeff31 /sys/kern/syscalls.master
parent7006cb7bd22d07d2ce30b0fb7ebfe58771b2a32f (diff)
pdopenpid(2): allow in capability mode with restrictions
The pdopenpid() syscall is allowed to open processes which are either direct children of the caller, or are debuggees already attached to the calling process. This is reasonable because we could have controlled the child on fork anyway. The procdesc-less debuggee can legitimately appear due to ptrace FOLLOW-FORK mode. Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D58989
Diffstat (limited to 'sys/kern/syscalls.master')
-rw-r--r--sys/kern/syscalls.master2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index 656c73da348f..a3d16a6131c0 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -3429,7 +3429,7 @@
int flags
);
}
-603 AUE_PDOPENPID STD {
+603 AUE_PDOPENPID STD|CAPENABLED {
int pdopenpid(
pid_t pid,
int flags