]> git.ipfire.org Git - thirdparty/suricata.git/commit
smtp: use detection file tracking
authorVictor Julien <victor@inliniac.net>
Wed, 9 Mar 2016 19:44:26 +0000 (20:44 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 16 Mar 2016 09:26:10 +0000 (10:26 +0100)
commit9afaf14ba4137f535aa6414982fdf488f0f3cce8
tree631daafac88476d37934de44b719cd6c73135e8c
parent77358a4113e4fab82464a257e95484f8dcb25d21
smtp: use detection file tracking

As SMTP file_data detection uses the file API, the file's inspect
tracker should be considered when pruning files.

This patch sets the FILE_USE_DETECT flag on files tracked by smtp.

It also adds logic to move inspected tracker ahead if detection
doesn't do it, like when no rules are matching or detection engine
is disabled.
src/app-layer-smtp.c
src/detect-engine-filedata-smtp.c