Re: lua sandbox from c/c++
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: lua sandbox from c/c++
- From: Patrick Rapin <toupie300@...>
- Date: 2012年4月19日 16:04:23 +0200
> How can I run a safe sandbox from within a c/c++ application?
This is a very complex question, going far beyond setting "io" to nil.
You must begin to read that document [1], and probably others too.
For your specific question, instead of calling the default
luaL_openlibs, provide your version of it.
It is easier than "unregistering" libraries thereafter.
[1] http://lua-users.org/wiki/SandBoxes