Page MenuHomeFreeBSD

Introduce test-program for network socket system calls
ClosedPublic

Authored by aniketp on Jun 14 2018, 2:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 22, 8:34 PM
Unknown Object (File)
Sun, Jan 19, 4:45 AM
Unknown Object (File)
Wed, Jan 15, 3:29 PM
Unknown Object (File)
Wed, Jan 15, 11:35 AM
Unknown Object (File)
Tue, Jan 14, 12:49 PM
Unknown Object (File)
Dec 14 2024, 10:38 AM
Unknown Object (File)
Nov 16 2024, 7:30 AM
Unknown Object (File)
Nov 15 2024, 2:01 PM
Subscribers

Details

Summary

This revision introduces a new test program network which deals with
auditing any syscall responsible for managing network communcations (as the name suggests)
System calls introduced are:

  • socket(2)
  • socketpair(2)
  • setsockopt(2)
Test Plan

Execute make && make install from test/sys/audit.
Execute kyua test from /usr/tests/sys/audit. All testcases should succeed.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Correct Makefile:

ATF_TESTS_C= file-attribute-modify   -> ATF_TESTS_C+= file-attribute-modify

Add the network source file which was accidentally missed in previous revision

tests/sys/audit/network.c
93 ↗(On Diff #43761)

Does the "-1" in the audit record refer to the domain argument or to the return value? Either way, printing it as an unsigned number is a bug.

116 ↗(On Diff #43761)

What does the 0x0 mean?

Update the tests with regards to above comments

This revision is now accepted and ready to land.Jun 15 2018, 4:39 PM
This revision was automatically updated to reflect the committed changes.