Menu

#163 0.75: pam_limits should set root's priority

feature-request
closed-fixed
modules (176)
5
2001-11-11
2001-10-31
No

The pam_limits module should set root's priority if
it's negative.

Discussion

  • Nalin Dahyabhai

    Nalin Dahyabhai - 2001-10-31
     
  • Andrew G. Morgan

    • labels: --> modules
    • milestone: --> feature-request
    • assigned_to: nobody --> agmorgan
     
  • Andrew G. Morgan

    • summary: pam_limits should set root's priority --> 0.75: pam_limits should set root's priority
    • status: open --> closed-fixed
     
  • Andrew G. Morgan

    Logged In: YES
    user_id=37107

    Fix will appear in 0.76.

    I've added a change along the lines of the one documented
    here.
    Its not at all clear to me that the one provided will work.
    Specifically,
    the process_limit() function includes this code:

    if (limit_item == LIMIT_PRI) {
    /* additional check */
    pl->priority = ((limit_value>0)?limit_value:0);
    } else {

    which appeared to enforce the notion that the limit be non
    -ve. I've
    removed this code as part of this bug report.

    Checking in CHANGELOG;
    /cvsroot/pam/Linux-PAM/CHANGELOG,v <-- CHANGELOG
    new revision: 1.93; previous revision: 1.92
    done
    Checking in doc/modules/pam_limits.sgml;
    /cvsroot/pam/Linux-PAM/doc/modules/pam_limits.sgml,v <--
    pam_limits.sgml
    new revision: 1.5; previous revision: 1.4
    done
    Checking in modules/pam_limits/README;
    /cvsroot/pam/Linux-PAM/modules/pam_limits/README,v <--
    README
    new revision: 1.5; previous revision: 1.4
    done
    Checking in modules/pam_limits/pam_limits.c;
    /cvsroot/pam/Linux-PAM/modules/pam_limits/pam_limits.c,v
    <-- pam_limits.c
    new revision: 1.10; previous revision: 1.9
    done

     

Log in to post a comment.

MongoDB Logo MongoDB