From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11886 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: open issues Date: Thu, 31 Aug 2017 12:04:53 -0400 Message-ID: <20170831160453.GH1627@brightrain.aerifal.cx> References: <20170827043606.GQ15263@port70.net> <20170831093405.GT15263@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1504195612 29205 195.159.176.226 (31 Aug 2017 16:06:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 31 Aug 2017 16:06:52 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-11899-gllmg-musl=m.gmane.org@lists.openwall.com Thu Aug 31 18:06:43 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 1dnRzM-00072O-Vo for gllmg-musl@m.gmane.org; Thu, 31 Aug 2017 18:06:41 +0200 Original-Received: (qmail 13359 invoked by uid 550); 31 Aug 2017 16:05:08 -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 12251 invoked from network); 31 Aug 2017 16:05:06 -0000 Content-Disposition: inline In-Reply-To: <20170831093405.GT15263@port70.net> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:11886 Archived-At: On Thu, Aug 31, 2017 at 11:34:05AM +0200, Szabolcs Nagy wrote: > * Stefan Sedich [2017-08-30 19:53:55 +0000]: > > > feature request: > > > - RES_OPTIONS support for resolv.conf options overriding > > > http://www.openwall.com/lists/musl/2017/04/30/1 > > > related libc-alpha discussion > > > http://sourceware.org/ml/libc-alpha/2017-08/msg01097.html > .... > > > > - RES_OPTIONS support for resolv.conf options overriding > > http://www.openwall.com/lists/musl/2017/04/30/1 > > > > I would love to sneak this one in if possible, has been sitting around for > > a while and something that I want to be able to configure! > > did you see the libc-alpha discussion? > > the current recommended way to override /etc/resolv.conf is using mount > namespace (or chroot), if user namespace is allowed for non-root users > in the kernel then this can be done without root access. Is there a way to do this while still having the process with the mount namespace see its own uid as the real invoking user and not a fake uid=0 user in the user namespace? If not, this seems like a pretty big functionality gap. The mount namespace approach should work decently for running tests even if it requires a namespace with fake uid=0, but it's not very friendly to just allowing normal users to ignore the system resolv.conf nameserver list and choose their own. I'm not especially opposed to RES_OPTIONS but I'd rather have a more complete solution that allows overriding the nameservers too, since the nameservers are the important part and options are not useful for much. Rich