News for hackers. Stuff that matters.
Re:WebScript.io: Just choose a URL and type in a script. No ... by minhajuddin on Tuesday October 30, 2012 @02:45PM (#4718807)
How are you sandboxing users, so that they don't mess with your environment?
Re:WebScript.io: Just choose a URL and type in a script. No ... by smarx on Tuesday October 30, 2012 @02:50PM (#4718838)
Most of the sandboxing just comes from using embedded Lua and only whitelisting a small number of functions. We also do a little process-level isolation to prevent runaway processes.
Re:WebScript.io: Just choose a URL and type in a script. No ... by minhajuddin on Tuesday October 30, 2012 @03:07PM (#4718931)
Nice, It would be awesome if one could get full capability of a programming language. I have been planning to build something like this but was stuck because of the sandboxing issue.
Re:WebScript.io: Just choose a URL and type in a script. No ... by rhizome on Tuesday October 30, 2012 @10:11PM (#4720797)
You could spawn BSD jails, each subject to cpu, ram and disk quotas.
Re:WebScript.io: Just choose a URL and type in a script. No ... by tarr11 on Tuesday October 30, 2012 @02:51PM (#4718843)
Agree - wouldn't an infinite loop take down your site?
Re:WebScript.io: Just choose a URL and type in a script. No ... by tlrobinson on Tuesday October 30, 2012 @02:52PM (#4718850)
From the sibling comment: "We also do a little process-level isolation to prevent runaway processes."
Re:WebScript.io: Just choose a URL and type in a script. No ... by smarx on Tuesday October 30, 2012 @02:52PM (#4718854)
Give it a try. :-) We kill runaway processes after 10 seconds.