From 63b76d3169d1ab0b7ee192758afd21102c6e9210 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Fri, 23 Jun 2006 10:10:32 +0000 Subject: Relevant BUGIDs: Purpose of commit: cleanup Commit summary: --------------- Bring implementation in sync with documentation: 2006-06-24 Thorsten Kukuk * modules/pam_limits/pam_limits.c (setup_limits): Don't reset priority for root. --- modules/pam_limits/pam_limits.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'modules/pam_limits') diff --git a/modules/pam_limits/pam_limits.c b/modules/pam_limits/pam_limits.c index 4cda284e..d908e9a8 100644 --- a/modules/pam_limits/pam_limits.c +++ b/modules/pam_limits/pam_limits.c @@ -556,17 +556,6 @@ static int setup_limits(pam_handle_t *pamh, int status; int retval = LIMITED_OK; - if (uid == 0) { - /* do not impose limits (+ve limits anyway) on the superuser */ - if (pl->priority > 0) { - if (ctrl & PAM_DEBUG_ARG) { - pam_syslog(pamh, LOG_DEBUG, - "user '%s' has UID 0 - no limits imposed", uname); - } - pl->priority = 0; - } - } - for (i=0, status=LIMITED_OK; ilimits[i].supported) { /* skip it if its not known to the system */ -- cgit v1.2.3