Limiting Process Privileges Should Be Easier
...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 range
Ensure that nothing is running under the uid: fork a child to run setuid(targetuid), kill(-1,SIGKILL), and exit(0), and then check that the child exited normally...





