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)
Jan 6 2024, 3:19 AM
Unknown Object (File)
Dec 23 2023, 8:27 AM
Unknown Object (File)
Dec 23 2023, 6:06 AM
Unknown Object (File)
Dec 10 2023, 7:15 PM
Unknown Object (File)
Sep 30 2023, 1:38 PM
Unknown Object (File)
Sep 18 2023, 4:48 AM
Unknown Object (File)
Sep 17 2023, 8:56 PM
Unknown Object (File)
Aug 8 2023, 10:31 PM
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 18235
Build 17963: 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.