public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nis/10085] nss_compat cannot handle split groups in NIS for initgroups()
[not found] <bug-10085-131@http.sourceware.org/bugzilla/>
@ 2010-11-22 16:18 ` drepper.fsp at gmail dot com
2014-07-01 7:06 ` fweimer at redhat dot com
1 sibling, 0 replies; 8+ messages in thread
From: drepper.fsp at gmail dot com @ 2010-11-22 16:18 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=10085
Ulrich Drepper <drepper.fsp at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
CC| |drepper.fsp at gmail dot
| |com
Resolution| |FIXED
--- Comment #7 from Ulrich Drepper <drepper.fsp at gmail dot com> 2010-11-22 16:17:55 UTC ---
I added a slightly modified version of the patch.
--
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] 8+ messages in thread
* [Bug nis/10085] nss_compat cannot handle split groups in NIS for initgroups()
[not found] <bug-10085-131@http.sourceware.org/bugzilla/>
2010-11-22 16:18 ` [Bug nis/10085] nss_compat cannot handle split groups in NIS for initgroups() drepper.fsp at gmail dot com
@ 2014-07-01 7:06 ` fweimer at redhat dot com
1 sibling, 0 replies; 8+ messages in thread
From: fweimer at redhat dot com @ 2014-07-01 7:06 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=10085
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug nis/10085] nss_compat cannot handle split groups in NIS for initgroups()
2009-04-19 21:33 [Bug nis/10085] New: " pasky at suse dot cz
` (4 preceding siblings ...)
2010-05-31 20:53 ` pasky at suse dot cz
@ 2010-05-31 21:02 ` pasky at suse dot cz
5 siblings, 0 replies; 8+ messages in thread
From: pasky at suse dot cz @ 2010-05-31 21:02 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From pasky at suse dot cz 2010-05-31 21:02 -------
Created an attachment (id=4824)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4824&action=view)
proposed patch
This is a simple patch that makes sure skip_initgroups_dyn is set only in case
initgroups is not available; it also attempts to handle the unavailability of
other NSS interfaces better.
I think it would be better to simply always require setgrent() to be available
when initgroups() isn't, since the getgrent_next is never going to work
properly without it anyway. Also, in case of the multi-entry fallback, we do
not make sure getgrent is available - I'm not sure how to handle this properly,
but it seems to me that the best solution would be again to require the NIS NSS
module to always provide all the important interfaces. Is there a reason why
the current code attempts to handle NIS NSS that does not provide some of the
interfaces?
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10085
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug nis/10085] nss_compat cannot handle split groups in NIS for initgroups()
2009-04-19 21:33 [Bug nis/10085] New: " pasky at suse dot cz
` (3 preceding siblings ...)
2009-06-21 3:43 ` drepper at redhat dot com
@ 2010-05-31 20:53 ` pasky at suse dot cz
2010-05-31 21:02 ` pasky at suse dot cz
5 siblings, 0 replies; 8+ messages in thread
From: pasky at suse dot cz @ 2010-05-31 20:53 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From pasky at suse dot cz 2010-05-31 20:53 -------
Unfortunately, currently compat initgroups() is completely broken; the code will
always set skip_initgroups_dyn to true, so initgroups() will never be actually
called, but due to the nature of the code, setgrent() won't be called either -
thus, subsequent invocations of initgroups() will not return the NIS group list
anymore.
I will attach a patch shortly.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://sourceware.org/bugzilla/show_bug.cgi?id=10085
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug nis/10085] nss_compat cannot handle split groups in NIS for initgroups()
2009-04-19 21:33 [Bug nis/10085] New: " pasky at suse dot cz
` (2 preceding siblings ...)
2009-04-27 13:34 ` pasky at suse dot cz
@ 2009-06-21 3:43 ` drepper at redhat dot com
2010-05-31 20:53 ` pasky at suse dot cz
2010-05-31 21:02 ` pasky at suse dot cz
5 siblings, 0 replies; 8+ messages in thread
From: drepper at redhat dot com @ 2009-06-21 3:43 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2009-06-21 03:43 -------
The patch is really no good idea. Introducing a boolean for that isn't
necessary. We can recognize the situation and automatically switch to the slow
mode. This is made more acceptable by the additional optimization I
implemented to not perform any additional tests if there is no blacklist.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=10085
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug nis/10085] nss_compat cannot handle split groups in NIS for initgroups()
2009-04-19 21:33 [Bug nis/10085] New: " pasky at suse dot cz
2009-04-19 21:53 ` [Bug nis/10085] " pasky at suse dot cz
2009-04-20 3:14 ` drepper at redhat dot com
@ 2009-04-27 13:34 ` pasky at suse dot cz
2009-06-21 3:43 ` drepper at redhat dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: pasky at suse dot cz @ 2009-04-27 13:34 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From pasky at suse dot cz 2009-04-27 13:34 -------
I have:
nistest2:x:1236:nistesta,nistestb
nistest2b:x:1236:nistestc
Then:
pixie:/var/yp # id nistesta
uid=1235(nistesta) gid=1234(nistest) groups=1234(nistest)
pixie:/var/yp # id nistestb
uid=1236(nistestb) gid=1234(nistest) groups=1234(nistest)
pixie:/var/yp # id nistestc
uid=1237(nistestc) gid=1234(nistest) groups=1234(nistest),1236(nistest2b)
So this does trigger for me. :( And I really can't see how this could work with
the code... Do you have
group: compat
in /etc/nsswitch.conf? (It works fine with 'files nis').
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
http://sourceware.org/bugzilla/show_bug.cgi?id=10085
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug nis/10085] nss_compat cannot handle split groups in NIS for initgroups()
2009-04-19 21:33 [Bug nis/10085] New: " pasky at suse dot cz
2009-04-19 21:53 ` [Bug nis/10085] " pasky at suse dot cz
@ 2009-04-20 3:14 ` drepper at redhat dot com
2009-04-27 13:34 ` pasky at suse dot cz
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: drepper at redhat dot com @ 2009-04-20 3:14 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2009-04-20 03:13 -------
You have to describe the problem, or more correctly how to reproduce it. I added
testgr1:x:2000:foo
testgr2:x:2000:bar
to the NIS database and getgrouplist() for both foo and bar includes 2000.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=10085
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug nis/10085] nss_compat cannot handle split groups in NIS for initgroups()
2009-04-19 21:33 [Bug nis/10085] New: " pasky at suse dot cz
@ 2009-04-19 21:53 ` pasky at suse dot cz
2009-04-20 3:14 ` drepper at redhat dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: pasky at suse dot cz @ 2009-04-19 21:53 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From pasky at suse dot cz 2009-04-19 21:53 -------
Created an attachment (id=3894)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=3894&action=view)
Proposed patch
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10085
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-07-01 7:06 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-10085-131@http.sourceware.org/bugzilla/>
2010-11-22 16:18 ` [Bug nis/10085] nss_compat cannot handle split groups in NIS for initgroups() drepper.fsp at gmail dot com
2014-07-01 7:06 ` fweimer at redhat dot com
2009-04-19 21:33 [Bug nis/10085] New: " pasky at suse dot cz
2009-04-19 21:53 ` [Bug nis/10085] " pasky at suse dot cz
2009-04-20 3:14 ` drepper at redhat dot com
2009-04-27 13:34 ` pasky at suse dot cz
2009-06-21 3:43 ` drepper at redhat dot com
2010-05-31 20:53 ` pasky at suse dot cz
2010-05-31 21:02 ` pasky at suse dot cz
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).