]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add initial set of tests for audit(4)
authorasomers <asomers@FreeBSD.org>
Tue, 29 May 2018 23:08:33 +0000 (23:08 +0000)
committerasomers <asomers@FreeBSD.org>
Tue, 29 May 2018 23:08:33 +0000 (23:08 +0000)
commitc6edf8b386ffcad33c5814a6ad5129aa8b13179e
tree860a954ad12873d34c96103d3e060335db78e824
parent7ca8d178482cb0137a31fc0fda2e21a53b3ebd94
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]