]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add initial set of tests for audit(4)
authorAlan Somers <asomers@FreeBSD.org>
Tue, 29 May 2018 23:08:33 +0000 (23:08 +0000)
committerAlan Somers <asomers@FreeBSD.org>
Tue, 29 May 2018 23:08:33 +0000 (23:08 +0000)
commitf7f4e0f7a8ec667b0e38bc313b1cb25004b40714
tree860a954ad12873d34c96103d3e060335db78e824
parent7d958cc9aa0aa5303daef28fbba829197b580d5e
Add initial set of tests for audit(4)

This change includes the framework for testing the auditability of various
syscalls, and includes changes for the first 12.  The tests will start
auditd(8) if needed, though they'll be much faster if it's already running.
The syscalls tested in this commit include mkdir(2), mkdirat(2), mknod(2),
mknodat(2), mkfifo(2), mkfifoat(2), link(2), linkat(2), symlink(2),
symlinkat(2), rename(2), and renameat(2).

Submitted by: aniketp
MFC after: 2 weeks
Sponsored by: Google, Inc (GSoC 2018)
Differential Revision: https://reviews.freebsd.org/D15286
etc/mtree/BSD.tests.dist
tests/sys/Makefile
tests/sys/audit/Makefile [new file with mode: 0644]
tests/sys/audit/file-create.c [new file with mode: 0644]
tests/sys/audit/utils.c [new file with mode: 0644]
tests/sys/audit/utils.h [new file with mode: 0644]