Controlling process and thread security in C/C++
How can I control thread and process (lauchned by my program):
1) read access.
2) write access.
3) execute access.
4) allow write access only in one directory with fixed maximum disk usage.
5) track CPU usage of thread and process.
6) limiting number of thread a plugin can create.
7) Controlling which dynamic library are being loaded.
The question is for Linux, Window$(I don't think it's possible) and Mac OS X.
I need this because i'm writting a software that will have some kind of plugin (executed or threaded) and I want to be sure that they won't damage the system in any way.
This is because, in these case, I can't trust all plugin (or check them all).
Any small response is welcome.
The program will be in C/C++
Thanks in advance !!!!
Last edited by synna; 01-25-2004 at 05:33 AM.
|