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)
Sat, Apr 13, 7:11 PM
Unknown Object (File)
Jan 29 2024, 8:24 AM
Unknown Object (File)
Jan 29 2024, 8:23 AM
Unknown Object (File)
Jan 29 2024, 8:23 AM
Unknown Object (File)
Jan 29 2024, 8:23 AM
Unknown Object (File)
Jan 27 2024, 7:35 PM
Unknown Object (File)
Jan 7 2024, 7:01 AM
Unknown Object (File)
Dec 20 2023, 2:19 AM
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.