mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 23:48:31 -04:00
AP_Scritping: remove more libraries from the sandbox
This commit is contained in:
parent
d7e71f85b8
commit
f1d5269f9e
libraries/AP_Scripting
@ -41,15 +41,15 @@
|
||||
*/
|
||||
static const luaL_Reg loadedlibs[] = {
|
||||
{"_G", luaopen_base},
|
||||
{LUA_LOADLIBNAME, luaopen_package},
|
||||
// {LUA_LOADLIBNAME, luaopen_package},
|
||||
// {LUA_COLIBNAME, luaopen_coroutine},
|
||||
{LUA_TABLIBNAME, luaopen_table},
|
||||
// {LUA_IOLIBNAME, luaopen_io},
|
||||
{LUA_OSLIBNAME, luaopen_os},
|
||||
// {LUA_OSLIBNAME, luaopen_os},
|
||||
{LUA_STRLIBNAME, luaopen_string},
|
||||
{LUA_MATHLIBNAME, luaopen_math},
|
||||
{LUA_UTF8LIBNAME, luaopen_utf8},
|
||||
{LUA_DBLIBNAME, luaopen_debug},
|
||||
// {LUA_DBLIBNAME, luaopen_debug},
|
||||
#if defined(LUA_COMPAT_BITLIB)
|
||||
{LUA_BITLIBNAME, luaopen_bit32},
|
||||
#endif
|
||||
|
@ -26,7 +26,6 @@ function get_sandbox_env ()
|
||||
sort = table.sort },
|
||||
utf8 = { char = utf8.char, charpattern = utf8.charpattern, codes = utf8.codes,
|
||||
codepoint = utf8.codepoint, len = utf8.len, offsets = utf8.offsets},
|
||||
os = { clock = os.clock, difftime = os.difftime, time = os.time },
|
||||
|
||||
-- ArduPilot specific
|
||||
gcs = { send_text = gcs.send_text},
|
||||
|
Loading…
Reference in New Issue
Block a user