summaryrefslogtreecommitdiff
path: root/internal/statsengine/process_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-29 22:47:13 +0300
committerPaul Buetow <paul@buetow.org>2026-05-29 22:47:13 +0300
commit34821a6dd28ee4bd6282abdca07306605e8f6b1c (patch)
treea9f4679ef657492f90cd234eb9ee20c2454d4971 /internal/statsengine/process_test.go
parent7a2207e215dfde246f0e9c4e415eff962f4c044c (diff)
test(classify): lock in keyctl-family audit (kind/family/ret)
Audit of keyctl(2), add_key(2), request_key(2) confirmed the existing tracing is correct: all three are KindKeyctl (operation + generic numeric args captured via keyctl_event, no fd/path probe), live in FamilySecurity alongside their *_key/landlock_*/lsm_*/seccomp siblings, and return an operation-dependent value or -1 that is not a byte transfer (UNCLASSIFIED). Add TestClassifyKeyctlAudit as a lock-in regression test, mirroring prior audits: it asserts the Security family on both enter and exit names, the UNCLASSIFIED return classification, and that add_key's const char * type/description arguments are key metadata that must not trip the generic pathname/open heuristics (PathnameField stays empty, kind stays KindKeyctl). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'internal/statsengine/process_test.go')
0 files changed, 0 insertions, 0 deletions