From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: linux-nfs-owner@vger.kernel.org Received: from fieldses.org ([174.143.236.118]:59595 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932381Ab2KNVyg (ORCPT ); Wed, 14 Nov 2012 16:54:36 -0500 Date: Wed, 14 Nov 2012 16:54:26 -0500 From: "J. Bruce Fields" To: "Myklebust, Trond" Cc: Stanislav Kinsbursky , Christoph Hellwig , "linux-nfs@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devel@openvz.org" , "Eric W. Biederman" Subject: Re: [PATCH v3] SUNRPC: set desired file system root before connecting local transports Message-ID: <20121114215426.GC539@fieldses.org> References: <20121106124035.GA20522@infradead.org> <20121106130705.GC6718@fieldses.org> <20121106131018.GA12211@infradead.org> <20121106133605.GD6718@fieldses.org> <20121107183355.GA7421@fieldses.org> <50A0B562.2090807@parallels.com> <20121114210112.GA539@fieldses.org> <4FA345DA4F4AE44899BD2B03EEEC2FA9092E0A40@SACEXCMBX04-PRD.hq.netapp.com> <20121114214236.GB539@fieldses.org> <4FA345DA4F4AE44899BD2B03EEEC2FA9092E0AE9@SACEXCMBX04-PRD.hq.netapp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <4FA345DA4F4AE44899BD2B03EEEC2FA9092E0AE9@SACEXCMBX04-PRD.hq.netapp.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: On Wed, Nov 14, 2012 at 09:51:33PM +0000, Myklebust, Trond wrote: > On Wed, 2012-11-14 at 16:42 -0500, J. Bruce Fields wrote: > > Simo's patches use them for upcalls to svcgssd. Those will always be > > done from server threads. > > Any reason why you can't set that up when you start nfsd? Oh, right, I was thinking of the upcalls themselves--right, the connect we should be able to do on server start, I agree. > > > > If not, then let's just move > > > the AF_LOCAL connection back into the process context and out of rpciod. > > > > Remind me how this helps? > > rpciod shares the 'init' process net namespace and chroot properties. > If, however you call bind() from the (containerised) process that was > used to start nfsd, then you will be using filesystem root (and net > namespace) of that container. Got it. --b. > > > --b. > > > > > > > > That implies that the process needs to be privileged, but it needs > > > privileges in order to start RPC daemons anyway. > > -- > Trond Myklebust > Linux NFS client maintainer > > NetApp > Trond.Myklebust@netapp.com > www.netapp.com