public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/15304] New: nss_hesiod's initgroups_dyn incorrectly adds input group id to list
@ 2013-03-26 9:08 siddhesh at redhat dot com
2013-03-26 9:12 ` [Bug libc/15304] " siddhesh at redhat dot com
2013-03-28 6:17 ` siddhesh at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: siddhesh at redhat dot com @ 2013-03-26 9:08 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15304
Bug #: 15304
Summary: nss_hesiod's initgroups_dyn incorrectly adds input
group id to list
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: siddhesh@redhat.com
ReportedBy: siddhesh@redhat.com
CC: drepper.fsp@gmail.com
Classification: Unclassified
All initgroups_dyn implementations add all groups associated with a user except
the gid passed by the caller to the groups list. Hesiod works differently
however, since it adds a group (including the one passed in the function call)
if it does not already exist. This works fine for the vanilla initgroups
function, but not when nscd calls it, since the latter calls initgroups_dyn
with -1 as the gid.
Reproduce:
1. Set up a record in DNS that looks something like this:
testuser.grplist IN TXT "12345:12346"
2. Set lhs and rhs in /etc/hesiod.conf so that "testuser.grplist""$lhs""$rhs"
resolves to the new record.
3. Add hesiod to the list of sources for group information in
/etc/nsswitch.conf.
4. Start nscd.
5. Use "id" or "groups" to retrieve testuser's supplemental groups list.
Actual results:
The unsigned interpretation of -1 (4294967295) will show up in the user's group
list.
Expected results:
The user's group list will look the same as it would if nscd weren't running.
Will post a patch to fix this.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-28 6:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-26 9:08 [Bug libc/15304] New: nss_hesiod's initgroups_dyn incorrectly adds input group id to list siddhesh at redhat dot com
2013-03-26 9:12 ` [Bug libc/15304] " siddhesh at redhat dot com
2013-03-28 6:17 ` siddhesh at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).