[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Loose sandbox
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 18 Jul 2008 08:09:23 -0300
> I am writing a program where an external user script is loaded and
> executed. Therefore it is AFAIK good practice to implement a sandbox which
> restricts the user to use only a certain set of functions. Still I would
> like to enable the user to use most of Lua's functions and restrict only
> those functions which would enable the user to break the sandbox and e.g.
> access _G.
Here's what is done in http://www.lua.org/cgi-bin/demo :