diff options
| author | Alexander Leidinger <netchild@FreeBSD.org> | 2026-08-25 18:55:22 +0000 |
|---|---|---|
| committer | Alexander Leidinger <netchild@FreeBSD.org> | 2026-08-27 14:02:36 +0000 |
| commit | 068957e040f40eb7f484b2530481f3eae02f9d44 (patch) | |
| tree | 88dbdab7b2ba6e0a1eee73d97a7525f0e907c02e /source/Target/ThreadPlanPython.cpp | |
| parent | df537ff1520d82410328ebd6de529929dae620a6 (diff) | |
hwpmc: add regression tests for a credential-changing exec
This tests what FreeBSD-SA-26:56.hwpmc fixed.
exec_setgid_drops_pmc asserts the kernel takes a process-mode PMC away
when its target execs a set-gid program its owner is not entitled to
trace.
exec_setuid_no_double_unlink lets the target exec a set-uid program;
the teardown must unlink the process descriptor exactly once, and
completing at all is the assertion.
Both need an unprivileged owner and must not drop privileges themselves,
since p_candebug() would then refuse the target to its own owner; they
ask for require.user instead.
MFC after: 1 month
MFC to: stable/15
MFC to: stable/14
Assisted-by: Claude Code (Opus 5)
Diffstat (limited to 'source/Target/ThreadPlanPython.cpp')
0 files changed, 0 insertions, 0 deletions
