Page MenuHomeFreeBSD

Add tests for 5 syscalls in "file-delete" audit class
ClosedPublic

Authored by aniketp on Jun 1 2018, 5:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 4:41 PM
Unknown Object (File)
Tue, Nov 12, 2:18 PM
Unknown Object (File)
Sep 17 2024, 11:28 PM
Unknown Object (File)
Sep 8 2024, 7:55 PM
Unknown Object (File)
Sep 8 2024, 8:47 AM
Unknown Object (File)
Aug 31 2024, 4:18 PM
Unknown Object (File)
Aug 24 2024, 8:11 PM
Unknown Object (File)
Aug 11 2024, 2:42 PM
Subscribers

Details

Summary

The following changes introduce a new test-program file-delete, apart from the already existing 24 tests for fc "file-create" audit class which were introduced in D15286 and committed as rS334360 and 8 more such tests. These 10 test cases check the proper audit of folllowing system calls

  • rmdir(2)
  • unlink(2)
  • unlinkat(2)
  • rename(2)
  • renameat(2)

Note: open(2) and openat(2) will be handled in a separate test-program.

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

asomers requested changes to this revision.Jun 1 2018, 6:52 PM

These test programs need to be marked as is_exclusive (as do all of the other audit tests).

This revision now requires changes to proceed.Jun 1 2018, 6:52 PM

Add a test-case metadata to ensure that the tests don't run in parallel:
TEST_METADATA+= is_exclusive="true"

This revision is now accepted and ready to land.Jun 1 2018, 8:55 PM
This revision was automatically updated to reflect the committed changes.