[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua sandbox from c/c++
- From: forum <forumme5487@...>
- Date: Thu, 19 Apr 2012 16:34:35 +0530
Yes I have read it. The point being just run an env without them.
But that only applies to doing it from lua, not doing it from c/c++.
Within the application itself.
On 4/19/2012 7:34 PM, Patrick Rapin wrote:
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 , 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.