On Thu, Mar 31, Kees Cook wrote:
Since the kernel sets a number of dynamic rlimits based on the
system
properties (e.g. physical memory for nproc), these rlimits should be
respected by PAM. Parse /proc/1/limits for the kernel-defined rlimits.
Ok, attached is a patch, where I fixed the syntax errors and I
added an "init_all" option. Means by default no behavior changes
against the current version. If admin specifies "init_all", the missing
limits will be set from the one of process with PId 1.
Comments?
Thorsten
--
Thorsten Kukuk, Project Manager/Release Manager SLES
SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)