[resolved] user specific file access permission
Hi,
I'm writting a programming game (a game where you program bot that will fight each other ,something like Robocode, see robocode.net) where you have to write a dynamic library that will be executed in order to control a robot.
The problem is that I don't want to check the code given by each participant. I wan't to do something like a security box. I thought maybe it's possible to run the program under a specific user. This user should :
Only access one directory (all other directory closed even for reading) and the files in it
Don't use network connection (localhost is okay).
If possible write until the directory reach a specific size (like 2MB).
If I don't do it there will be a serious security problem in the application.
Thank you very much in advance.
Synna
PS : Sorry for my bad english
Last edited by synna; 01-14-2004 at 08:27 AM.
|