ngsankha / codejudge

host coding competitions anywhere, anytime
http://sankhs.com/codejudge
MIT License
90 stars 53 forks source link

Program should run in a secure chroot #2

Closed ngsankha closed 12 years ago

ngsankha commented 12 years ago

Currently any program that is executed under Codejudge is running under the access privileges of the user. So it is possible to create a malicious program that can damage the user's data or the system. One way would be to create a chrooted environment in which the program is run so that it cannot access any outside files.

In such a case one needs to modify the classes ( yes, and not the Language interface) that implement each particular language.