Sandbox IronPython?

情到浓时终转凉″ 提交于 2019-12-03 06:10:12

问题


Is it possible to run an IronPython interpreter inside my .Net application, but inside a sandbox? I want to deny the IP script access to the filesystem while still allowing the app itself access.

Would this involve running the scripting engine in a second AppDomain? How would I handcuff it so it can't do whatever it pleases?


回答1:


Here's an article explaining how to create an AppDomain and execute code in a sandbox. Just create the AppDomain and handcuff the code that runs inside it.



来源:https://stackoverflow.com/questions/4393153/sandbox-ironpython

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!