about summary refs log tree commit diff
path: root/nss
Commit message (Collapse)AuthorAgeFilesLines
...
* Optimize libnss_files initializationUlrich Drepper2011-09-281-35/+18
|
* Correctly reparse group line after enlarging the bufferAndreas Schwab2011-09-271-4/+8
|
* More optimizations of nss_filesUlrich Drepper2011-08-202-7/+5
|
* Minor optimizatin in alias lookup in files NSS moduleUlrich Drepper2011-08-201-3/+3
|
* Avoid executable stack in makedbAndreas Schwab2011-08-171-5/+7
|
* Generalize framework to register monitoring of files in nscdUlrich Drepper2011-07-116-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.
* nss_db: Quash read implicit declaration warningMarek Polacek2011-06-241-0/+1
| | | | | In the function `internal_setent' is used the function read, but the forward declaration is missing. Thusly fixed.
* Fix crash in unsuccessful uses of nss_dbUlrich Drepper2011-06-211-4/+7
|
* Install db-MakefileUlrich Drepper2011-06-151-0/+5
|
* Cleanup of db-XXX.cUlrich Drepper2011-06-151-63/+59
|
* Add initgroups lookups to nss_dbUlrich Drepper2011-06-155-14/+206
|
* Add initgroups lookup support to getentUlrich Drepper2011-06-151-0/+33
|
* Fix handling of initgroups database.Ulrich Drepper2011-06-151-1/+2
|
* Optimize hash table generation in makedbUlrich Drepper2011-06-151-23/+102
|
* Reenable nss_db with a completely new implementationUlrich Drepper2011-06-1521-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.
* Rewrite makedb to avoid using db libraryUlrich Drepper2011-06-152-95/+595
|
* More configurability for secondary group lookupUlrich Drepper2011-05-101-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.
* Report if no record is found by initgroups in nss_files.Ulrich Drepper2011-05-061-1/+3
|
* Add finer grained control for initgroups lookups to NSS.Ulrich Drepper2011-04-291-0/+1
|
* Remove doubled words.Jim Meyering2011-04-221-2/+2
|
* Fix reallocation bug in last nss_files change.Ulrich Drepper2011-04-211-1/+2
|
* Fix little issue with last change.Ulrich Drepper2011-04-191-2/+4
|
* Define initgroups callback for nss_files.Ulrich Drepper2011-04-193-1/+135
|
* Obsolete RPC implementation in libc.Ulrich Drepper2011-04-161-2/+3
|
* Update copyright year.Ulrich Drepper2011-01-171-2/+2
|
* Handle long lines in host lookups in the right place.Ulrich Drepper2011-01-131-6/+55
|
* Add self-contained test for NSS.Ulrich Drepper2010-08-117-9/+268
| | | | | While at it fix interaction between __nss_configure_lookup and nscd. Otherwise the test fails if nscd is runnung.
* Enable IDN support in getent.Ulrich Drepper2010-05-061-1/+11
|
* Update copyright year.Ulrich Drepper2010-03-151-2/+2
|
* Fix a few error cases in *name4_r lookup handling.Ulrich Drepper2009-12-101-0/+5
|
* Fix nss_files if /etc/hosts is missing.Steve Langasek2009-10-291-1/+6
|
* Fix getent networks lookup and resulting incorrect NSS change.Ulrich Drepper2009-07-012-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.
* Fix getnetbyaddr implementation.Ulrich Drepper2009-07-012-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.
* Don't treat bug reporting message as a format string.Andreas Schwab2009-06-161-2/+2
|
* Extend getent to handle the shadow database.Aurelien Jarno2009-06-151-0/+66
| | | | BZ #10207
* * version.h (VERSION): Bump to 2.10.1. cvs/fedora-glibc-20090510T1842 cvs/masterUlrich Drepper2009-05-102-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.
* * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cachedUlrich Drepper2009-04-261-3/+7
| | | | function pointers.
* [BZ #9955]Ulrich Drepper2009-04-236-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.
* * debug/xtrace.sh: Unify translatable messages.Ulrich Drepper2009-02-061-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>
* * nss/getent.c (print_networks): Don't print comma between aliases.Ulrich Drepper2009-01-281-2/+0
|
* [BZ #9705]Ulrich Drepper2009-01-091-3/+17
| | | | | | 2009-01-08 Ulrich Drepper <drepper@redhat.com> [BZ #9705] * locales/el_CY: Cyprus uses the Euro.
* * posix/getconf.c: Update copyright year.Ulrich Drepper2009-01-021-2/+2
| | | | | | | | | | | | | | | | | | * nss/getent.c: Likewise. * iconv/iconvconfig.c: Likewise. * iconv/iconv_prog.c: Likewise. * elf/ldconfig.c: Likewise. * catgets/gencat.c: Likewise. * csu/version.c: Likewise. * elf/ldd.bash.in: Likewise. * elf/sprof.c (print_version): Likewise. * locale/programs/locale.c: Likewise. * locale/programs/localedef.c: Likewise. * nscd/nscd.c (print_version): Likewise. * debug/xtrace.sh: Likewise. * malloc/memusage.sh: Likewise. * malloc/mtrace.pl: Likewise. * debug/catchsegv.sh: Likewise.
* * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP andUlrich Drepper2008-05-141-0/+16
| | | | | | | | | | UDPlite. * nss/getent.c (ahosts_keys_int): Handle all known socket types. * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define. * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
* * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsendUlrich Drepper2008-05-103-9/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prototypes. * include/arpa/nameser_compat.h: Define T_UNSPEC. * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r. (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r. * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle af==AF_UNSPEC. (_nss_nis_gethostbyname4_r): New function. * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent): Change to also handle af==AF_UNSPEC. (get_tablename): New function. Use it to avoid duplication. (_nss_nisplus_gethostbyname4_r): New function. * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is available. * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r. * nss/nss.h: Define struct gaih_addrtuple. * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle af==AF_UNSPEC. (_nss_files_gethostbyname4_r): New function. * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r. * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery calls. * resolv/res_query.c (__libc_res_nquery): Take two additional parameters for second answer buffer. Handle type=T_UNSPEC to mean look up IPv4 and IPv6. Change all callers. * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters for an additional query and answer buffer. Pass to send_vc and send_dg. (send_vc): Send possibly two requests and receive two answers. (send_dg): Likewise. * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and __libc_res_nquery. (_nss_dns_gethostbyname4_r): New function. (gaih_getanswer_slice): Likewise. (gaih_getanswer): Likewise. * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust __libc_res_nquery call. * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise. (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call. * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is available.
* * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.Ulrich Drepper2008-04-091-1/+1
|
* * nis/nis_call.c (nis_server_cache_search): Save errno around statUlrich Drepper2008-03-241-1/+6
| | | | | | | | call. (__nisfind_server): Similar for open readColdStartFile call. Patch partially by Jim Meyering. * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno around internal_setent call.
* * posix/getconf.c: Update copyright year.Ulrich Drepper2008-01-021-2/+2
| | | | | | | | | | | | | | | | | | * nss/getent.c: Likewise. * iconv/iconvconfig.c: Likewise. * iconv/iconv_prog.c: Likewise. * elf/ldconfig.c: Likewise. * catgets/gencat.c: Likewise. * csu/version.c: Likewise. * elf/ldd.bash.in: Likewise. * elf/sprof.c (print_version): Likewise. * locale/programs/locale.c: Likewise. * locale/programs/localedef.c: Likewise. * nscd/nscd.c (print_version): Likewise. * debug/xtrace.sh: Likewise. * malloc/memusage.sh: Likewise. * malloc/mtrace.pl: Likewise. * debug/catchsegv.sh: Likewise.
* * nss/nsswitch.c (__nss_lookup): Actually use alternative name in cvs/fedora-glibc-20071227T0908Ulrich Drepper2007-12-261-2/+2
| | | | second lookup.
* * nscd/Makefile (nscd-modules): Replace gethstbynm2_r withUlrich Drepper2007-10-308-45/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gethstbynm3_r. * nscd/gethstbynm2_r.c: Remove. * nscd/gethstbynm3_r.c: New file. * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of __gethostbyaddr_r. * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define __gethostbyaddr_r compatibility wrapper. * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when determining timeout of entry. (lookup): Take new parameter and pass it to __gethostbyname3_r and __gethostbyaddr2_r. (addhstbyX): Pass reference to variable for TTL to lookup and cache_addhst. * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2, __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2, and __nss_next2. Remove __nss_services_lookup. * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter. Add compat wrapper. * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and __nss_next2. * nss/getXXent_r.c: Likewise. * nss/getnssent_r.c: Likewise. * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function does not exist in module, try the optional second name. (__nss_next2): New function. (__nss_next): Now wrapper around __nss_next2. * nss/nsswitch.h: Adjust __nss_lookup prototype. Declare __nss_next2. Adjust definition of db_lookup_function type. * nss/service-lookup.c: Define NO_COMPAT. * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r. * inet/ether_hton.c: Use __nss_next2 instead of __nss_next. * inet/ether_ntoh.c: Likewise. * sunrpc/netname.c: Likewise. * sunrpc/publickey.c: Likewise. * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup. * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2. * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise. * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise. * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise. * nscd/aicache.c (addhstaiX): Fix default TTL handling. * inet/getnetgrent.c (setup): Encrypt static pointer.
* (REENTRANT_NAME): Mangle start and start_fct pointers.Ulrich Drepper2007-10-151-8/+24
|