feat(userspace): Add banned.h which includes banned functions.

This defines certain functions as invalid tokens, i.e., when
compiled, the compiler throws an error.

Currently only `strcpy` is included as a banned function.

Fixes #788

Signed-off-by: Vaibhav <vrongmeal@gmail.com>
This commit is contained in:
Vaibhav
2020-02-03 19:25:26 +05:30
committed by poiana
parent f98da284d0
commit 22a95796c1
20 changed files with 46 additions and 5 deletions

View File

@@ -24,6 +24,8 @@ extern "C" {
}
#include "falco_engine.h"
#include "banned.h"
const static struct luaL_reg ll_falco_rules [] =
{
{"clear_filters", &falco_rules::clear_filters},
@@ -480,4 +482,3 @@ falco_rules::~falco_rules()
delete m_sinsp_lua_parser;
delete m_json_lua_parser;
}