This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
tesla1889's profile picture

[lua][question] sandboxing

Started by tesla1889, 03 January 2013 - 08:28 PM
tesla1889 #1
Posted 03 January 2013 - 09:28 PM
does anyone know when in the loading process lua gets sandboxed?

i'm trying to write an OS (more of a shell of an OS, really), and there are some things i want to implement that require some of vanilla lua
Lyqyd #2
Posted 04 January 2013 - 03:42 AM
What are you talking about? What do you mean by "vanilla Lua"? I very strongly suspect that what you're looking to do either doesn't require what you think it does or is impossible. What are you trying to accomplish that makes you think you need an "unsandboxed Lua"?
tesla1889 #3
Posted 04 January 2013 - 11:01 AM
sockets. i need sockets. also, it would be nice to change the sandboxing to fit my needs, and multiple layers of sandboxes really eats up memory and slows things down.

Edit: also i want to change file permissions in a way that isnt a ridiculous nested if statement.
Lyqyd #4
Posted 04 January 2013 - 11:13 AM
Well, there isn't any unsandboxed lua anywhere within ComputerCraft, but there are peripheral mod(s) that allow you to connect directly to an arbitrary socket. I don't know if they're up to date.
tesla1889 #5
Posted 05 January 2013 - 01:50 PM
idk how to mark this as solved, but it is. i read the CC source and it is sandboxed in java