mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-01 14:47:00 +00:00
fix(engine): index old version of events in rulesets
Co-authored-by: Andrea Terzolo <andrea.terzolo@polito.it> Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
@@ -48,9 +48,8 @@ void filter_evttype_resolver::visitor::evttypes(string evtname, set<uint16_t>& o
|
|||||||
const struct ppm_event_info* etable = g_infotables.m_event_info;
|
const struct ppm_event_info* etable = g_infotables.m_event_info;
|
||||||
for(uint16_t i = 2; i < PPM_EVENT_MAX; i++)
|
for(uint16_t i = 2; i < PPM_EVENT_MAX; i++)
|
||||||
{
|
{
|
||||||
// Skip "old" event versions, unused events, or events not matching
|
// Skip unused events or events not matching the requested evtname
|
||||||
// the requested evtname
|
if(!(etable[i].flags & EF_UNUSED)
|
||||||
if(!(etable[i].flags & (EF_OLD_VERSION | EF_UNUSED))
|
|
||||||
&& (evtname.empty() || string(etable[i].name) == evtname))
|
&& (evtname.empty() || string(etable[i].name) == evtname))
|
||||||
{
|
{
|
||||||
out.insert(i);
|
out.insert(i);
|
||||||
|
Reference in New Issue
Block a user