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
Unknown Object (File)
Fri, Apr 19, 3:31 PM
Unknown Object (File)
Sat, Apr 13, 11:07 PM
Unknown Object (File)
Sat, Apr 13, 7:43 PM
Unknown Object (File)
Jan 29 2024, 8:25 AM
Unknown Object (File)
Jan 29 2024, 8:25 AM
Unknown Object (File)
Jan 29 2024, 8:25 AM
Unknown Object (File)
Jan 27 2024, 7:42 PM
Unknown Object (File)
Jan 6 2024, 1:24 AM
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.