Page MenuHomeFreeBSD

Add default case and ENOSYS expected cases for auditon(2) system call
ClosedPublic

Authored by aniketp on Jul 21 2018, 2:38 PM.

Details

Summary

This revision introduces test cases for the remaining audit events for auditon(2). The mode introduced
are default mode and the one's which have not yet been implemented (or are not supported) and return
ENOSYS

The audit events are:

  • A_GETFSIZE (default mode)
  • A_GETCWD
  • A_GETCAR
  • A_GETSTAT
  • A_SETSTAT
  • A_SETUMASK
  • A_SETSMASK
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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

aniketp created this revision.Jul 21 2018, 2:38 PM
asomers requested changes to this revision.Jul 21 2018, 3:20 PM
asomers added inline comments.
tests/sys/audit/administrative.c
754 ↗(On Diff #45650)

How about "auditon_default_success" to distinguish this test case from those that follow?

This revision now requires changes to proceed.Jul 21 2018, 3:20 PM
aniketp updated this revision to Diff 45655.Jul 21 2018, 3:52 PM
  • Rename auditon_{success/failure} to auditon_default_{success/failure}
asomers accepted this revision.Jul 21 2018, 4:25 PM
This revision is now accepted and ready to land.Jul 21 2018, 4:25 PM
This revision was automatically updated to reflect the committed changes.