aboutsummaryrefslogtreecommitdiff
path: root/nss
AgeCommit message (Collapse)AuthorFilesLines
2011-11-11Fix db makefile rule for group.dbAndreas Schwab1-1/+1
2011-11-07Fix buffer allocation in files initgroups handlerAndreas Schwab1-1/+1
2011-11-03Don't fail in makedb if SELinux is disabledAndreas Schwab1-1/+1
2011-10-31Unify getent output for initgroups databaseUlrich Drepper1-0/+6
Requests for other fail if iteration is not supported and no parameters are given. Do this for initgroups as well.
2011-10-08Fix some nit warnings.Roland McGrath1-1/+0
2011-10-07Implement caching of nscdUlrich Drepper5-6/+22
2011-10-06Stop crash in OOM handling in NSSUlrich Drepper1-5/+3
2011-10-06More fallout from OOM in NSSJiri Olsa1-1/+1
2011-10-06Handle OOM in NSSJiri Olsa1-1/+4
2011-09-28Optimize libnss_files initializationUlrich Drepper1-35/+18
2011-09-27Correctly reparse group line after enlarging the bufferAndreas Schwab1-4/+8
2011-08-20More optimizations of nss_filesUlrich Drepper2-7/+5
2011-08-20Minor optimizatin in alias lookup in files NSS moduleUlrich Drepper1-3/+3
2011-08-17Avoid executable stack in makedbAndreas Schwab1-5/+7
2011-07-11Generalize framework to register monitoring of files in nscdUlrich Drepper6-48/+259
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-06-24nss_db: Quash read implicit declaration warningMarek Polacek1-0/+1
In the function `internal_setent' is used the function read, but the forward declaration is missing. Thusly fixed.
2011-06-21Fix crash in unsuccessful uses of nss_dbUlrich Drepper1-4/+7
2011-06-15Install db-MakefileUlrich Drepper1-0/+5
2011-06-15Cleanup of db-XXX.cUlrich Drepper1-63/+59
2011-06-15Add initgroups lookups to nss_dbUlrich Drepper5-14/+206
2011-06-15Add initgroups lookup support to getentUlrich Drepper1-0/+33
2011-06-15Fix handling of initgroups database.Ulrich Drepper1-1/+2
2011-06-15Optimize hash table generation in makedbUlrich Drepper1-23/+102
2011-06-15Reenable nss_db with a completely new implementationUlrich Drepper21-1391/+519
No longer is Berkeley db used. Instead a simple hash function is used. The database files are not updated once they are created and therefore no complicated database is needed.
2011-06-15Rewrite makedb to avoid using db libraryUlrich Drepper2-95/+595
2011-05-10More configurability for secondary group lookupUlrich Drepper1-1/+1
Together with a previous patch which introduced the initgroups entry in nsswitch.conf this patch allows more customization of the lookups for initgroups/getgrouplist. Nothing changes if the groups entry in nsswitch.conf is used. If the initgroups entry is used instead the code now doesn't automatically continue looking for more entries aftedr a successful lookup. Instead the normal rules are followed which do specify that by default no more service is consulted. This can be overwritten with [SUCCESS=continue] appropriately placed in the line.
2011-05-06Report if no record is found by initgroups in nss_files.Ulrich Drepper1-1/+3
2011-04-29Add finer grained control for initgroups lookups to NSS.Ulrich Drepper1-0/+1
2011-04-22Remove doubled words.Jim Meyering1-2/+2
2011-04-21Fix reallocation bug in last nss_files change.Ulrich Drepper1-1/+2
2011-04-19Fix little issue with last change.Ulrich Drepper1-2/+4
2011-04-19Define initgroups callback for nss_files.Ulrich Drepper3-1/+135
2011-04-16Obsolete RPC implementation in libc.Ulrich Drepper1-2/+3
2011-01-17Update copyright year.Ulrich Drepper1-2/+2
2011-01-13Handle long lines in host lookups in the right place.Ulrich Drepper1-6/+55
2010-08-11Add self-contained test for NSS.Ulrich Drepper7-9/+268
While at it fix interaction between __nss_configure_lookup and nscd. Otherwise the test fails if nscd is runnung.
2010-05-06Enable IDN support in getent.Ulrich Drepper1-1/+11
2010-03-15Update copyright year.Ulrich Drepper1-2/+2
2009-12-10Fix a few error cases in *name4_r lookup handling.Ulrich Drepper1-0/+5
2009-10-29Fix nss_files if /etc/hosts is missing.Steve Langasek1-1/+6
2009-07-01Fix getent networks lookup and resulting incorrect NSS change.Ulrich Drepper2-2/+2
I changed the files NSS backend for networks because I thought the getent use of getnetbyaddr is correct. But it isn't. Undo parts of the last change and fix getent.
2009-07-01Fix getnetbyaddr implementation.Ulrich Drepper2-3/+4
There were two problems in the getnetbyaddr implementation. The type argument is pretty much useless since (almost) no input file contains this information and the NSS backends make up the value they fill in for the n_addrtype field. Therefore we now declare that passing AF_UNSPEC is always recognized. Secondly, the files backend didn't compare the network numbers with the correct endianess. Also change getent to take advantage of the type parameter change.
2009-06-16Don't treat bug reporting message as a format string.Andreas Schwab1-2/+2
2009-06-15Extend getent to handle the shadow database.Aurelien Jarno1-0/+66
BZ #10207
2009-05-10* version.h (VERSION): Bump to 2.10.1.cvs/fedora-glibc-20090510T1842cvs/masterUlrich Drepper2-10/+16
* nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any compatibility functions. * nss/getXXent_r.c: Likewise. * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED. * gshadow/getsgnam_r.c: Likewise. * gshadow/Version: Remove duplicate entries. * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries for recent processor. * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info): Likewise.
2009-04-26* nss/nsswitch.c (__nss_lookup_function): En/Decrypt cachedUlrich Drepper1-3/+7
function pointers.
2009-04-23[BZ #9955]Ulrich Drepper6-23/+139
2009-04-23 Ulrich Drepper <drepper@redhat.com> [BZ #9955] * gshadow/Makefile: New file. * gshadow/Versions: New file. * gshadow/fgetsgent.c: New file. * gshadow/fgetsgent_r.c: New file. * gshadow/getsgent.c: New file. * gshadow/getsgent_r.c: New file. * gshadow/getsgnam.c: New file. * gshadow/getsgnam_r.c: New file. * gshadow/gshadow.h: New file. * gshadow/putsgent.c: New file. * gshadow/sgetsgent.c: New file. * gshadow/sgetsgent_r.c: New file. * gshadow/tst-gshadow.c: New file. * include/gshadow.h: New file. * Makeconfig (all-subdirs): Add gshadow. * Makefile (installed-headers): Add gshadow/gshadow.h. * nss/Makefile (databases): Add sgrp. * nss/Versions: Add gshadow functions as private exports. * nss/nsswitch.conf: Add gshadow entry. * nss/sgrp-lookup.c: New file. * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite parse_list to handle STRING_LIST and TRAILING_LIST_PARSER. * nss/nss_files/files-sgrp.c: New file. * sysdeps/generic/paths.h: Add _PATH_GSHADOW. * sysdeps/unix/sysv/linux/paths.h: Likewise.
2009-02-06* debug/xtrace.sh: Unify translatable messages.Ulrich Drepper1-3/+7
* elf/ldd.bash.in: Likewise. * elf/sprof.c: Likewise. * locale/programs/locale.c: Likewise. * malloc/memusage.sh: Likewise. * nss/getent.c: Likewise. 2009-02-06 Joseph Myers <joseph@codesourcery.com> * debug/pcprofiledump.c (print_version, argp_program_version_hook): New function. * elf/ldconfig.c (more_help): New function. (argp): Use it. * elf/sln.c (usage): New function. (main): Support --help and --version. * malloc/memusagestat.c (print_version): New function. (argp_program_version_hook): New variable. * nscd/nscd.c (more_help): New function. (argp): Use it. * posix/getconf.c (main): Send --version output to stdout. Support --help. * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS arguments. All callers changed. (print_version): New function. (parseargs): Support --help and --version. * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers changed. (print_version): New function. (main): Use getopt_long. Support --help and --version. * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and --version. 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2009-01-28* nss/getent.c (print_networks): Don't print comma between aliases.Ulrich Drepper1-2/+0
2009-01-09[BZ #9705]Ulrich Drepper1-3/+17
2009-01-08 Ulrich Drepper <drepper@redhat.com> [BZ #9705] * locales/el_CY: Cyprus uses the Euro.