diff options
Diffstat (limited to 'debian/patches-applied/032_pam_limits_EPERM_NOT_FATAL')
-rw-r--r-- | debian/patches-applied/032_pam_limits_EPERM_NOT_FATAL | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/debian/patches-applied/032_pam_limits_EPERM_NOT_FATAL b/debian/patches-applied/032_pam_limits_EPERM_NOT_FATAL deleted file mode 100644 index d5ce6953..00000000 --- a/debian/patches-applied/032_pam_limits_EPERM_NOT_FATAL +++ /dev/null @@ -1,22 +0,0 @@ -setrlimit will sometimes return EPERM for example if you try to increase the -number of open files too much. This is not something we want to consider -fatal. This also happens if you use non-root and try to decrease a limit. -Running PAM as non-root is not so great. - -Authors: ? - -Upstream status: submitted in <20070830171918.GB30563@dario.dodds.net> - -Index: pam/modules/pam_limits/pam_limits.c -=================================================================== ---- pam.orig/modules/pam_limits/pam_limits.c -+++ pam/modules/pam_limits/pam_limits.c -@@ -1046,6 +1046,8 @@ - if (res != 0) - pam_syslog(pamh, LOG_ERR, "Could not set limit for '%s': %m", - rlimit2str(i)); -+ if (res == -1 && errno == EPERM) -+ continue; - status |= res; - } - |