Page MenuHomeFreeBSD

Add tests for readlink(2) and readlinkat(2) system calls
ClosedPublic

Authored by aniketp on May 31 2018, 5:31 PM.
Tags
None
Referenced Files
F136017045: D15636.id43218.diff
Sat, Nov 15, 3:07 AM
F135967869: D15636.id43213.diff
Fri, Nov 14, 4:07 PM
F135961731: D15636.diff
Fri, Nov 14, 2:41 PM
Unknown Object (File)
Fri, Nov 14, 6:00 AM
Unknown Object (File)
Tue, Nov 11, 12:37 AM
Unknown Object (File)
Fri, Nov 7, 3:08 AM
Unknown Object (File)
Wed, Nov 5, 3:36 AM
Unknown Object (File)
Tue, Nov 4, 1:30 AM
Subscribers

Details

Summary

The following changes introduce a new test-program file-read, apart from the already existing 24 tests for fc "file-create" audit class which were introduced in D15286 and committed as rS334360. These 4 test-cases check the proper audit of readlink(2) and readlinkat(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 Skipped
Unit
Tests Skipped

Event Timeline

asomers requested changes to this revision.May 31 2018, 5:58 PM

Other than the copyright header, it LGTM.

tests/sys/audit/file-read.c
3

As Mateusz said, you should remove "All rights reserved"

This revision now requires changes to proceed.May 31 2018, 5:58 PM

Remove the "All Rights Reserved" from file-create.c and file-read.c

Remove "All rights reserved" from utils.c and utils.h

This revision is now accepted and ready to land.May 31 2018, 11:08 PM
This revision was automatically updated to reflect the committed changes.