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)
Sat, Nov 16, 7:30 AM
Unknown Object (File)
Fri, Nov 15, 2:01 PM
Unknown Object (File)
Oct 16 2024, 9:21 PM
Unknown Object (File)
Sep 27 2024, 12:30 PM
Unknown Object (File)
Sep 19 2024, 5:11 AM
Unknown Object (File)
Sep 18 2024, 7:09 PM
Unknown Object (File)
Sep 17 2024, 8:52 PM
Unknown Object (File)
Sep 17 2024, 5:18 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.