[sudo-commits] sudo changeset 13198:8778a27abfaf

Todd C. Miller Todd.Miller at sudo.ws
Tue Apr 20 15:38:43 MDT 2021


changeset:	13198:8778a27abfaf in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/8778a27abfaf
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Tue Apr 20 14:31:40 2021 -0600

Log Message:
	Add minimum value to consider when overriding resource limits.
	Currently only used for RLIMIT_DATA and RLIMIT_AS.

	This works around a problem on HP-UX where setting RLIMIT_DATA
	changes the resource limits for both 32-bit and 64-bit processes.
	HP-UX processes start out with RLIMIT_DATA set based on the values
	of the maxdsiz and maxdsiz_64bit kernel tunables, depending on
	whether they are 32-bit or 64-bit.  By default this limit is 1GB
	for 32-bit processes and 4GB for 64-bit.  However, once RLIMIT_DATA
	is changed, it does not appear to be possible to restore the old
	values.  This can result in a 64-bit process that is executed by a
	32-bit shell getting the 32-bit RLIMIT_DATA instead of the 64-bit
	one.  Bug #973

diffstat:

 src/limits.c |  110 +++++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 96 insertions(+), 14 deletions(-)



More information about the sudo-commits mailing list