summaryrefslogtreecommitdiff
path: root/integrationtests/security_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-30 16:43:01 +0300
committerPaul Buetow <paul@buetow.org>2026-05-30 16:43:01 +0300
commitc0d86b578475e8df4a861d955ba56080c0548cb3 (patch)
tree442e0f197afaf784eb49833d372e8e63d43aea83 /integrationtests/security_test.go
parentbebc9c3a0440306bb553280557a4a823fc147cb7 (diff)
test(generate): lock in getgid null enter and UNCLASSIFIED ret
Audit of getgid(2) found its classification already correct: family Process, enter KindNull (gid_t getgid(void) takes no arguments), exit KindRet with UNCLASSIFIED ret_type (returns a gid, never a byte count, and always succeeds). Family, kind, generated C handler, and docs all matched its no-arg id-returning siblings getuid/geteuid/getegid/getpid/ gettid/getppid, so no implementation or doc changes were needed. Add two dedicated lock-in tests using the real tracepoint fields, mirroring the setuid/setpgid audit pattern, so a stray reclassification of getgid trips a test: - TestClassifyGetgidNullEnter: enter is KindNull, no path/fd capture. - TestClassifyExitGetgidUnclassifiedRet: exit is KindRet, UNCLASSIFIED. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'integrationtests/security_test.go')
0 files changed, 0 insertions, 0 deletions