From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11286 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Sedich Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] Add RES_OPTIONS support for resolv.conf options overriding Date: Tue, 25 Apr 2017 04:30:58 +0000 Message-ID: References: <20170425022122.27281-1-stefan.sedich@gmail.com> <20170425023934.GT17319@brightrain.aerifal.cx> <20170425025043.GF27654@wopr> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1140208462c660054df63148 X-Trace: blaine.gmane.org 1493094682 24477 195.159.176.226 (25 Apr 2017 04:31:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Apr 2017 04:31:22 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-11301-gllmg-musl=m.gmane.org@lists.openwall.com Tue Apr 25 06:31:18 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1d2s8D-0006GZ-Nh for gllmg-musl@m.gmane.org; Tue, 25 Apr 2017 06:31:17 +0200 Original-Received: (qmail 3798 invoked by uid 550); 25 Apr 2017 04:31:21 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 3770 invoked from network); 25 Apr 2017 04:31:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=9dpqd2f5TudQUvTT4KAcPC1L9wZq3jicIaZT31WaFaI=; b=TdpnqoOr+B7VqCu2TNoIHSEbVokup67Zn34fbHhpivMETYu9ptAgQu5+GnWEfS6/8J SCS4tQ4p211EU2am4wMyxPcgNUn22ZY4zMwYLI9o9FzfdLboByg6bVJUPTWZnYdgIm+2 cXVwlLbbYxj8bnjLhEVe3tgFdGigFhLqF9q5HffKQYQAHAcHRGwwsZ867la2ZKBad0m3 L8FBrlR8w80G5AJZjN/N14TAAbuGS7C+1FNf9SuhSb59D2rd8JSbDJE2nlXFHCo6MkI0 KdYabYpwltA2ZuBzyioaDvpQExLqMlyw8h58F6+zRku5F2DPZ8YvFy512RgeJGrbqwHV A8gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=9dpqd2f5TudQUvTT4KAcPC1L9wZq3jicIaZT31WaFaI=; b=EHSElzH+P+H8AJA1ZpfZ8GPBoxcgkxk389/2xvHMTBrImVu2K0Z618GhemISXSQyCN t18rHMLByLnCoJdZ80uMlGfoweNbSDkQdIwUVBiCc89rZ/u765AoLFOCA1fI7jLa+6dS bBQSDVbvyIOK0mx/WyvuflTh/TBHb4U0Djv9lIrXlhdWs+W1zxAmNzEDZQ07ZBJwoIB4 ba+dWENOYLoMPhFLvcrHtQT7n928DnMhI8c1YxFwdYfK2hvmT1B0HTqoaJrlgjkvAkkZ PHj+xxY9mHxz+DdVouIZHyMAjS0MSW5AMsjPpMhUcQRaUig9NWUHa5ntXu/g1Uuln9JZ 31Uw== X-Gm-Message-State: AN3rC/5BLPMBmc/BKSzv8YSMVR13/RVytgbPL03zaZvNbOPZX+sX2uo1 bz9vLmGgy6FS/8e0WP1u86es6hnb6xPQ X-Received: by 10.25.141.134 with SMTP id p128mr9510092lfd.60.1493094669402; Mon, 24 Apr 2017 21:31:09 -0700 (PDT) In-Reply-To: <20170425025043.GF27654@wopr> Xref: news.gmane.org gmane.linux.lib.musl.general:11286 Archived-At: --001a1140208462c660054df63148 Content-Type: text/plain; charset=UTF-8 Rich, I will make the change, but so I understand some more what would be the implications of not ignoring it in this scenario? I understand why it is bad in the case of the load paths for example but just want to understand the issue in this context. - Stefan On Mon, Apr 24, 2017 at 7:50 PM Kurt H Maier wrote: > On Mon, Apr 24, 2017 at 10:39:34PM -0400, Rich Felker wrote: > > > > What I'd really like is a way for users to override nameserver and > > search directives (so pretty much, all of resolv.conf) in a way that > > doesn't need root; this would be really valuable for testing. But > > sadly there's no precedent for an interface to do so. Maybe it's > > something we could work on a unified solution to with other > > implementations (glibc, bsds?). > > > > Rich > > FreeBSD and OpenBSD both currently support RES_OPTIONS (and LOCALDOMAIN > for overriding the search directive) but I don't think they support > overriding the nameserver directive. There's just the HOSTALIASES > variable for pointing to a file full of 'alias hostname' pairs. > > khm > --001a1140208462c660054df63148 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Rich,

I will make the change, but so I unders= tand some more what would be the implications of not ignoring it in this sc= enario? I understand why it is bad in the case of the load paths for exampl= e but just want to understand the issue in this context.



- Stefan

On Mon, Apr 24, 2017 at 7:50 PM Kurt H = Maier <khm@sdf.org> wrote:
On Mon, Apr 24, 2017 at 10:39:34PM -0400, = Rich Felker wrote:
>
> What I'd really like is a way for users to override nameserver and=
> search directives (so pretty much, all of resolv.conf) in a way that > doesn't need root; this would be really valuable for testing. But<= br> > sadly there's no precedent for an interface to do so. Maybe it'= ;s
> something we could work on a unified solution to with other
> implementations (glibc, bsds?).
>
> Rich

FreeBSD and OpenBSD both currently support RES_OPTIONS (and LOCALDOMAIN
for overriding the search directive) but I don't think they support
overriding the nameserver directive.=C2=A0 There's just the HOSTALIASES=
variable for pointing to a file full of 'alias hostname' pairs.

khm
--001a1140208462c660054df63148--