diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-09 04:07:23 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-10 02:25:49 +0200 |
commit | 0191a9c4c2749871887e3a2878a36afef90f832b (patch) | |
tree | 8e73f73ce8b2a986f8b5119b557932b28ce0d93f /libs/ardour/luaproc.cc | |
parent | cba622cdcecdba2fd88556c4364646c96f4451c6 (diff) |
Centralize Lua sandboxing
Diffstat (limited to 'libs/ardour/luaproc.cc')
-rw-r--r-- | libs/ardour/luaproc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/luaproc.cc b/libs/ardour/luaproc.cc index 0e181dbb6b..6581743771 100644 --- a/libs/ardour/luaproc.cc +++ b/libs/ardour/luaproc.cc @@ -163,7 +163,7 @@ LuaProc::init () lua_setglobal (L, "self"); // sandbox - lua.do_command ("io = nil os = nil loadfile = nil require = nil dofile = nil package = nil debug = nil"); + lua.sandbox (true); #if 0 lua.do_command ("for n in pairs(_G) do print(n) end print ('----')"); // print global env #endif |