summaryrefslogtreecommitdiff
path: root/src/responder/pam
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-02-17 11:50:27 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-02-17 14:27:32 -0500
commit1a63155b0797c2b1963424e5c0f5d3a62f8cc7cc (patch)
tree3e2293986461fd191b07b8e2892ed45914d554de /src/responder/pam
parent3ae9dd80a23168a0451f0d090bd74eaf01fdd951 (diff)
downloadsssd-1a63155b0797c2b1963424e5c0f5d3a62f8cc7cc.tar.gz
sssd-1a63155b0797c2b1963424e5c0f5d3a62f8cc7cc.tar.bz2
sssd-1a63155b0797c2b1963424e5c0f5d3a62f8cc7cc.zip
RESPONDERS: Allow increasing the file-descriptor limit
This patch will increase the file descriptor limit to 8k or the limits.conf maximum, whichever is lesser. https://fedorahosted.org/sssd/ticket/1197
Diffstat (limited to 'src/responder/pam')
-rw-r--r--src/responder/pam/pamsrv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/responder/pam/pamsrv.c b/src/responder/pam/pamsrv.c
index be459b11..2786fe4e 100644
--- a/src/responder/pam/pamsrv.c
+++ b/src/responder/pam/pamsrv.c
@@ -44,6 +44,8 @@
#include "responder/pam/pamsrv.h"
#include "responder/common/negcache.h"
+#define DEFAULT_PAM_FD_LIMIT 8192
+
#define SSS_PAM_SBUS_SERVICE_VERSION 0x0001
#define SSS_PAM_SBUS_SERVICE_NAME "pam"
@@ -183,6 +185,9 @@ static int pam_process_init(TALLOC_CTX *mem_ctx,
goto done;
}
+ /* Set up file descriptor limits */
+ responder_set_fd_limit(DEFAULT_PAM_FD_LIMIT);
+
ret = EOK;
done: