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)
Tue, Apr 23, 3:47 AM
Unknown Object (File)
Fri, Apr 19, 3:39 PM
Unknown Object (File)
Wed, Apr 3, 10:06 PM
Unknown Object (File)
Wed, Apr 3, 10:06 PM
Unknown Object (File)
Wed, Apr 3, 10:06 PM
Unknown Object (File)
Wed, Apr 3, 10:06 PM
Unknown Object (File)
Jan 29 2024, 8:14 AM
Unknown Object (File)
Jan 29 2024, 8:14 AM
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.