Hello, i'm making a node.js public sandbox, something like codepad for Javascript. I'm running a VM with debian and i call node via ssh sendind the script to be ran. The problems i'm having is that i've tried the Sandbox module, but it doesn't allow for node modules or functions. I want to whitelist modules and add custom ones. What i plan to do is scan the user script for "requires( something) " and only allow the whitelisted modules.
Can someone hint me on the chrooting of this? Will it be enough?
Thanks