Limiting Process Privileges Should Be Easier
...Prohibit new files, new sockets, etc., by setting the current and maximum RLIMIT NOFILE limits to 0
Prohibit filesystem access: chdir and chroot to an empty directory
Choose a uid dedicated to this process ID. This can be as simple as adding the process ID to a base uid, as long as other system-administration tools stay away from the same uid...
