mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-05 00:31:38 +00:00
update(userspace): split filterchecks list for each source idx.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
committed by
poiana
parent
5f00cea3c9
commit
39f55f4b5c
@@ -20,6 +20,7 @@ limitations under the License.
|
||||
#include "filter_macro_resolver.h"
|
||||
#include "filter_evttype_resolver.h"
|
||||
#include "filter_warning_resolver.h"
|
||||
#include <version.h>
|
||||
|
||||
#define MAX_VISIBILITY ((uint32_t) -1)
|
||||
#define THROW(cond, err) { if (cond) { throw falco_exception(err); } }
|
||||
@@ -426,7 +427,7 @@ bool rule_loader::is_plugin_compatible(
|
||||
string &required_version)
|
||||
{
|
||||
set<string> required_plugin_versions;
|
||||
sinsp_plugin::version plugin_version(version);
|
||||
sinsp_version plugin_version(version);
|
||||
if(!plugin_version.m_valid)
|
||||
{
|
||||
throw falco_exception(
|
||||
@@ -437,7 +438,7 @@ bool rule_loader::is_plugin_compatible(
|
||||
{
|
||||
for (auto &rversion : it->second)
|
||||
{
|
||||
sinsp_plugin::version req_version(rversion);
|
||||
sinsp_version req_version(rversion);
|
||||
if (!plugin_version.check(req_version))
|
||||
{
|
||||
required_version = rversion;
|
||||
|
Reference in New Issue
Block a user