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)
Thu, Oct 30, 10:16 AM
Unknown Object (File)
Sat, Oct 25, 7:27 AM
Unknown Object (File)
Sun, Oct 19, 8:32 PM
Unknown Object (File)
Sun, Oct 19, 8:32 PM
Unknown Object (File)
Sun, Oct 19, 8:32 PM
Unknown Object (File)
Sun, Oct 19, 6:33 AM
Unknown Object (File)
Sat, Oct 18, 4:48 AM
Unknown Object (File)
Oct 2 2025, 11:40 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.