[Mono-list] Sandbox

Ollhax ollhak at gmail.com
Thu Jan 15 20:55:13 UTC 2015


Sounds like a good plan, but the problem is that I can't do step # 3 -
/create a new AppDomain with low security permissions/.

Just to be sure the documentation is not old, I installed Ubuntu and ran the
example in the end of this article:
http://msdn.microsoft.com/en-us/library/bb763046%28v=vs.110%29.aspx
(slightly modified since the GetHostEvidence stuff isn't supported, and
tried creating a file instead). Worked fine on Windows (threw an exception),
but sandboxing was not done in Mono. 

I also played a little with the --security setting, but no luck.

Perhaps it's possible to make Roslyn not accept bad code instead? I.e.
restrict which assemblies you use to a bare minimum, don't build unsafe
code, and so on. Not sure how safe it would be, but I'm giving it a try.



--
View this message in context: http://mono.1490590.n4.nabble.com/Sandbox-tp4665163p4665240.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list