mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-29 03:11:02 +00:00
Load statically-linked lyaml lib and lua bindings
This commit is contained in:
parent
1703d048c3
commit
77a3e3b110
@ -15,6 +15,7 @@ extern "C" {
|
|||||||
#include "lualib.h"
|
#include "lualib.h"
|
||||||
#include "lauxlib.h"
|
#include "lauxlib.h"
|
||||||
#include "lpeg.h"
|
#include "lpeg.h"
|
||||||
|
#include "lyaml.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <sinsp.h>
|
#include <sinsp.h>
|
||||||
@ -317,6 +318,7 @@ int falco_init(int argc, char **argv)
|
|||||||
ls = lua_open();
|
ls = lua_open();
|
||||||
luaL_openlibs(ls);
|
luaL_openlibs(ls);
|
||||||
luaopen_lpeg(ls);
|
luaopen_lpeg(ls);
|
||||||
|
luaopen_yaml(ls);
|
||||||
add_lua_path(ls, lua_dir);
|
add_lua_path(ls, lua_dir);
|
||||||
|
|
||||||
rules = new falco_rules(inspector, ls, lua_main_filename);
|
rules = new falco_rules(inspector, ls, lua_main_filename);
|
||||||
|
6
userspace/falco/lyaml.h
Normal file
6
userspace/falco/lyaml.h
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "lua.h"
|
||||||
|
|
||||||
|
int luaopen_yaml (lua_State *L);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user