mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-07 17:54:07 +00:00
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:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user