update(engine): create a lua helper for rule filter manipulation

The lua_filter_helper class is a simple Lua wrapper that can be used in the Lua rule loader to
parse/compile rule filters, and manipulate them to resolve/replace list and macro references.

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce
2022-02-28 17:14:29 +00:00
committed by poiana
parent 3879a283bf
commit 911bd16556
6 changed files with 263 additions and 5 deletions

View File

@@ -28,8 +28,8 @@ limitations under the License.
#include "formats.h"
#include "lua_filter_helper.h"
extern "C" {
#include "lpeg.h"
#include "lyaml.h"
}
@@ -53,6 +53,7 @@ falco_engine::falco_engine(bool seed_rng)
falco_common::init();
falco_rules::init(m_ls);
lua_filter_helper::init(m_ls);
m_required_plugin_versions.clear();