mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Add finer grained control for initgroups lookups to NSS.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2011-04-29 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
|
* grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
|
||||||
|
to groups setting in database lookup.
|
||||||
|
* nss/nsswitch.conf: Add initgroups entry.
|
||||||
|
|
||||||
2011-04-22 Ulrich Drepper <drepper@gmail.com>
|
2011-04-22 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
[BZ #12685]
|
[BZ #12685]
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/* Copyright (C) 1989,91,93,1996-2006,2008,2010 Free Software Foundation, Inc.
|
/* Copyright (C) 1989,1991,1993,1996-2006,2008,2010,2011
|
||||||
|
Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -85,7 +86,7 @@ internal_getgrouplist (const char *user, gid_t group, long int *size,
|
|||||||
nip = __nss_group_database;
|
nip = __nss_group_database;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
no_more = __nss_database_lookup ("group", NULL,
|
no_more = __nss_database_lookup ("initgroups", "group",
|
||||||
"compat [NOTFOUND=return] files", &nip);
|
"compat [NOTFOUND=return] files", &nip);
|
||||||
|
|
||||||
while (! no_more)
|
while (! no_more)
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
passwd: db files
|
passwd: db files
|
||||||
group: db files
|
group: db files
|
||||||
|
initgroups: db files
|
||||||
shadow: db files
|
shadow: db files
|
||||||
gshadow: files
|
gshadow: files
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user