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
F132585723: D15709.id43478.diff
Sat, Oct 18, 4:48 AM
Unknown Object (File)
Thu, Oct 2, 11:40 AM
Unknown Object (File)
Sep 11 2025, 1:22 AM
Unknown Object (File)
Aug 28 2025, 4:57 PM
Unknown Object (File)
Aug 8 2025, 12:19 AM
Unknown Object (File)
Aug 4 2025, 9:43 AM
Unknown Object (File)
Jul 7 2025, 3:16 AM
Unknown Object (File)
Jun 23 2025, 7:54 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.