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)
Mon, Nov 25, 12:34 AM
Unknown Object (File)
Sun, Nov 24, 11:34 PM
Unknown Object (File)
Sat, Nov 23, 9:50 AM
Unknown Object (File)
Fri, Nov 22, 6:41 AM
Unknown Object (File)
Fri, Nov 8, 12:42 AM
Unknown Object (File)
Tue, Nov 5, 8:27 AM
Unknown Object (File)
Oct 16 2024, 8:59 AM
Unknown Object (File)
Oct 16 2024, 5:02 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.