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)
Sat, Jan 25, 7:55 PM
Unknown Object (File)
Wed, Jan 22, 12:54 PM
Unknown Object (File)
Sat, Jan 18, 9:18 PM
Unknown Object (File)
Sat, Jan 18, 5:12 PM
Unknown Object (File)
Fri, Jan 17, 3:41 PM
Unknown Object (File)
Dec 4 2024, 8:30 AM
Unknown Object (File)
Nov 29 2024, 10:08 PM
Unknown Object (File)
Nov 25 2024, 12:34 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 18231
Build 17959: arc lint + arc unit

Event Timeline

asomers requested changes to this revision.Jul 21 2018, 3:20 PM
asomers added inline comments.
tests/sys/audit/administrative.c
754

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.