summaryrefslogtreecommitdiff
path: root/nscd
AgeCommit message (Collapse)Author
2012-05-10Hurd: #include <kernel-features.h>Thomas Schwinge
2012-05-09Cleanup nscd.cAndreas Jaeger
2012-05-09 Andreas Jaeger <aj@suse.de> * nscd/nscd.c (run_modes): Make named enum, reorder so that default is first entry. (run_mode): Set type. (main): Remove informal message about syslog. (options): Fix typo.
2012-05-09Cleanup last patch for nscd/nscd.cAndreas Jaeger
* nscd/nscd.c (run_mode): Use enum. (main): Cleanup coding style issue.
2012-05-09Add --foreground option for nscdAndreas Jaeger
For a better integration of nscd with systemd, we should run nscd not as daemon but in the foreground. A new --foreground option should be added. 2012-05-09 Alexandre Oliva <aoliva@redhat.com> Andreas Jaeger <aj@suse.de> * nscd/nscd.c (go_background): Replaced with... (run_mode): ... this. (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add. (options): Add -F --foreground. (main): Implement it. (parse_opt): Parse it.
2012-03-232012-03-23 Daniel Jacobowitz <dmj@google.com>Paul Pluzhnikov
Paul Pluzhnikov <ppluzhnikov@google.com> [BZ #6528] * grp/Makefile (otherlibs): Don't set it. * inet/Makefile (otherlibs): Likewise. * login/Makefile (otherlibs): Likewise. * nscd/Makefile (otherlibs): Likewise. * posix/Makefile (otherlibs): Likewise. * pwd/Makefile (otherlibs): Likewise. * rt/Makefile (otherlibs): Likewise. * sunrpc/Makefile (otherlibs): Likewise. * nss/Makefile (otherlibs): Likewise. Add libnss_files to routines and static-only-routines. ($(objpfx)getent): Remove rule. * resolv/Makefile: Add libnss_dns and libresolv to routines and static-only-routines.
2012-03-20Move stdio-common/_itoa.h to sysdeps/genericH.J. Lu
2012-03-07Remove distribute variable from MakefilesUlrich Drepper
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert
2012-01-20Do not cache negative results in nscd if these are transientUlrich Drepper
2012-01-08Optimize xmalloc, xcalloc, xrealloc, and xstrdupUlrich Drepper
Add alloc_size attribute and apply consistently the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
2012-01-01Update copyright yearUlrich Drepper
2011-12-02Avoid warning in aicache.cUlrich Drepper
2011-11-03Don't start AVC thread until credentials are installedAndreas Schwab
2011-11-01Properly set extra-objs in nscd makefileAndreas Schwab
2011-11-01Use kernel headers for netlink definitionsUlrich Drepper
2011-10-31Cache network interface informationUlrich Drepper
Whenever getaddrinfo needed network interface information it used the netlink interface to read the information every single time. The problem is that this information can change at any time. The patch implements monitoring of the network interfaces through nscd. If no change is detected the previously read information can be reused (which is the norm). This timestamp information is also made available to other processes using the shared memory segment between nscd and those processes.
2011-10-17Fix nesting of #ifdefs in netgroupcache.cUlrich Drepper
2011-10-08Fix some nit warnings.Roland McGrath
2011-10-07Implement caching of nscdUlrich Drepper
2011-10-07Don't unnecesarily use inotify in nscdUlrich Drepper
2011-10-06Avoid warning when reload of group entry failsUlrich Drepper
2011-08-14Add missing initialization in service cache in nscdUlrich Drepper
2011-07-19Avoid warning in nscd config file parsing codeMarek Polacek
2011-07-19Avoid possible crashes in anormal nscd exitsUlrich Drepper
2011-07-11Generalize framework to register monitoring of files in nscdUlrich Drepper
nscd can clear caches when certain files change. The list of files was hardcoded so far and worked for nss_files and nss_dns and those modules which need no monitoring. nss_db, for instance, has its own set of files to monitor. Now the NSS modules themselves can request that certain files are monitored.
2011-07-05Avoid warning.Ulrich Drepper
2011-07-01nscd cleanupsUlrich Drepper
Cleanup and optimize last patch. Add timeout fixes also to the services cache.
2011-07-01Handle nscd negtimeout==0Thorsten Kukuk
2011-06-29Avoid write to invalid file descriptor in nscdUlrich Drepper
When readding entries to the group and services cache and the lookup is unsuccesful, we tried to write the notfound record. Just don't do it in this case.
2011-06-27Fix handling of RES_USE_INET6 big in nscdUlrich Drepper
This fixes BZ #12350 also for nscd.
2011-06-10Quash some new warnings from GCC 4.6.Roland McGrath
2011-05-31Don't free non-malloced memory and fix memory leakUlrich Drepper
2011-05-22Add a few more alloca size checksUlrich Drepper
2011-05-13Add support for generated PIE link rulesAndreas Schwab
2011-04-22Remove doubled words.Jim Meyering
2011-04-17Fix a comment.Justin P. Mattock
2011-02-05Schedule nscd cache pruning more accurately fromr re-added values.Ulrich Drepper
2011-01-17Update copyright year.Ulrich Drepper
2011-01-15Signal temporary host lookup errors in nscd as such to the requester.Ulrich Drepper
2010-04-09Fix crash on reloading of gai data in nscd.Ulrich Drepper
2010-04-08Print reload count in nscd statistics.Ulrich Drepper
2010-03-15Update copyright year.Ulrich Drepper
2009-11-22Try harder to re-exec nscd in paranoia mode.Ulrich Drepper
2009-10-29Fix a few asserts and IO calls in nscd.Anders Johansson
The nscd/*cache.c files contain assert()s, writeall() and sendfileall() calls that invalidly use together &dataset->resp and total where either dataset or dataset->head.recsize should be used instead one of the components. In the writeall() and sendfileall() cases, it is unlikely to matter in practice, but the assertions can fail sometimes without a proper reason.
2009-10-29Print timestamp in nscd debug messages.Ulrich Drepper
2009-07-17Revert "Fix lock handling in memory hander of nscd."Ulrich Drepper
This reverts commit 137028b4d7e50f71906c1656c27079eac5a1d085. Conflicts: ChangeLog
2009-07-16Fix lock handling in memory hander of nscd.Petr Baudis
The commit 20e498bd removes the pthread_mutex_rdlock() calls, but not the corresponding pthread_mutex_unlock() calls. Also, the database lock is never unlocked in one branch of the mempool_alloc() if. I think unreproducible random assert(dh->usable) crashes in prune_cache() were caused by this. But an easy way to make nscd threads hang with the broken locking was.
2009-07-16Use correct release semantic in list update.Andreas Schwab
nscd uses lockfree lists and we need to ensure the correct release semantics is used when adding to the list.
2009-06-16Consolidate PIE linking Makefile rules.H.J. Lu
2009-05-18Fix forced loop termination in nscd database lookup.Jakub Jelinek
There are two issues with the forced loop exit in the nscd lookup: 1. the estimate of the entry size isn't pessimistic enough for all databases, resulting potentially is too early exits 2. the combination of 64-bit process and 32-bit nscd would lead to rejecting valid records in the database.