Squashed commit of the following:
commit
adce4923e61c0258762b54d8cd716f7cebdd27c4
Author: krishnakanth <vkambala@cisco.com>
Date: Mon Nov 18 00:12:32 2019 -0500
file_api: Fixed eventing when FILE_SIG_DEPTH failed when store files enabled
}
finish_signature_lookup(p, ( file_state.sig_state != FILE_SIG_FLUSH ), policy);
+
+ if (file_state.sig_state == FILE_SIG_DEPTH_FAIL)
+ {
+ verdict = policy->signature_lookup(p, this);
+ if ( verdict != FILE_VERDICT_UNKNOWN )
+ {
+ FileCache* file_cache = FileService::get_file_cache();
+ if (file_cache)
+ file_cache->apply_verdict(p, this , verdict, false, policy);
+
+ log_file_event(flow, policy);
+ }
+ }
}
else
{
captured->store_file_async();
else
delete captured;
+
+ FileState state = file->get_file_state();
+ if (state.sig_state == FILE_SIG_DEPTH_FAIL)
+ return FILE_VERDICT_LOG;
}
return match_file_signature(nullptr, file);