mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-28 00:19:36 +00:00

Add audit_exec tests to filter Landlock denials according to cross-execution or muted subdomains. Add a wait-pipe-sandbox.c test program to sandbox itself and send a (denied) signals to its parent. Cc: Günther Noack <gnoack@google.com> Cc: Paul Moore <paul@paul-moore.com> Link: https://lore.kernel.org/r/20250320190717.2287696-24-mic@digikod.net Signed-off-by: Mickaël Salaün <mic@digikod.net>
28 lines
565 B
Makefile
28 lines
565 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# First run: make -C ../../../.. headers_install
|
|
|
|
CFLAGS += -Wall -O2 $(KHDR_INCLUDES)
|
|
|
|
LOCAL_HDRS += common.h
|
|
|
|
src_test := $(wildcard *_test.c)
|
|
|
|
TEST_GEN_PROGS := $(src_test:.c=)
|
|
|
|
TEST_GEN_PROGS_EXTENDED := \
|
|
true \
|
|
sandbox-and-launch \
|
|
wait-pipe \
|
|
wait-pipe-sandbox
|
|
|
|
# Short targets:
|
|
$(TEST_GEN_PROGS): LDLIBS += -lcap -lpthread
|
|
$(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static
|
|
|
|
include ../lib.mk
|
|
|
|
# Targets with $(OUTPUT)/ prefix:
|
|
$(TEST_GEN_PROGS): LDLIBS += -lcap -lpthread
|
|
$(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static
|