[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Sandboxing require function
- From: Dirk Laurie <dirk.laurie@...>
- Date: Wed, 2 Apr 2014 11:22:26 +0200
2014-04-02 10:18 GMT+02:00 David Demelier <demelier.david@gmail.com>:
> But users can still modify the package.* variables in its user script (even
> if we add a __newindex or securities like that, it can uses rawset).
If you can supply your user with only a crippled 'require', you can also
set 'rawget' and 'rawset' to nil.