aboutsummaryrefslogtreecommitdiff
path: root/nscd
AgeCommit message (Collapse)AuthorFilesLines
2012-10-02nscd: fix compilation flagsDmitry V. Levin1-34/+7
Commit 61653dfb81b776bb72ce4304175b861d77c357a8 added support for compilers predefining _FORTIFY_SOURCE by adding -U_FORTIFY_SOURCE to CPPFLAGS for these compilers, but that change doesn't work quite well in case of nscd: its Makefile sets _FORTIFY_SOURCE using CFLAGS instead of CPPFLAGS and, thanks to compilation rules defined in Makerules, CPPFLAGS are passed to compiler after CFLAGS, resulting to a build with _FORTIFY_SOURCE turned off. This change implements a more safe method of passing preprocessor and compiler flags so that no nscd modules could be accidentally forgotten.
2012-08-22Fix shadow, gshadow, networks, protocols, rpc, aliases, and nscd routines ↵Roland McGrath9-8/+35
for USE_NSCD case.
2012-08-22Add --disable-build-nscd configure option.Roland McGrath1-1/+1
2012-08-22BZ#13696: Add --disable-nscd configure option.Roland McGrath2-2/+6
2012-07-25Remove pre-2.4.21 Linux kernel support.Joseph Myers1-5/+1
2012-05-15Fix formatting in last change.Roland McGrath1-1/+2
2012-05-15Avoid race in nscdAndreas Jaeger3-18/+39
2012-05-15 Jeff Law <law@redhat.com> Andreas Jaeger <aj@suse.de> [BZ #13594] * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split out from... * nscd/nscd_helper.c (__nscd_get_map_ref): ... here. * nscd/nscd-client.h: Add __nscd_acquire_maplock. * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to code changing __hst_map_handle.map.
2012-05-10Hurd: #include <kernel-features.h>Thomas Schwinge2-8/+6
2012-05-09Cleanup nscd.cAndreas Jaeger1-7/+7
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 Jaeger1-4/+3
* nscd/nscd.c (run_mode): Use enum. (main): Cleanup coding style issue.
2012-05-09Add --foreground option for nscdAndreas Jaeger1-16/+43
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 Pluzhnikov1-5/+0
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. Lu3-3/+3
2012-03-07Remove distribute variable from MakefilesUlrich Drepper1-5/+1
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert39-94/+55
2012-01-20Do not cache negative results in nscd if these are transientUlrich Drepper6-18/+24
2012-01-08Optimize xmalloc, xcalloc, xrealloc, and xstrdupUlrich Drepper2-10/+8
Add alloc_size attribute and apply consistently the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
2012-01-01Update copyright yearUlrich Drepper1-2/+2
2011-12-02Avoid warning in aicache.cUlrich Drepper1-2/+5
2011-11-03Don't start AVC thread until credentials are installedAndreas Schwab1-4/+4
2011-11-01Properly set extra-objs in nscd makefileAndreas Schwab1-1/+1
2011-11-01Use kernel headers for netlink definitionsUlrich Drepper1-1/+2
2011-10-31Cache network interface informationUlrich Drepper4-7/+162
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 Drepper1-2/+2
2011-10-08Fix some nit warnings.Roland McGrath1-0/+2
2011-10-07Implement caching of nscdUlrich Drepper11-18/+1070
2011-10-07Don't unnecesarily use inotify in nscdUlrich Drepper1-1/+1
2011-10-06Avoid warning when reload of group entry failsUlrich Drepper1-0/+2
2011-08-14Add missing initialization in service cache in nscdUlrich Drepper1-1/+1
2011-07-19Avoid warning in nscd config file parsing codeMarek Polacek1-17/+15
2011-07-19Avoid possible crashes in anormal nscd exitsUlrich Drepper1-1/+1
2011-07-11Generalize framework to register monitoring of files in nscdUlrich Drepper4-104/+144
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 Drepper1-1/+1
2011-07-01nscd cleanupsUlrich Drepper5-12/+21
Cleanup and optimize last patch. Add timeout fixes also to the services cache.
2011-07-01Handle nscd negtimeout==0Thorsten Kukuk5-14/+36
2011-06-29Avoid write to invalid file descriptor in nscdUlrich Drepper2-4/+6
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 Drepper1-1/+1
This fixes BZ #12350 also for nscd.
2011-06-10Quash some new warnings from GCC 4.6.Roland McGrath1-4/+0
2011-05-31Don't free non-malloced memory and fix memory leakglibc-2.14.9000Ulrich Drepper1-4/+12
2011-05-22Add a few more alloca size checksUlrich Drepper1-6/+53
2011-05-13Add support for generated PIE link rulesAndreas Schwab1-7/+3
2011-04-22Remove doubled words.Jim Meyering1-1/+1
2011-04-17Fix a comment.Justin P. Mattock1-1/+1
2011-02-05Schedule nscd cache pruning more accurately fromr re-added values.Ulrich Drepper10-99/+152
2011-01-17Update copyright year.Ulrich Drepper1-2/+2
2011-01-15Signal temporary host lookup errors in nscd as such to the requester.Ulrich Drepper1-4/+23
2010-04-09Fix crash on reloading of gai data in nscd.Ulrich Drepper1-4/+6
2010-04-08Print reload count in nscd statistics.Ulrich Drepper1-3/+6
2010-03-15Update copyright year.Ulrich Drepper1-4/+4
2009-11-22Try harder to re-exec nscd in paranoia mode.Ulrich Drepper1-4/+3