diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-30 21:47:29 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-30 21:47:29 +0300 |
| commit | b3e6798b340af13a1a2a4c670f5d55fae9f48a40 (patch) | |
| tree | f945190920a06dd5f7104b5a9c6dfda328d3058a /internal/statsengine/process.go | |
| parent | ab2053c6c618ce01d7e18a5e3584cfafc6e58ab4 (diff) | |
test(kexec_file_load): lock in KindFd/Security/UNCLASSIFIED audit
Audit of kexec_file_load(2) against the man page confirmed the existing
classification is already correct and consistent: KindFd capturing
kernel_fd at args[0], FamilySecurity (matching its sibling kexec_load
after task 6v), and an UNCLASSIFIED ret_event exit (returns 0/-1).
The cmdline argument (args[3]) is a kernel command-line STRING, not a
filesystem path, and is correctly never read as a path; the second fd
initrd_fd (args[1]) is not captured, per the single-fd KindFd convention.
Add a dedicated lock-in test plus real-kernel-format fixtures so future
refactors cannot silently regress the fd wiring: assert ev->fd=args[0],
no args[1] fd capture, no bpf_probe_read_user_str on the cmdline, and an
UNCLASSIFIED (never READ/WRITE/TRANSFER) exit.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'internal/statsengine/process.go')
0 files changed, 0 insertions, 0 deletions
