Ulrich Drepper
a316c1f682
Also update new programs
2012-01-01 07:16:32 -05:00
Ulrich Drepper
81fb02b046
Update copyright year
2012-01-01 05:50:05 -05:00
Ulrich Drepper
312be3f9f5
Clean up internal fopen uses
...
No need to ever not use c and e.
2011-11-15 04:24:42 -05:00
Andreas Schwab
98591e5820
Fix db makefile rule for group.db
2011-11-11 14:44:21 +01:00
Andreas Schwab
ae1bc2fa1c
Fix buffer allocation in files initgroups handler
2011-11-07 11:49:51 +01:00
Andreas Schwab
3d7ba52b68
Don't fail in makedb if SELinux is disabled
2011-11-03 14:41:10 +01:00
Ulrich Drepper
f4ec483382
Unify getent output for initgroups database
...
Requests for other fail if iteration is not supported and no parameters
are given. Do this for initgroups as well.
2011-10-31 16:48:45 -04:00
Roland McGrath
c658d255e9
Fix some nit warnings.
2011-10-08 15:25:08 -07:00
Ulrich Drepper
684ae51599
Implement caching of nscd
2011-10-07 10:06:31 -04:00
Ulrich Drepper
054c0457fd
Stop crash in OOM handling in NSS
2011-10-06 03:18:20 -04:00
Jiri Olsa
64031225b2
More fallout from OOM in NSS
2011-10-06 03:14:21 -04:00
Jiri Olsa
0490345c9f
Handle OOM in NSS
2011-10-06 03:04:10 -04:00
Ulrich Drepper
6857791843
Optimize libnss_files initialization
2011-09-28 10:01:13 -04:00
Andreas Schwab
32c76b63be
Correctly reparse group line after enlarging the buffer
2011-09-27 09:55:28 +02:00
Ulrich Drepper
775a77e7e4
More optimizations of nss_files
2011-08-20 15:55:44 -04:00
Ulrich Drepper
89f447edba
Minor optimizatin in alias lookup in files NSS module
2011-08-20 15:25:16 -04:00
Andreas Schwab
8de79a248c
Avoid executable stack in makedb
2011-08-17 10:32:59 -04:00
Ulrich Drepper
319b9ad4bc
Generalize framework to register monitoring of files in nscd
...
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-11 14:50:24 -04:00
Marek Polacek
07f494a027
nss_db: Quash read implicit declaration warning
...
In the function `internal_setent' is used the function read, but the forward
declaration is missing. Thusly fixed.
2011-06-24 02:57:27 -04:00
Ulrich Drepper
51f9aa6a1e
Fix crash in unsuccessful uses of nss_db
2011-06-21 17:09:44 -04:00
Ulrich Drepper
77fb911743
Install db-Makefile
2011-06-15 21:26:56 -04:00
Ulrich Drepper
40c1b22cd7
Cleanup of db-XXX.c
2011-06-15 21:06:19 -04:00
Ulrich Drepper
9f2da732e7
Add initgroups lookups to nss_db
2011-06-15 21:06:19 -04:00
Ulrich Drepper
82e9a1f7df
Add initgroups lookup support to getent
2011-06-15 21:06:19 -04:00
Ulrich Drepper
c41af17eed
Fix handling of initgroups database.
2011-06-15 21:06:19 -04:00
Ulrich Drepper
a9e836b040
Optimize hash table generation in makedb
2011-06-15 21:06:19 -04:00
Ulrich Drepper
2666d441c2
Reenable nss_db with a completely new implementation
...
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-15 21:06:18 -04:00
Ulrich Drepper
9ee76b5ae8
Rewrite makedb to avoid using db library
2011-06-15 21:06:18 -04:00
Ulrich Drepper
7b3b0b2a63
More configurability for secondary group lookup
...
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-10 00:36:29 -04:00
Ulrich Drepper
acd41f47ea
Report if no record is found by initgroups in nss_files.
2011-05-06 12:54:12 -04:00
Ulrich Drepper
125ee683b3
Add finer grained control for initgroups lookups to NSS.
2011-04-29 11:16:30 -04:00
Jim Meyering
ded5b9b7c7
Remove doubled words.
2011-04-22 21:34:32 -04:00
Ulrich Drepper
e84142d2a9
Fix reallocation bug in last nss_files change.
2011-04-21 12:07:52 -04:00
Ulrich Drepper
00401ad5b0
Fix little issue with last change.
2011-04-19 17:16:11 -04:00
Ulrich Drepper
ab8eed78a6
Define initgroups callback for nss_files.
2011-04-19 13:43:03 -04:00
Ulrich Drepper
7b57bfe598
Obsolete RPC implementation in libc.
2011-04-16 21:59:36 -04:00
Ulrich Drepper
c0dafcf176
Update copyright year.
2011-01-17 15:08:10 -05:00
Ulrich Drepper
451f001b50
Handle long lines in host lookups in the right place.
2011-01-13 11:28:17 -05:00
Ulrich Drepper
c3e2f19bb9
Add self-contained test for NSS.
...
While at it fix interaction between __nss_configure_lookup and nscd.
Otherwise the test fails if nscd is runnung.
2010-08-11 07:25:02 -07:00
Ulrich Drepper
a160f8d808
Enable IDN support in getent.
2010-05-06 22:23:13 -07:00
Ulrich Drepper
561470e061
Update copyright year.
2010-03-15 11:50:59 -07:00
Ulrich Drepper
a682a1bf55
Fix a few error cases in *name4_r lookup handling.
2009-12-10 15:44:26 -08:00
Steve Langasek
5c53736b52
Fix nss_files if /etc/hosts is missing.
2009-10-29 22:04:58 -07:00
Ulrich Drepper
5cd1f906c3
Fix getent networks lookup and resulting incorrect NSS change.
...
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-01 03:33:26 -07:00
Ulrich Drepper
29ba9812bb
Fix getnetbyaddr implementation.
...
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-07-01 02:42:59 -07:00
Andreas Schwab
f60ddf9bf7
Don't treat bug reporting message as a format string.
2009-06-16 20:34:55 -07:00
Aurelien Jarno
c518f9a4b4
Extend getent to handle the shadow database.
...
BZ #10207
2009-06-15 17:49:35 -07:00
Ulrich Drepper
deb84c43b1
* version.h (VERSION): Bump to 2.10.1.
...
* 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-05-10 18:38:52 +00:00
Ulrich Drepper
4ec77f72fe
* nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
...
function pointers.
2009-04-26 16:45:03 +00:00
Ulrich Drepper
829fea4617
[BZ #9955 ]
...
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-04-23 18:29:30 +00:00