4 ms·
People might also be interested in http://try-hy.appspot.com/ http://try-hy.appspot.com/. Does anyone know how they do sandboxing in there? Judging from the so
by Scriptor 13y ago
People might also be interested in http://try-hy.appspot.com/ http://try-hy.appspot.com/.
Does anyone know how they do sandboxing in there? Judging from the source (https://github.com/hylang/tryhy/blob/master/main.hy https://github.com/hylang/tryhy/blob/master/main.hy) repl.eval is called on each expression. I'm guessing it just uses App Engine's default python sandboxing.
- Foxboron 13y agoYes, its app engines default sandboxing in use.
- Scriptor 13y agoIs there any way to restrict your app's environment beyond the default sandbox restrictions Google applies? For example, disabling things like urllib2.
- Foxboron 13y agoI didn't write the code, and i'm not sure if you can. You could always use the import hooks and deny modules from being imported.