summaryrefslogtreecommitdiff
path: root/internal/eventloop_process_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-30 21:37:12 +0300
committerPaul Buetow <paul@buetow.org>2026-05-30 21:37:12 +0300
commit6be2f977861bda44d10d5f261e220619353233eb (patch)
treef4f02419103df7db9a4cce69f9915281202ccadc /internal/eventloop_process_test.go
parentaeced89f46253e0b4813bbbd89362a0c4466f2d7 (diff)
test(setsockopt): lock in KindFd enter, UNCLASSIFIED exit, Network family
Audit of setsockopt(2) found the tracing implementation already correct: sockfd captured at ctx->args[0] (KindFd), exit ret_event UNCLASSIFIED, and FamilyNetwork — matching the man page and the bind/connect/getsockname/ getpeername/getsockopt siblings, with generated C/Go and docs all consistent. Add lock-in tests mirroring prior per-syscall audits: - TestClassifySetsockoptEnterFd: enter is KindFd with no pathname capture, asserted against the real sockfd/level/optname/optval/optlen fields. - TestClassifyExitSetsockoptUnclassifiedRet: exit is KindRet + UNCLASSIFIED (0/-1 status, not a byte count). - TestClassifyExitGetsockoptUnclassifiedRet: same for the read-side sibling. - TestClassifySyscallFamily: pin setsockopt (enter+exit) and getsockopt to FamilyNetwork. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'internal/eventloop_process_test.go')
0 files changed, 0 insertions, 0 deletions