How can i control the privileges of an executable file ? For example, I have an executable file that i don't want to allow it to read another file or write to it even if it asked to. And i don't want it to connect to a socket. And i don't want it to execute a linux command (using "system(COMMAND_STRING)" for example). I just want it for printf and scanf only.
How can this be done ?
Thanks in advance,