lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Patrick Donnelly wrote:
I'm trying to make a sandbox that will contain getfenv. Unfortunately
this function can be used to gain access to the global environment
pretty easily (where things like the io library and os library would
be found)....
Some things I've thought of is add all the Lua functions I want in
wrapper functions. This seems arduous and inelegant though.

Maybe remove io and os from the global environment.