exec_setup() does not need to setuid(0), the Ubuntu issue was in

the sudoers module.
This commit is contained in:
Todd C. Miller
2010-11-23 07:35:27 -05:00
parent 8f4b215216
commit d0d0e1b9f5

View File

@@ -730,14 +730,6 @@ exec_setup(struct command_details *details, const char *ptyname, int ptyfd)
int rval = FALSE;
struct passwd *pw;
/*
* This function must run with root privileges.
*/
if (setuid(ROOT_UID) != 0) {
warning("unable to change to uid to root (%u)", ROOT_UID);
goto done;
}
#ifdef HAVE_SETAUTHDB
aix_setauthdb(IDtouser(details->euid));
#endif