public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nscd/16758] New: nscd incorrectly returns failure for innetgr for netgroup entries with wildcards in them
@ 2014-03-26 9:42 siddhesh at redhat dot com
2014-03-27 1:47 ` [Bug nscd/16758] " cvs-commit at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: siddhesh at redhat dot com @ 2014-03-26 9:42 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16758
Bug ID: 16758
Summary: nscd incorrectly returns failure for innetgr for
netgroup entries with wildcards in them
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: nscd
Assignee: siddhesh at redhat dot com
Reporter: siddhesh at redhat dot com
CC: drepper.fsp at gmail dot com
nscd works correctly when the request in innetgr is a wildcard,
i.e. when one or more of host, user or domain parameters is NULL.
However, it does not work when the the triplet in the netgroup
definition has a wildcard. This is easy to reproduce for a triplet
defined as follows:
foonet (,foo,)
Here, an innetgr call that looks like this:
innetgr ("foonet", "foohost", "foo", NULL);
should succeed and so should:
innetgr ("foonet", NULL, "foo", "foodomain");
It does succeed with nscd disabled, but not with nscd enabled. This
fix adds this additional check for all three parts of the triplet so
that it gives the correct result.
Patch coming up
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug nscd/16758] nscd incorrectly returns failure for innetgr for netgroup entries with wildcards in them
2014-03-26 9:42 [Bug nscd/16758] New: nscd incorrectly returns failure for innetgr for netgroup entries with wildcards in them siddhesh at redhat dot com
@ 2014-03-27 1:47 ` cvs-commit at gcc dot gnu.org
2014-03-27 1:48 ` siddhesh at redhat dot com
2014-06-12 19:53 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2014-03-27 1:47 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16758
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via fbd6b5a4052316f7eb03c4617eebfaafc59dcc06 (commit)
from 1b26b855b4e5ca540db47e3c27eaed6b78ca8b87 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fbd6b5a4052316f7eb03c4617eebfaafc59dcc06
commit fbd6b5a4052316f7eb03c4617eebfaafc59dcc06
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Thu Mar 27 07:15:22 2014 +0530
Fix nscd lookup for innetgr when netgroup has wildcards (BZ #16758)
nscd works correctly when the request in innetgr is a wildcard,
i.e. when one or more of host, user or domain parameters is NULL.
However, it does not work when the the triplet in the netgroup
definition has a wildcard. This is easy to reproduce for a triplet
defined as follows:
foonet (,foo,)
Here, an innetgr call that looks like this:
innetgr ("foonet", "foohost", "foo", NULL);
should succeed and so should:
innetgr ("foonet", NULL, "foo", "foodomain");
It does succeed with nscd disabled, but not with nscd enabled. This
fix adds this additional check for all three parts of the triplet so
that it gives the correct result.
[BZ #16758]
* nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
blank values.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
NEWS | 2 +-
nscd/netgroupcache.c | 10 +++++++---
3 files changed, 14 insertions(+), 4 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug nscd/16758] nscd incorrectly returns failure for innetgr for netgroup entries with wildcards in them
2014-03-26 9:42 [Bug nscd/16758] New: nscd incorrectly returns failure for innetgr for netgroup entries with wildcards in them siddhesh at redhat dot com
2014-03-27 1:47 ` [Bug nscd/16758] " cvs-commit at gcc dot gnu.org
@ 2014-03-27 1:48 ` siddhesh at redhat dot com
2014-06-12 19:53 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: siddhesh at redhat dot com @ 2014-03-27 1:48 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16758
Siddhesh Poyarekar <siddhesh at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Siddhesh Poyarekar <siddhesh at redhat dot com> ---
Fixed in master.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug nscd/16758] nscd incorrectly returns failure for innetgr for netgroup entries with wildcards in them
2014-03-26 9:42 [Bug nscd/16758] New: nscd incorrectly returns failure for innetgr for netgroup entries with wildcards in them siddhesh at redhat dot com
2014-03-27 1:47 ` [Bug nscd/16758] " cvs-commit at gcc dot gnu.org
2014-03-27 1:48 ` siddhesh at redhat dot com
@ 2014-06-12 19:53 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-12 19:53 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16758
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] 4+ messages in thread
end of thread, other threads:[~2014-06-12 19:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-26 9:42 [Bug nscd/16758] New: nscd incorrectly returns failure for innetgr for netgroup entries with wildcards in them siddhesh at redhat dot com
2014-03-27 1:47 ` [Bug nscd/16758] " cvs-commit at gcc dot gnu.org
2014-03-27 1:48 ` siddhesh at redhat dot com
2014-06-12 19:53 ` fweimer 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).