2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Use set_perms(PERM_FULL_ROOT, 0) before exec'ing the mailer since we never

want to run the mailer setuid.
This commit is contained in:
Todd C. Miller
2002-01-13 18:27:25 +00:00
parent 2abe7d8e13
commit ddf96f301d

View File

@@ -494,7 +494,7 @@ send_mail(line)
endpwent();
/* Run mailer as root so user cannot kill it. */
set_perms(PERM_ROOT, 0);
set_perms(PERM_FULL_ROOT, 0);
execv(mpath, argv);
_exit(127);
}