aboutsummaryrefslogtreecommitdiff
path: root/source/Target/ThreadPlanPython.cpp
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2026-08-25 18:55:25 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2026-08-27 14:02:45 +0000
commitbea7b932b9eeaff39393347e0600b982fd859a92 (patch)
treee14ab198c22c94dd3d033496001a44ec0a6a20d7 /source/Target/ThreadPlanPython.cpp
parentd00da14532bc4408f3e66535c88276d00905af7c (diff)
hwpmc: add credential-transition exec tests (keep and drop)
The companion to pmc_exec_test.c, which covers only the drop side of a credential-changing exec. Three cases cover what the drop must not overreach into: an exec that changes no credentials keeps the PMC, a set-id exec whose credential change the kernel suppresses for a traced target keeps it too, and a set-id fexecve(2) drops it. They exercise the permission logic FreeBSD-SA-26:56.hwpmc reworked, not the defect it fixed. All three pass on a debug (INVARIANTS+WITNESS) kernel. The two keep-cases were each observed to fail on a kernel mutated to detach unconditionally. MFC after: 1 month MFC to: stable/15 MFC to: stable/14 Assisted-by: Claude Code (Opus 4.8)
Diffstat (limited to 'source/Target/ThreadPlanPython.cpp')
0 files changed, 0 insertions, 0 deletions