![Kees Cook](/assets/img/avatar_default.png)
This attempts to produce a comparison between native getpid() and a RET_ALLOW-filtered getpid(), to measure the overhead cost of using seccomp(). Signed-off-by: Kees Cook <keescook@chromium.org>
17 lines
290 B
Makefile
17 lines
290 B
Makefile
all:
|
|
|
|
include ../lib.mk
|
|
|
|
.PHONY: all clean
|
|
|
|
BINARIES := seccomp_bpf seccomp_benchmark
|
|
CFLAGS += -Wl,-no-as-needed -Wall
|
|
|
|
seccomp_bpf: seccomp_bpf.c ../kselftest_harness.h
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -lpthread $< -o $@
|
|
|
|
TEST_PROGS += $(BINARIES)
|
|
EXTRA_CLEAN := $(BINARIES)
|
|
|
|
all: $(BINARIES)
|