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)
Fri, Apr 19, 3:34 PM
Unknown Object (File)
Jan 27 2024, 7:59 PM
Unknown Object (File)
Jan 27 2024, 7:59 PM
Unknown Object (File)
Jan 27 2024, 7:59 PM
Unknown Object (File)
Jan 27 2024, 12:49 AM
Unknown Object (File)
Jan 20 2024, 9:25 AM
Unknown Object (File)
Dec 20 2023, 5:09 AM
Unknown Object (File)
Dec 10 2023, 8:55 PM
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.