summaryrefslogtreecommitdiff
path: root/internal/generate/codegen_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-30 11:05:59 +0300
committerPaul Buetow <paul@buetow.org>2026-05-30 11:05:59 +0300
commit4e6d9e1a6c74e0bdb4d89df10ef22a664f84737f (patch)
treed19f1d3755a61f880910033a39ba040d145b186d /internal/generate/codegen_test.go
parent2be8db995514529921d1d57a8df3d275fbc64758 (diff)
test(generate): lock in sched_setparam pid-not-fd classification
Add TestClassifySchedSetparamPidNotFd as a dedicated regression test for the sched_setparam(2) audit. The syscall takes a pid_t (args[0], NOT an fd; 0 = calling thread) and a userspace const struct sched_param *, so the enter must classify as KindNull and the exit as KindRet/UNCLASSIFIED (returns 0/-1, no byte transfer), matching family Sched. Implementation, docs, and generated C/Go artifacts already matched the man page; sched_setparam was previously only asserted as a sibling check inside the sched_getparam test. This pins its full behavior directly, consistent with prior sched_getparam/sched_getattr audits. 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