mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-03 07:45:47 +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:
@@ -494,7 +494,7 @@ send_mail(line)
|
|||||||
endpwent();
|
endpwent();
|
||||||
|
|
||||||
/* Run mailer as root so user cannot kill it. */
|
/* Run mailer as root so user cannot kill it. */
|
||||||
set_perms(PERM_ROOT, 0);
|
set_perms(PERM_FULL_ROOT, 0);
|
||||||
execv(mpath, argv);
|
execv(mpath, argv);
|
||||||
_exit(127);
|
_exit(127);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user