Skip to content

Commit

Permalink
selftests: add seccomp suite
Browse files Browse the repository at this point in the history
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: Kees Cook <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
  • Loading branch information
kees authored and Shuah Khan committed Jun 17, 2015
1 parent 390db01 commit c99ee51
Show file tree
Hide file tree
Showing 6 changed files with 2,659 additions and 0 deletions.
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions tools/testing/selftests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ TARGETS += mqueue
TARGETS += net
TARGETS += powerpc
TARGETS += ptrace
TARGETS += seccomp
TARGETS += size
TARGETS += sysctl
TARGETS += timers
Expand Down
1 change: 1 addition & 0 deletions tools/testing/selftests/seccomp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
seccomp_bpf
10 changes: 10 additions & 0 deletions tools/testing/selftests/seccomp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
TEST_PROGS := seccomp_bpf
CFLAGS += -Wl,-no-as-needed -Wall
LDFLAGS += -lpthread

all: $(TEST_PROGS)

include ../lib.mk

clean:
$(RM) $(TEST_PROGS)
Loading

0 comments on commit c99ee51

Please sign in to comment.