I’m trying to set up Boo as a compiled-at-runtime scripting language (It’s very easy!) But there’s nothing stopping a script calling ‘Delete.All(HardDrives).’
“No problem!”, I said. “I’ll just a use .net’s security functions to put it in a safe sandbox.” A few hours of frustration later, I discover Mono doesn’t support Code Access Security. (Instead, they recommend an alternative model that doesn’t seem to be documented anywhere any may or may not be relevant to Unity.)
Right-o.
Is there a way of running sandboxed code in Unity? In particular, the webplayer has some kind of security built-in: is there any way I can bite that off for the project?