lua-hooks/ext/all.c in immunio-1.0.13 vs lua-hooks/ext/all.c in immunio-1.0.14
- old
+ new
@@ -15,11 +15,16 @@
#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.
@@ -44,9 +49,13 @@
{"lpeg", luaopen_lpeg},
{LUACMSGPACK_NAME, luaopen_cmsgpack},
{"snapshot", luaopen_snapshot},
{"sha1", luaopen_sha1},
{"sha2", luaopen_sha256},
+ {"perf", luaopen_cpuload},
+ {"perf", luaopen_loadavg},
+ {"perf", luaopen_meminfo},
+ {"perf", luaopen_luaos},
{ NULL, NULL }
};
// In unsafe mode define these as NOPs when we build a .so