1
0

Do not append .ko suffix for exploits

This commit is contained in:
dump_stack() 2018-10-07 17:25:44 +00:00
parent 4d6caef219
commit 4876c01b06

View File

@ -142,7 +142,10 @@ func build(tmp string, ka artifact, ki kernelInfo) (outPath, output string, err
return return
} }
outPath = tmpSourcePath + "/" + target + ".ko" outPath = tmpSourcePath + "/" + target
if ka.Type == KernelModule {
outPath += ".ko"
}
kernel := "/lib/modules/" + ki.KernelRelease + "/build" kernel := "/lib/modules/" + ki.KernelRelease + "/build"