From e223734d248b219e9d8049a7e18f613ab9e745e8 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sun, 7 Oct 2018 16:56:11 +0000 Subject: [PATCH] Use kernel exploit name as base for test util name --- examples/kernel-exploit/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/kernel-exploit/Makefile b/examples/kernel-exploit/Makefile index f969cb7..93b5369 100644 --- a/examples/kernel-exploit/Makefile +++ b/examples/kernel-exploit/Makefile @@ -1,7 +1,7 @@ # out-of-tree called make with four arguments: # - KERNEL: kernel headers path # - TARGET_EXPLOIT: name of exploit binary that MUST be produced by makefile. -# - TARGET_TEST: name of test binary that MUST be produced by makefile +# - $(TARGET_EXPLOIT)_test: name of test binary that MUST be produced by makefile # and it's will be runned on a LPE stage. TARGET_TEST MUST accept two argument: # - Path to exploit binary # - File that MUST be created with exploit. It uses for test that exploit works @@ -15,11 +15,10 @@ # VMLINUZ=/boot/vmlinuz-4.8.0-58-generic TARGET_EXPLOIT := CVE-2016-5195 -TARGET_TEST := CVE-2016-5195_test all: gcc CVE-2016-5195.c -o $(TARGET_EXPLOIT) - gcc CVE-2016-5195_test.c -o $(TARGET_TEST) + gcc CVE-2016-5195_test.c -o $(TARGET_EXPLOIT)_test clean: rm -f $(TARGET_EXPLOIT)