Part of my project need to allow participant upload simple and very basic java code and I will run their code and return the result for them. I reduce the security risk by limiting the permission of web user account, using thread to control time out case, and use security manager to sandbox entrusted program.
Since I do not know much about what kind of request may cause unexpected danger, I decided to use default policy. But most of people are talking about using a custom policy.
I have searched a lot but I still did not find any website/literature/tutorial which talk about why shouldn't I use default security manager. Is there any bugs that can be avoid by using a custom policy while exist in default one?
I mean, is it because the default policy is too strict or useless, such that people tend to use custom policy.
I have read the java.security, but I still want to make sure of this.