in reply to Re^2: Avoiding Greenspun's Rule; scripting within Perl
in thread Avoiding Greenspun's Rule; scripting within Perl
I can't seem to find a way to, for example, lock down Lua's file IO functions,
That is easy, compile lua.dll without the file/io extension :)
Or undefine io io = nil; but you have to disable require('io'); with require = nil ...
It doesn't matter much which API you use, you setup your lua sandbox, then call runcode $userinput -- read/combine these :)
|
|---|