[sudo-commits] sudo changeset 8285:cb71cc8d0b08

Todd C. Miller Todd.Miller at courtesan.com
Wed Aug 1 10:54:29 EDT 2012

changeset:	8285:cb71cc8d0b08 in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/cb71cc8d0b08
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Tue Jul 31 11:11:25 2012 -0400

Log Message:
	SuSE Enterprise Linux uses RLIMIT_NPROC and _SC_CHILD_MAX interchangably.
	This causes problems when setting RLIMIT_NPROC to RLIM_INFINITY due
	to a bug in bash where bash tries to honor the value of _SC_CHILD_MAX
	but treats a value of -1 as an error, and uses a default value of
	32 instead.

	Previously, we just checked RLIMIT_NPROC and, if it was unlimited,
	restored the previous value of RLIMIT_NPROC.  However, that makes
	it impossible to set nproc to unlimited.  We now only restore the
	nproc resource limit if sysconf(_SC_CHILD_MAX) is negative.  In
	most cases, pam_limits will set RLIMIT_NPROC for us.


 src/sudo.c |  18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

More information about the sudo-commits mailing list