- added first round of security sandboxing for lua scripts (disable the os library)

This commit is contained in:
Mark Vejvoda
2012-10-11 05:17:37 +00:00
parent 8cc9c760e1
commit e3e3832070
4 changed files with 53 additions and 13 deletions

View File

@@ -42,12 +42,16 @@ private:
string sandboxWrapperFunctionName;
string sandboxCode;
static bool disableSandbox;
void DumpGlobals();
public:
LuaScript();
~LuaScript();
static void setDisableSandbox(bool value) { disableSandbox = value; }
void loadCode(string code, string name);
void beginCall(string functionName);