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
This commit is contained in:
Alan Somers 2018-06-26 20:26:57 +00:00
parent 00e9473388
commit c907f24ead
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335679
2 changed files with 1268 additions and 0 deletions

View File

@ -14,6 +14,7 @@ ATF_TESTS_C+= ioctl
ATF_TESTS_C+= network
ATF_TESTS_C+= inter-process
ATF_TESTS_C+= administrative
ATF_TESTS_C+= process-control
SRCS.file-attribute-access+= file-attribute-access.c
SRCS.file-attribute-access+= utils.c
@ -39,6 +40,8 @@ SRCS.inter-process+= inter-process.c
SRCS.inter-process+= utils.c
SRCS.administrative+= administrative.c
SRCS.administrative+= utils.c
SRCS.process-control+= process-control.c
SRCS.process-control+= utils.c
TEST_METADATA+= timeout="30"
TEST_METADATA+= required_user="root"

File diff suppressed because it is too large Load Diff