Skip to content

Commit

Permalink
Explicitly check for "mal" binary name when ignoring self (#466)
Browse files Browse the repository at this point in the history
Signed-off-by: egibs <[email protected]>
  • Loading branch information
egibs authored Sep 23, 2024
1 parent 5554211 commit 66b3d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ func Generate(ctx context.Context, path string, mrs yara.MatchRules, c malconten
// TODO: If we match multiple rules within a single namespace, merge matchstrings
}

if all(ignoreSelf, fr.IsMalcontent, ignoreMalcontent, filepath.Base(path) == NAME) {
if all(ignoreSelf, fr.IsMalcontent, ignoreMalcontent, filepath.Base(path) == "mal") {
return malcontent.FileReport{}, nil
}

Expand Down

0 comments on commit 66b3d09

Please sign in to comment.