mig/modules
Aaron Meihm d0e77beaf8 file: honor matchlimit, uses channels for result processing
The matchlimit option to the file module was not working correctly due
to a couple reasons.

First, it relied on the Totalhits value in the module statistics to
compare the number of hits to the match limit. This value was compiled
in buildResults, so was 0 throughout module execution. Because of this
matchlimit would never be exceeded.

Also, the comparison to Totalhits was only occuring on directory entry.
This means if the match limit was hit while scanning a single directory,
it would continue to scan files exceeding the match limit.

This modifies the way results are processed by Search types, so
individual checks submit matched files via a channel to the parent
Search entry. The Search entry can then maintain a list of matches, and
increment Totalhits as required while the processing is occuring instead
of in buildResults.

Closes #382
2017-08-21 16:58:33 -05:00
..
agentdestroy [medium/bug] resolve bufio issues under high agent/module comms 2016-12-16 09:55:21 -06:00
example [medium/bug] resolve bufio issues under high agent/module comms 2016-12-16 09:55:21 -06:00
examplepersist [medium] persistent module config file support 2016-12-16 15:42:16 -06:00
file file: honor matchlimit, uses channels for result processing 2017-08-21 16:58:33 -05:00
fswatch [minor] add default fswatch profiles for darwin/windows, currently empty 2017-02-27 17:00:58 -06:00
memory [medium/bug] resolve bufio issues under high agent/module comms 2016-12-16 09:55:21 -06:00
netstat Merge branch 'master' into issue-291-win-netstat 2016-12-22 15:06:53 -06:00
ping [minor] remove direct doc link from ping module code 2017-04-11 16:00:34 -05:00
pkg [medium/bug] resolve bufio issues under high agent/module comms 2016-12-16 09:55:21 -06:00
scribe [medium/bug] resolve bufio issues under high agent/module comms 2016-12-16 09:55:21 -06:00
timedrift [medium/bug] resolve bufio issues under high agent/module comms 2016-12-16 09:55:21 -06:00
yara [doc] documentation for yara module 2017-04-03 15:35:55 -05:00
modules.go [medium] persistent module config file support 2016-12-16 15:42:16 -06:00
modules_test.go [medium/bug] resolve bufio issues under high agent/module comms 2016-12-16 09:55:21 -06:00
registration.go [minor] add import comment to packages declarations 2015-08-26 14:15:40 -04:00