Bug 19565 - Consolidate NSS name resolution interfaces
Summary: Consolidate NSS name resolution interfaces
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: nss (show other bugs)
Version: 2.24
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on: 19591
Blocks: 2099 4428 14413
  Show dependency treegraph
 
Reported: 2016-02-04 08:00 UTC by Florian Weimer
Modified: 2017-06-01 10:57 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Weimer 2016-02-04 08:00:02 UTC
We currently have multiple interfaces for performing name resolution, and multiple of them are used in parallel because they have different feature sets.  We should just provide one interface for forward lookups, and one for reverse lookups.

The new interface should provide TTL information for all lookups (including negative results).  It should be extensible (e.g., for use with key material or other security-related data), and have full IPv6 support.

Instead of a retry-with-larger-buffer loop, the new interface should use malloc (or realloc) inside the NSS service module to prepare a sufficiently sized response buffer.