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

@@ -18,6 +18,7 @@ limitations under the License.
#include "config_falco_engine.h"
#include "falco_common.h"
#include "banned.h"
std::vector<std::string> falco_common::priority_names = {
"Emergency",
@@ -117,4 +118,3 @@ void falco_common::add_lua_path(string &path)
lua_pop(m_ls, 1);
}