lua-users home
lua-l archive

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


On Wed, Nov 24, 2010 at 07:21, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> I'm going to look at the link posted earlier with the code from the
>> official try lua and see what's being restricted there.
>
> Just this:
>
>     arg=nil
>     debug.debug=nil
>     debug.getfenv=getfenv
>     debug.getregistry=nil
>     dofile=nil
>     io={write=io.write}
>     loadfile=nil
>     os.execute=nil
>     os.getenv=nil
>     os.remove=nil
>     os.rename=nil
>     os.tmpname=nil
>     package.loaded.io=io
>     package.loaded.package=nil
>     package=nil
>     require=nil
>
>

    package.loaded.io=io
    package.loaded.package=nil
    package=nil
This doesn't look right...

-- 
Sent from my toaster.