--- a/src/c++/task-controller/impl/main.c +++ b/src/c++/task-controller/impl/main.c @@ -107,9 +107,11 @@ } set_tasktracker_uid(getuid(), group_info->gr_gid); // if we are running from a setuid executable, make the real uid root - setuid(0); + if(setuid(0)) + ; // set the real and effective group id to the task tracker group - setgid(group_info->gr_gid); + if(setgid(group_info->gr_gid)) + ; if (check_taskcontroller_permissions(executable_file) != 0) { fprintf(LOGFILE, "Invalid permissions on task-controller binary.\n");