From: Todd C. Miller Date: Sun, 13 Jan 2002 18:27:25 +0000 (+0000) Subject: Use set_perms(PERM_FULL_ROOT, 0) before exec'ing the mailer since we never X-Git-Tag: SUDO_1_6_4~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ddf96f301d8b55ec07827a380624ec06f3bd6371;p=sudo Use set_perms(PERM_FULL_ROOT, 0) before exec'ing the mailer since we never want to run the mailer setuid. --- diff --git a/logging.c b/logging.c index 03364fa09..e0456379b 100644 --- a/logging.c +++ b/logging.c @@ -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); }