F
F
Fires2015-07-24 13:52:53
Programming
Fires, 2015-07-24 13:52:53

How to run applications on a server in sandboxes?

There is a task: to raise a portal to which participants will send their solutions in source code. Then these sources on the server need to be collected and run through the tests.
The problem is that the sources may contain not only solutions, but also virus programs, the effects of which we would like to avoid.
There was an option to raise a sandbox for each of the solutions, but, firstly, I don’t know how to do it, and secondly, it would have to heavily load the server, which is also undesirable.
It is also worth saying that this service will be similar to acm.timus.ru/, with a certain set of allowed languages ​​in which you can send assignment solutions.
Maybe there are ideas how to solve it competently and beautifully?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Tan Chatn, 2015-07-24
@Fires

Run a virtual machine on the server and try it through it. Docker and Vagrant to the rescue

P
Pavel Shvedov, 2015-07-24
@mmmaaak

And just make a normal user, without administrator rights, and run from him? He will not be able to change anything in the system without root rights.

A
Ai Lab, 2015-07-24
@vpuhoff

It depends on what language, they have already said about the virtual machine. In C#, you can raise a separate domain with limited rights and run any code from under it, anyway, it will not have rights to anything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question