diff options
author | Jann Horn <jannh@google.com> | 2022-03-19 02:08:38 +0100 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-04-29 11:28:42 -0700 |
commit | d250a3e4e5b41d9d805a8bfd2458b548d1681742 (patch) | |
tree | aea2bb12ebaa5f47a49b0a0eee64efe1c4d9e6ca /tools/testing/selftests/seccomp/Makefile | |
parent | selftests/seccomp: Don't call read() on TTY from background pgrp (diff) | |
download | wireguard-linux-d250a3e4e5b41d9d805a8bfd2458b548d1681742.tar.xz wireguard-linux-d250a3e4e5b41d9d805a8bfd2458b548d1681742.zip |
selftests/seccomp: Test PTRACE_O_SUSPEND_SECCOMP without CAP_SYS_ADMIN
Add a test to check that PTRACE_O_SUSPEND_SECCOMP can't be set without
CAP_SYS_ADMIN through PTRACE_SEIZE or PTRACE_SETOPTIONS.
Signed-off-by: Jann Horn <jannh@google.com>
Co-developed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'tools/testing/selftests/seccomp/Makefile')
-rw-r--r-- | tools/testing/selftests/seccomp/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/seccomp/Makefile b/tools/testing/selftests/seccomp/Makefile index 585f7a0c10cb..f017c382c036 100644 --- a/tools/testing/selftests/seccomp/Makefile +++ b/tools/testing/selftests/seccomp/Makefile @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 CFLAGS += -Wl,-no-as-needed -Wall -isystem ../../../../usr/include/ LDFLAGS += -lpthread +LDLIBS += -lcap TEST_GEN_PROGS := seccomp_bpf seccomp_benchmark include ../lib.mk |