Do not append .ko suffix for exploits
This commit is contained in:
parent
4d6caef219
commit
4876c01b06
5
main.go
5
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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user