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)
Mon, Sep 15, 10:34 PM
Unknown Object (File)
Sep 9 2025, 11:22 PM
Unknown Object (File)
Aug 8 2025, 2:38 AM
Unknown Object (File)
Jul 21 2025, 5:24 AM
Unknown Object (File)
Jun 17 2025, 6:18 PM
Unknown Object (File)
Jun 16 2025, 10:39 PM
Unknown Object (File)
May 28 2025, 7:01 AM
Unknown Object (File)
May 27 2025, 8:20 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.