This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] resolv: Forward legacy name resolution function calls to NSS
- From: Florian Weimer <fweimer at redhat dot com>
- To: Carlos O'Donell <carlos at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 4 Jul 2017 17:30:44 +0200
- Subject: Re: [PATCH] resolv: Forward legacy name resolution function calls to NSS
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=fweimer at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 3AAFB8047F
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3AAFB8047F
- References: <68f44499-0245-33ba-0c47-5a42e211791d@redhat.com> <ba782c25-df55-014e-bed0-f50d292a5e61@redhat.com>
On 07/04/2017 05:17 PM, Carlos O'Donell wrote:
> On 07/04/2017 11:05 AM, Florian Weimer wrote:
>> The attached patch replaces the compat name lookup functions with calls
>> to the matching NSS functions. I think this is the right thing to do
>> for now. If this turns out to break NSS modules which assume that
>> calling res_gethostbyname does not call into NSS in turn, we could
>> probably add a more elaborate compat implementation based on nss_dns and
>> nss_files, without actually duplicating their code.
>>
>> Comments?
>
> What is the purpose of the change?
The idea is not to ship unmaintained DNS packet parsing code.
(The patch as posted lacks removal of the declarations from the
include/resolv.h header.)
Thanks,
Florian