DetectBufferSetActiveList(s, DetectBufferTypeGetByName("file_data"));
+ s->init_data->init_flags |= SIG_FLAG_INIT_FILEDATA;
SetupDetectEngineConfig(de_ctx);
return 0;
}
}
#endif
- if ((s->flags & SIG_FLAG_FILESTORE) || s->file_flags != 0) {
+ if ((s->flags & SIG_FLAG_FILESTORE) || s->file_flags != 0 ||
+ (s->init_data->init_flags & SIG_FLAG_INIT_FILEDATA)) {
if (s->alproto != ALPROTO_UNKNOWN &&
!AppLayerParserSupportsFiles(IPPROTO_TCP, s->alproto))
{
#define SIG_FLAG_INIT_HAS_TRANSFORM (1<<5)
#define SIG_FLAG_INIT_STATE_MATCH (1<<6) /**< signature has matches that require stateful inspection */
#define SIG_FLAG_INIT_NEED_FLUSH (1<<7)
+#define SIG_FLAG_INIT_FILEDATA BIT_U32(9) /**< signature has filedata keyword */
/* signature mask flags */
/** \note: additions should be added to the rule analyzer as well */