From 4876c01b06e32619d86e06d29e07bdf464700e2b Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sun, 7 Oct 2018 17:25:44 +0000 Subject: [PATCH] Do not append .ko suffix for exploits --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 2da6173..98ef34d 100644 --- a/main.go +++ b/main.go @@ -142,7 +142,10 @@ func build(tmp string, ka artifact, ki kernelInfo) (outPath, output string, err return } - outPath = tmpSourcePath + "/" + target + ".ko" + outPath = tmpSourcePath + "/" + target + if ka.Type == KernelModule { + outPath += ".ko" + } kernel := "/lib/modules/" + ki.KernelRelease + "/build"