diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-29 17:43:54 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-29 17:43:54 +0300 |
| commit | ff9b210cb39e6ae72b43fb0814f32d6a39f77b63 (patch) | |
| tree | 652bae2c31b537162adb1e2165e56b2fb192b116 /internal/generate/codegen_test.go | |
| parent | 0a9a92e359e06df0c6cd8e8eff1c165ed7fc2fa0 (diff) | |
test(generate): lock in setsid classification audit
setsid(2) takes no arguments and returns the new session ID (a pid_t)
on success or (pid_t)-1 on error. Audit confirms it is correctly
classified as KindNull (null_event enter handler, captures nothing),
FamilyProcess (alongside its session/process-group siblings
getsid/setpgid/getpgid/getpgrp and the pid-returning getpid/getppid),
and its exit ret_type stays UNCLASSIFIED so the session-id return is
never mistaken for a transferred byte count.
No codegen or doc changes were required (mage generate yields no diff).
Add lock-in assertions so a stray reclassification trips a test:
- family_test.go: setsid + session/pgrp/pid siblings -> FamilyProcess
- retclassify_test.go: setsid + pid-returning siblings -> Unclassified
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
