mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 19:14:30 +08:00
32ae976ed3
This test focuses on ambient capabilities. It requires either root or the ability to create user namespaces. Some of the test cases will be skipped for nonroot users. Signed-off-by: Andy Lutomirski <luto@kernel.org> Acked-by: Kees Cook <keescook@chromium.org> Cc: Christoph Lameter <cl@linux.com> # Original author Cc: Serge E. Hallyn <serge.hallyn@ubuntu.com> Cc: James Morris <james.l.morris@oracle.com> Cc: Shuah Khan <shuahkh@osg.samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
19 lines
265 B
Makefile
19 lines
265 B
Makefile
all:
|
|
|
|
include ../lib.mk
|
|
|
|
.PHONY: all clean
|
|
|
|
TARGETS := validate_cap test_execve
|
|
TEST_PROGS := test_execve
|
|
|
|
CFLAGS := -O2 -g -std=gnu99 -Wall -lcap-ng
|
|
|
|
all: $(TARGETS)
|
|
|
|
clean:
|
|
$(RM) $(TARGETS)
|
|
|
|
$(TARGETS): %: %.c
|
|
$(CC) -o $@ $(CFLAGS) $(EXTRA_CFLAGS) $^ -lrt -ldl
|