Page MenuHomeFreeBSD

Add tests for stat(2), fstat(2), lstat(2), fstatat(2) of "fa" audit class
ClosedPublic

Authored by aniketp on Jun 9 2018, 12:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 6, 12:16 PM
Unknown Object (File)
Oct 21 2024, 10:11 AM
Unknown Object (File)
Oct 14 2024, 5:14 AM
Unknown Object (File)
Oct 13 2024, 12:11 PM
Unknown Object (File)
Sep 30 2024, 10:29 AM
Unknown Object (File)
Sep 27 2024, 2:45 AM
Unknown Object (File)
Sep 27 2024, 2:45 AM
Unknown Object (File)
Sep 27 2024, 2:45 AM
Subscribers

Details

Summary

This revision introduces a new test program, file-attribute-access corresponding to fa
audit class. This audit class has 22 + (open, openat) auditable system calls out of which 4
have been introduced in this test program.

  • stat(2)
  • lstat(2)
  • fstat(2)
  • fstatat(2)

Both success and failure modes of all the above syscalls has been tested.

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

What abut the rest of the fa audit class?

I was thinking of adding these system calls in batches. Currently there are about 25 system calls in this class, so as to ease the process of reviewing, I included only the stat family to get the process started.

asomers requested changes to this revision.Jun 10 2018, 9:11 PM

The patch does not apply cleanly. You need to rebase it.

This revision now requires changes to proceed.Jun 10 2018, 9:11 PM
This revision is now accepted and ready to land.Jun 10 2018, 9:33 PM
This revision was automatically updated to reflect the committed changes.