summaryrefslogtreecommitdiff
path: root/src/responder/nss/nsssrv.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2011-12-29 02:17:15 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-03-19 09:45:25 -0400
commiteb2e21b764d03544d8161e9956d7f70b07b75f77 (patch)
tree46b8808250eca267edee3de248d4d1c811edbf9b /src/responder/nss/nsssrv.c
parent5f90993426fa2bdc3b3d994c9e85e0805bb92bbc (diff)
downloadsssd-eb2e21b764d03544d8161e9956d7f70b07b75f77.tar.gz
sssd-eb2e21b764d03544d8161e9956d7f70b07b75f77.tar.bz2
sssd-eb2e21b764d03544d8161e9956d7f70b07b75f77.zip
nsssrv: shared memory cache server initialization
Diffstat (limited to 'src/responder/nss/nsssrv.c')
-rw-r--r--src/responder/nss/nsssrv.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/responder/nss/nsssrv.c b/src/responder/nss/nsssrv.c
index bff8e3cd..5ba91f3c 100644
--- a/src/responder/nss/nsssrv.c
+++ b/src/responder/nss/nsssrv.c
@@ -33,6 +33,7 @@
#include "popt.h"
#include "util/util.h"
#include "responder/nss/nsssrv.h"
+#include "responder/nss/nsssrv_mmap_cache.h"
#include "responder/common/negcache.h"
#include "db/sysdb.h"
#include "confdb/confdb.h"
@@ -309,6 +310,15 @@ int nss_process_init(TALLOC_CTX *mem_ctx,
return EIO;
}
+ /* create mmap caches */
+ /* TODO: read cache sizes from configuration */
+ ret = sss_mmap_cache_init(nctx, "passwd", SSS_MC_PASSWD,
+ 50000,
+ &nctx->pwd_mc_ctx);
+ if (ret) {
+ DEBUG(SSSDBG_CRIT_FAILURE, ("mmap cache is DISABLED"));
+ }
+
/* Set up file descriptor limits */
ret = confdb_get_int(nctx->rctx->cdb,
CONFDB_NSS_CONF_ENTRY,