Go to file
DJ Delorie 9b456c5da9 nss: fix nss_database_lookup2's alternate handling [BZ #27416]
__nss_database_lookup2's extra arguments were left unused in the
nsswitch reloading patch set; this broke compat (default config
ignored) and shadow files (secondary name ignored) which relies on
these fallbacks.

This patch adds in the previous behavior by correcting the
initialization of the database list to reflect the fallbacks.  This
means that the nss_database_lookup2 interface no longer needs to be
passed the fallback info, so API and callers were adjusted.

Since all callers needed to be edited anyway, the calls were changed
from __nss_database_lookup2 to the faster __nss_database_get.  This
was an intended optimization which was deferred during the initial
lookup changes to avoid touching so many files.

The test case verifies that compat targets work (passwd) and that the
default configuration works (group).  Tested on x86-64.
2021-03-09 14:34:50 -05:00
argp
assert
benchtests benchtests: Updated json bench-variant attribute 2021-02-10 08:50:26 +05:30
bits
catgets
ChangeLog.old
conform
crypt
csu Reduce the statically linked startup code [BZ #23323] 2021-02-25 12:13:02 +01:00
ctype
debug backtrace: Implement on top of <unwind-link.h> 2021-03-01 15:58:28 +01:00
dirent
dlfcn
elf ld.so: Implement the --list-diagnostics option 2021-03-02 14:39:24 +01:00
gmon
gnulib
grp
gshadow
hesiod
htl pthread: Refactor semaphore code 2021-02-08 14:10:42 -03:00
hurd
iconv
iconvdata
include linux: Consolidate statvfs implementations 2021-02-11 08:00:41 -03:00
inet
intl
io
libio Correct buffer end pointer in IO_wdefault_doallocate (BZ #26874) 2021-03-01 19:34:49 +05:30
locale
localedata
login
mach
malloc Implement <unwind-link.h> for dynamically loading the libgcc_s unwinder 2021-03-01 15:58:01 +01:00
manual tst: Extend cross-test-ssh.sh to specify if target date can be altered 2021-03-08 22:37:16 +01:00
math Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
mathvec
misc Implement <unwind-link.h> for dynamically loading the libgcc_s unwinder 2021-03-01 15:58:01 +01:00
nis
nptl nptl: Fix __pthread_clockjoin_np64 __pthread_timedjoin_np64 hidden proto 2021-03-05 08:36:01 -03:00
nptl_db
nscd nss: fix nss_database_lookup2's alternate handling [BZ #27416] 2021-03-09 14:34:50 -05:00
nss nss: fix nss_database_lookup2's alternate handling [BZ #27416] 2021-03-09 14:34:50 -05:00
po
posix posix: glob, glob64 should not be declared __THROW [BZ #27522] 2021-03-05 14:07:26 +01:00
pwd
resolv
resource setrlimit/getrlimit: Use __nonnull to avoid null pointer 2021-02-10 08:36:17 -03:00
rt
scripts tst: Extend cross-test-ssh.sh to specify if target date can be altered 2021-03-08 22:37:16 +01:00
setjmp
shadow
signal
socket
soft-fp
stdio-common
stdlib
string string: Work around GCC PR 98512 in rawmemchr 2021-02-19 13:29:00 +01:00
sunrpc sunrpc: Fix typo in xdr_string comment 2021-02-08 13:55:03 +01:00
support support: Provide xclock_settime test helper function 2021-03-08 22:41:28 +01:00
sysdeps nss: fix nss_database_lookup2's alternate handling [BZ #27416] 2021-03-09 14:34:50 -05:00
sysvipc
termios
time tst: Add test for settimeofday 2021-03-08 22:41:41 +01:00
timezone
wcsmbs
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
config.h.in x86: Set minimum x86-64 level marker [BZ #27318] 2021-03-06 07:49:30 -08:00
config.make.in
configure configure: Remove obsolete AC_CHECK_TOOL_PREFIX 2021-02-21 18:35:30 -05:00
configure.ac configure: Replace obsolete AC_TRY_LINK with AC_LINK_IFELSE 2021-02-21 18:39:01 -05:00
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL tst: Extend cross-test-ssh.sh to specify if target date can be altered 2021-03-08 22:37:16 +01:00
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig
Makefile
Makefile.help
Makefile.in
Makerules
NEWS NEWS: Add entry for CVE-2021-27645 2021-03-09 14:34:50 -05:00
o-iterator.mk
README
Rules
shlib-versions
test-skeleton.c
version.h

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arc*-*-linux-gnu
	arm-*-linux-gnueabi
	csky-*-linux-gnuabiv2
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv32-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see https://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at https://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see https://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.