mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 15:14:52 +00:00

Adds a utility to exercise the prctl DEXCR inheritance in the shell. Supports setting and clearing each aspect. Signed-off-by: Benjamin Gray <bgray@linux.ibm.com> [mpe: Use correct SPDX license, use execvp() for usability, print errors] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20240417112325.728010-9-bgray@linux.ibm.com
13 lines
327 B
Makefile
13 lines
327 B
Makefile
TEST_GEN_PROGS := dexcr_test hashchk_test
|
|
TEST_GEN_FILES := lsdexcr chdexcr
|
|
|
|
include ../../lib.mk
|
|
include ../flags.mk
|
|
|
|
CFLAGS += $(KHDR_INCLUDES)
|
|
|
|
$(OUTPUT)/hashchk_test: CFLAGS += -fno-pie -no-pie $(call cc-option,-mno-rop-protect)
|
|
|
|
$(TEST_GEN_PROGS): ../harness.c ../utils.c ./dexcr.c
|
|
$(TEST_GEN_FILES): ../utils.c ./dexcr.c
|