diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-29 22:47:13 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-29 22:47:13 +0300 |
| commit | 34821a6dd28ee4bd6282abdca07306605e8f6b1c (patch) | |
| tree | a9f4679ef657492f90cd234eb9ee20c2454d4971 /internal/generate/codegen_test.go | |
| parent | 7a2207e215dfde246f0e9c4e415eff962f4c044c (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/generate/codegen_test.go')
0 files changed, 0 insertions, 0 deletions
