]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
audit(4): add tests for the process-control audit class
authorasomers <asomers@FreeBSD.org>
Tue, 26 Jun 2018 20:26:57 +0000 (20:26 +0000)
committerasomers <asomers@FreeBSD.org>
Tue, 26 Jun 2018 20:26:57 +0000 (20:26 +0000)
commit52507d32d2e9f54d2a857e27827c2d8ca41fa400
tree5cbb6aa98cd5f7c608b7f831f602dda591deece4
parentb9a00c5d5813f02345249a865bbe65b044fa67c1
audit(4): add tests for the process-control audit class

Tested syscalls include rfork(2), chdir(2), fchdir(2), chroot(2),
getresuid(2), getresgid(2), setpriority(2), setgroups(2), setpgrp(2),
setrlimit(2), setlogin(2), mlock(2), munlock(2), minherit(2), rtprio(2),
profil(2), ktrace(2), ptrace(2), fork(2), umask(2), setuid(2), setgid(2),
seteuid(2), and setegid(2).  The last six are only tested in the success
case, either because they're infalliable or a failure is difficult to cause
on-demand.

Submitted by: aniketp
MFC after: 2 weeks
Sponsored by: Google, Inc. (GSoC 2018)
Differential Revision: https://reviews.freebsd.org/D15966
tests/sys/audit/Makefile
tests/sys/audit/process-control.c [new file with mode: 0644]