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.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 4, 8:30 AM
Unknown Object (File)
Fri, Nov 29, 10:08 PM
Unknown Object (File)
Nov 25 2024, 12:34 AM
Unknown Object (File)
Nov 24 2024, 11:34 PM
Unknown Object (File)
Nov 23 2024, 9:50 AM
Unknown Object (File)
Nov 22 2024, 6:41 AM
Unknown Object (File)
Nov 8 2024, 12:42 AM
Unknown Object (File)
Nov 5 2024, 8:27 AM
Subscribers

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 - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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
  • Rename auditon_{success/failure} to auditon_default_{success/failure}
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.