Skip to content

Commit 3ce8b96

Browse files
committed
:)
1 parent d17e505 commit 3ce8b96

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/ee/agent-smith/pkg/classifier/classifier.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,9 @@ func (sigcl *SignatureMatchClassifier) Matches(executable string, cmdline []stri
254254

255255
// MatchesFile checks if a filesystem file matches any filesystem signatures
256256
func (sigcl *SignatureMatchClassifier) MatchesFile(filePath string) (c *Classification, err error) {
257-
// Only check signatures with DomainFileSystem
258257
filesystemSignatures := make([]*Signature, 0)
259258
for _, sig := range sigcl.Signatures {
260-
if sig.Domain == "filesystem" {
259+
if sig.Domain == DomainFileSystem {
261260
filesystemSignatures = append(filesystemSignatures, sig)
262261
}
263262
}

0 commit comments

Comments
 (0)