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
F132844257: D15647.id43253.diff
Mon, Oct 20, 10:58 AM
F132844252: D15647.id43254.diff
Mon, Oct 20, 10:58 AM
F132824466: D15647.id43253.diff
Mon, Oct 20, 7:20 AM
Unknown Object (File)
Sun, Oct 19, 8:33 PM
Unknown Object (File)
Sun, Oct 19, 6:34 AM
Unknown Object (File)
Sun, Oct 19, 6:34 AM
Unknown Object (File)
Sat, Oct 18, 6:11 PM
Unknown Object (File)
Wed, Oct 8, 12:01 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.