Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does the ACM ICPC Online Judge prevent malicious attacks? [closed]

Tags:

security

I've spent more than a few hours humbling myself on the ACM ICPC's problem set archive, and I've wondered how the online judge is able to compile and run source code from any user and prevent malicious attacks to their system.

Are the compiled binaries run from some kind of limited sandbox? How would one go about setting up this kind of sandbox? What OS would you use? How would you launch a user's compiled executable?

like image 883
Andrew Garrison Avatar asked Jun 18 '09 18:06

Andrew Garrison


1 Answers

You could run it in a Linux chroot jail, or link it against a libc that doesn't implement any file I/O.

like image 110
Ted Kaplan Avatar answered Oct 05 '22 15:10

Ted Kaplan