diff options
author | Andy Lutomirski <luto@kernel.org> | 2015-09-04 15:42:48 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-04 16:54:41 -0700 |
commit | 32ae976ed3b5ba39c9208ace41bcdf4157d21db3 (patch) | |
tree | 207faf9bc45d21e6beacad07431112442f262d99 /tools/testing/selftests/capabilities/Makefile | |
parent | 58319057b7847667f0c9585b9de0e8932b0fdb08 (diff) | |
download | op-kernel-dev-32ae976ed3b5ba39c9208ace41bcdf4157d21db3.zip op-kernel-dev-32ae976ed3b5ba39c9208ace41bcdf4157d21db3.tar.gz |
selftests/capabilities: Add tests for capability evolution
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>
Diffstat (limited to 'tools/testing/selftests/capabilities/Makefile')
-rw-r--r-- | tools/testing/selftests/capabilities/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/testing/selftests/capabilities/Makefile b/tools/testing/selftests/capabilities/Makefile new file mode 100644 index 0000000..8c8f0c1 --- /dev/null +++ b/tools/testing/selftests/capabilities/Makefile @@ -0,0 +1,18 @@ +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 |