aboutsummaryrefslogtreecommitdiff
path: root/source/Target/ThreadPlanPython.cpp
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
commit7006cb7bd22d07d2ce30b0fb7ebfe58771b2a32f (patch)
tree93ec0bc642878ef1fa9b0a11418994bbdb46bb8b /source/Target/ThreadPlanPython.cpp
parent68d4b311270ecca80bbb887a5e502e2caacebc98 (diff)
pdptrace(2): allow debugging in capability mode
The pdopenpid(2) syscall is allowed in capability mode. Add the chicken switch security.bsd.ptrace_in_cap_mode, which disables it without reboot, if needed. The descriptor passed to pdptrace(2) must have the CAP_PTRACE capability enabled. This capability is not enabled by default by pdfork()/pdopenpid(), and the calls do not return a procdesc suitable for debugging. The opening code must prepare for debugging in advance by passing the PD_PTRACE_CAP flag to pdfork()/pdopenpid(). For ptrace(2), allow PT_CLEARSTEP and PT_GET_CHILDREN for the current thread and process in cap mode as well. Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D58989
Diffstat (limited to 'source/Target/ThreadPlanPython.cpp')
0 files changed, 0 insertions, 0 deletions