Comment 1 for bug 1691847

Revision history for this message
Michael Aguilar (mjaguil) wrote :

This is the patch that I came up with to fix pam_limits.c

The repair was to add 2 lines to top of the parse_uid_range function:

if (range[0]== '*' )
    return LIMIT_RANGE_NONE;

and to fix the Use/Case for limits set for the root user in parse_config_file:

if ( uid==0) { //don't process root limits unless specified in the config file
                                                                break; // fall out of switch/case because we are root