freebsd-skq/tests/sys/audit/Makefile
Alan Somers c907f24ead 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
2018-06-26 20:26:57 +00:00

55 lines
1.3 KiB
Makefile

# $FreeBSD$
TESTSDIR= ${TESTSBASE}/sys/audit
ATF_TESTS_C= file-attribute-access
ATF_TESTS_C+= file-attribute-modify
ATF_TESTS_C+= file-create
ATF_TESTS_C+= file-delete
ATF_TESTS_C+= file-close
ATF_TESTS_C+= file-write
ATF_TESTS_C+= file-read
ATF_TESTS_C+= open
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
SRCS.file-attribute-modify+= file-attribute-modify.c
SRCS.file-attribute-modify+= utils.c
SRCS.file-create+= file-create.c
SRCS.file-create+= utils.c
SRCS.file-delete+= file-delete.c
SRCS.file-delete+= utils.c
SRCS.file-close+= file-close.c
SRCS.file-close+= utils.c
SRCS.file-write+= file-write.c
SRCS.file-write+= utils.c
SRCS.file-read+= file-read.c
SRCS.file-read+= utils.c
SRCS.open+= open.c
SRCS.open+= utils.c
SRCS.ioctl+= ioctl.c
SRCS.ioctl+= utils.c
SRCS.network+= network.c
SRCS.network+= utils.c
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"
TEST_METADATA+= is_exclusive="true"
WARNS?= 6
LDFLAGS+= -lbsm -lutil
.include <bsd.test.mk>