[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Modify Lua interpreter to implement a sandbox script language
- From: Andrew Gierth <andrew@...>
- Date: Mon, 03 Sep 2018 21:05:44 +0100
>>>>> "Leonardo" == Leonardo Gomes <leonardo.alves.gomes@usp.br> writes:
Leonardo> If you control the code that loads the untrusted Lua script
Leonardo> and don't intend on modifying lua itself, I think you can
Leonardo> achieve a "sandboxed" environment by using the setfenv
Leonardo> function.
setfenv doesn't exist in 5.2+; in current versions you use the
environment parameter to load() instead.
--
Andrew.