Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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/tests



Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent 390db010
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8773,6 +8773,7 @@ S: Supported
F:	kernel/seccomp.c
F:	include/uapi/linux/seccomp.h
F:	include/linux/seccomp.h
F:	tools/testing/selftests/seccomp/*
K:	\bsecure_computing
K:	\bTIF_SECCOMP\b

+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ TARGETS += mqueue
TARGETS += net
TARGETS += powerpc
TARGETS += ptrace
TARGETS += seccomp
TARGETS += size
TARGETS += sysctl
TARGETS += timers
+1 −0
Original line number Diff line number Diff line
seccomp_bpf
+10 −0
Original line number Diff line number Diff line
TEST_PROGS := seccomp_bpf
CFLAGS += -Wl,-no-as-needed -Wall
LDFLAGS += -lpthread

all: $(TEST_PROGS)

include ../lib.mk

clean:
	$(RM) $(TEST_PROGS)
+2109 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading