should load kernel rlimits instead of hardcoding internal defaults

Bug #746655 reported by Kees Cook
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pam (Ubuntu)
Fix Released
Medium
Kees Cook

Bug Description

Since the kernel sets a number of dynamic rlimits based on the system properities (e.g. physical memory for nproc), these rlimits should be respected by PAM. Parse /proc/1/limits for the kernel-defined rlimits.

E.g. see bug 391761.

Tags: patch

Related branches

Revision history for this message
Kees Cook (kees) wrote :

Here is a first-pass at the kernel rlimit parser...

Changed in pam (Ubuntu):
assignee: nobody → Kees Cook (kees)
importance: Undecided → Low
status: New → Fix Committed
tags: added: patch
Changed in pam (Ubuntu):
importance: Low → Medium
Revision history for this message
Kees Cook (kees) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

Fixed in oneiric with the merge of pam 1.1.2-3. Changelog entry:

pam (1.1.2-3) unstable; urgency=low

  [ Kees Cook ]
  * 027_pam_limits_better_init_allow_explicit_root: load rlimit defaults
    from the kernel (via /proc/1/limits), instead of continuing to hardcode
    the settings internally. Fall back to internal defaults when the kernel
    rlimits are not found. Closes: #620302. (LP: #746655, #391761)

  * Updated debconf translations:
    - Vietnamese, thanks to Clytie Siddall <email address hidden>
      (closes: #601197)
    - Dutch, thanks to Eric Spreen <email address hidden> (closes: #605592)
    - Danish, thanks to Joe Dalton <email address hidden> (closes: #606739)
    - Catalan, thanks to Innocent De Marchi <email address hidden>
      (closes: #622786)

Changed in pam (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.