]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r334360, r334362, r334388, r334395
authorasomers <asomers@FreeBSD.org>
Tue, 2 Oct 2018 15:18:48 +0000 (15:18 +0000)
committerasomers <asomers@FreeBSD.org>
Tue, 2 Oct 2018 15:18:48 +0000 (15:18 +0000)
commitd698af1d605eb9ce8bf688317911b4a686f30e40
tree4222f8c9bf207064a01c6c9e8e5fd6183c8e442d
parentc19c53cd07f2ce51c5f06366efd0c4cb8b0f7642
MFC r334360, r334362, r334388, r334395

r334360:
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
Sponsored by: Google, Inc (GSoC 2018)
Differential Revision: https://reviews.freebsd.org/D15286

r334362 by emaste:
Temporarily disconnect audit tests

Audit tests added in r334360 broke the build on a number of archs.
Remove the subdir from the top level tests/sys/Makefile until they're
fixed.

r334388:
Fix OpenBSM with GCC with -Wredundant-decls

Upstream change ed47534 consciously added some redundant functional
declarations, and I'm not sure why. AFAICT they were never required. On
FreeBSD, they break the build with GCC (but not Clang) for any program
including libbsm.h with WARNS=6.

Fix by cherry-picking upstream change
https://github.com/openbsm/openbsm/commit/0553c27

Reported by: emaste
Reviewed by: cem
Obtained from: OpenBSM
Pull Request: https://github.com/openbsm/openbsm/pull/31

r334395:
Revert r334362

Reconnect tests/sys/audit now that the GCC issue is fixed by 334388

X-MFC-With: 334362, 334360, 334388
contrib/openbsm/bsm/libbsm.h
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]