Movatterモバイル変換
[0]ホーム
This is the mail archive of thelibc-alpha@sourceware.orgmailing list for theglibc project.
Re: [PATCH] resolv/resolv.h: allow alternative resolv.conf files
- From: Zack Weinberg <zackw at panix dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: Renzo Davoli <renzo at cs dot unibo dot it>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 17 Aug 2017 09:14:05 -0400
- Subject: Re: [PATCH] resolv/resolv.h: allow alternative resolv.conf files
- Authentication-results: sourceware.org; auth=none
- References: <20170817115013.sepjn4aqfi3dlwje@cs.unibo.it> <4c0746d6-8952-ccf5-4184-87cc9be17ddc@redhat.com>
On Thu, Aug 17, 2017 at 8:41 AM, Florian Weimer <fweimer@redhat.com> wrote:> On 08/17/2017 01:50 PM, Renzo Davoli wrote:>> In network namespaces (like vdenshttps://github.com/rd235/vdens) it is sometimes necessary to>> define per-namespace resolver configurations.>>>> The simple patch here attached permits the definition of an environment variabile to define the>> path of the file to use instead of /etc/resolv.conf.>> _PATH_RESCONF really has to be a string literal, and you can't use a GNU> C extension in such a way in an installed header file.>> The environment variable would have to be ignored in AT_SECURE mode, so> you have to use __libc_secure_getenv or put it into unsecvars.h.>> I'm still not convinced that this is the right thing to do. Can you> share more about your use case? I would expect that containers already> provide sufficient flexibility to adjust what is in /etc/resolv.conf.'ip netns exec NAMESPACE PROGRAM...' overlay-mounts/etc/netns/NAMESPACE over /etc, I thought that was the OfficialConvention for this sort of thing.zw
[8]ページ先頭