Running untrusted Lua code in Luajit

  • From: Marek Majkowski <majek04@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 31 Jul 2015 15:46:55 +0100

Hi!

There are plenty of resources about running untrusted Lua in code in
the context of normal Lua interpreter [1]. Is there a documented
method of running untrusted code in Luajit?

I'm mostly interested in:
- forbidding single "tenant" from using too much memory
- ensuring a single "tenant" won't consume all the CPU

If running multi-tenant luajit VM is not a good idea, is running many
luajit VM's, one for each tenant an alternative?

Cheers,
Marek

[1] http://lua-users.org/wiki/SandBoxes

Other related posts: