Page MenuHomeFreeBSD

Add tests for truncate(2) and ftruncate(2) system calls
ClosedPublic

Authored by aniketp on Jun 1 2018, 2:21 AM.
Tags
None
Referenced Files
F103199306: D15640.id43239.diff
Fri, Nov 22, 4:19 AM
Unknown Object (File)
Oct 14 2024, 6:58 PM
Unknown Object (File)
Sep 17 2024, 4:56 AM
Unknown Object (File)
Sep 9 2024, 3:11 AM
Unknown Object (File)
Sep 8 2024, 3:01 AM
Unknown Object (File)
Aug 17 2024, 12:09 PM
Unknown Object (File)
Aug 7 2024, 12:33 PM
Unknown Object (File)
Aug 7 2024, 12:33 PM
Subscribers

Details

Summary

Following the pattern of D15636:

The following changes introduce a new test-program file-write, apart from the already existing 28 tests for fcfile-creat andfile-read audit class which were introduced in D15286 & D15636 and committed as rS334360 & rS334471. These 4 test-cases check the proper audit of truncate(2) and ftruncate(2) for both success and failure case.

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

Is this the entire fw audit class?

Yes, apart from open and openat, truncate and ftruncate are the only syscalls in this class

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