* src/sudo.c:
Set real uid to root before calling sudo_edit() or run_command() so
that the monitor process is owned by root and not by the user.
Otherwise, on AIX at least, the monitor process shows up in ps as
belonging to the user (and can be killed by the user).
Reviewing the changelogs for sudo, I've found what seems the likely point at which this behavior changed:
http:// www.sudo. ws/sudo/ changes. html --> 2012-02-06 entry:
* src/sudo.c:
Set real uid to root before calling sudo_edit() or run_command() so
that the monitor process is owned by root and not by the user.
Otherwise, on AIX at least, the monitor process shows up in ps as
belonging to the user (and can be killed by the user).