Which is, frankly, an absurd demand.
Mojang should have a mod API, but that won't do diddly squat to improve saftey. Don't execute code if you don't want that code to run.
Which is, frankly, an absurd demand.
Mojang should have a mod API, but that won't do diddly squat to improve saftey. Don't execute code if you don't want that code to run.
[1] http://docs.oracle.com/javase/7/docs/api/java/lang/SecurityM...
Yeah, that worked great
Regardless did you even bother looking at the documentation of SecurityManager? That would be a disaster to try and support. It can't clamp down per-library, it's all about current thread. Mods run in the same thread, they have to. So now you're suggesting that every. single. call into or out of a mod is guarded manually by updates to a permission manager that you are preventing the mod from modifying via reflection through... magic? Yeah, there's no way in hell that would ever work.
You might argue that HTML is not a general purpose language, and that is exactly true. That's what makes it easier to sandbox.
And JavaScript runs in a VM designed specifically to handle untrusted code.
Neither applies in the slightest to the Java VM or Minecraft mods which, by definition, occupy the same process space with the same permissions as Minecraft itself. It is not a web browser, it does not have process sandboxing, it does not have a seperate VM specifically for mods, etc...
That's exactly a point I wanted to make. See https://www.usenix.org/legacy/publications/login/2011-12/ope... and http://langsec.org/papers/langsec-tr.pdf