mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-01 14:37:49 +00:00
update(userspace/engine): resolve token
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
parent
836094b28e
commit
d35971e1bc
@ -269,8 +269,8 @@ int falco_formats::format_event (lua_State *ls)
|
|||||||
|
|
||||||
int falco_formats::resolve_tokens(lua_State *ls)
|
int falco_formats::resolve_tokens(lua_State *ls)
|
||||||
{
|
{
|
||||||
if (!lua_isstring(ls, -1) ||
|
if (!lua_isuserdata(ls, 1) ||
|
||||||
!lua_isstring(ls, -2)) {
|
!lua_isstring(ls, 2)) {
|
||||||
lua_pushstring(ls, "Invalid arguments passed to resolve_tokens()");
|
lua_pushstring(ls, "Invalid arguments passed to resolve_tokens()");
|
||||||
lua_error(ls);
|
lua_error(ls);
|
||||||
}
|
}
|
||||||
|
@ -53,6 +53,7 @@ class falco_formats
|
|||||||
// formatted_string = falco.format_event(evt, formatter)
|
// formatted_string = falco.format_event(evt, formatter)
|
||||||
static int format_event(lua_State *ls);
|
static int format_event(lua_State *ls);
|
||||||
|
|
||||||
|
// resolve_tokens = falco.resolve_tokens(evt, formatter)
|
||||||
static int resolve_tokens(lua_State *ls);
|
static int resolve_tokens(lua_State *ls);
|
||||||
|
|
||||||
static sinsp* s_inspector;
|
static sinsp* s_inspector;
|
||||||
|
Loading…
Reference in New Issue
Block a user