[sudo-commits] sudo changeset 8923:1372f1909039
Todd C. Miller
Todd.Miller at courtesan.com
Mon Jul 29 15:34:53 MDT 2013
changeset: 8923:1372f1909039 in /home/hg/sudo
details: http://www.sudo.ws/repos/sudo/rev/1372f1909039
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Mon Jul 29 15:34:49 2013 -0600
Log Message:
Instead of setting RLIMIT_NPROC to unlimited when sudo initializes,
just save RLIMIT_NPROC in exec_setup() before the final setuid()
and restore it immediately after. We don't need to modify RLIMIT_NPROC
for simple euid changes, just for changing the real (and saved)
uids before we exec. This also means we no longer need to worry
about _SC_CHILD_MAX returning -1. Bug #565
diffstat:
src/sudo.c | 96 ++++++++++++++++++++++++++++++++-----------------------------
1 files changed, 50 insertions(+), 46 deletions(-)
More information about the sudo-commits
mailing list