Commit c99ee51a authored by Kees Cook's avatar Kees Cook Committed by Shuah Khan

selftests: add seccomp suite

This imports the existing seccomp test suite into the kernel's selftests
tree. It contains extensive testing of seccomp features and corner cases.
There remain additional tests to move into the kernel tree, but they have
not yet been ported to all the architectures seccomp supports:
https://github.com/redpig/seccomp/tree/master/testsSigned-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent 390db010
...@@ -8773,6 +8773,7 @@ S: Supported ...@@ -8773,6 +8773,7 @@ S: Supported
F: kernel/seccomp.c F: kernel/seccomp.c
F: include/uapi/linux/seccomp.h F: include/uapi/linux/seccomp.h
F: include/linux/seccomp.h F: include/linux/seccomp.h
F: tools/testing/selftests/seccomp/*
K: \bsecure_computing K: \bsecure_computing
K: \bTIF_SECCOMP\b K: \bTIF_SECCOMP\b
......
...@@ -13,6 +13,7 @@ TARGETS += mqueue ...@@ -13,6 +13,7 @@ TARGETS += mqueue
TARGETS += net TARGETS += net
TARGETS += powerpc TARGETS += powerpc
TARGETS += ptrace TARGETS += ptrace
TARGETS += seccomp
TARGETS += size TARGETS += size
TARGETS += sysctl TARGETS += sysctl
TARGETS += timers TARGETS += timers
......
TEST_PROGS := seccomp_bpf
CFLAGS += -Wl,-no-as-needed -Wall
LDFLAGS += -lpthread
all: $(TEST_PROGS)
include ../lib.mk
clean:
$(RM) $(TEST_PROGS)
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment