lua-hooks/ext/all.c in immunio-1.1.2 vs lua-hooks/ext/all.c in immunio-1.1.5

- old
+ new

@@ -6,25 +6,13 @@ #include "lua.h" #include "lauxlib.h" #include "lualib.h" +#include "modules.h" -// Include our custom modules -#include "libinjection/lualib.c" -#include "luautf8/lutf8lib.c" -#include "lpeg/lptree.c" -#include "lua-cmsgpack/lua_cmsgpack.c" -#include "lua-snapshot/snapshot.c" -#include "sha1/luasha1.c" -#include "sha2/luasha256.c" -#include "perf/luacpu.c" -#include "perf/lualoadavg.c" -#include "perf/luameminfo.c" -#include "perf/luaoslib.c" - static const luaL_Reg lj_lib_load[] = { // Default Lua modules // // SECURITY NOTE: // Some of the following modules are unsafe according to http://lua-users.org/wiki/SandBoxes. @@ -45,17 +33,18 @@ // Our custom modules {"libinjection", luaopen_libinjection}, {"utf8", luaopen_utf8}, {"lpeg", luaopen_lpeg}, - {LUACMSGPACK_NAME, luaopen_cmsgpack}, + {"cmsgpack", luaopen_cmsgpack}, {"snapshot", luaopen_snapshot}, {"sha1", luaopen_sha1}, {"sha2", luaopen_sha256}, {"perf", luaopen_cpuload}, {"perf", luaopen_loadavg}, {"perf", luaopen_meminfo}, {"perf", luaopen_luaos}, + {"sysutils", luaopen_sysutils}, { NULL, NULL } }; // In unsafe mode define these as NOPs when we build a .so