From: Trond Myklebust Subject: Re: Caching semi-digested credentials in struct cred Date: Thu, 25 Oct 2007 11:59:46 -0400 Message-ID: <1193327986.7705.35.camel@heimdal.trondhjem.org> References: <1193267398.7459.17.camel@heimdal.trondhjem.org> <1193254764.7515.27.camel@heimdal.trondhjem.org> <1193248356.7515.7.camel@heimdal.trondhjem.org> <1193237038.7508.4.camel@heimdal.trondhjem.org> <1192634425.7573.5.camel@heimdal.trondhjem.org> <7004.1192630004@redhat.com> <1248.1193234419@redhat.com> <2219.1193245809@redhat.com> <3818.1193251318@redhat.com> <4350.1193264520@redhat.com> <20344.1193327158@redhat.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: viro@ftp.linux.org.uk, hch@infradead.org, kwc@citi.umich.edu, jlayton@redhat.com, nickpiggin@yahoo.com.au, linux-fsdevel@vger.kernel.org To: David Howells Return-path: Received: from mx2.netapp.com ([216.240.18.37]:52134 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750716AbXJYP76 (ORCPT ); Thu, 25 Oct 2007 11:59:58 -0400 In-Reply-To: <20344.1193327158@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, 2007-10-25 at 16:45 +0100, David Howells wrote: > Trond Myklebust wrote: > > > If you'd rather, I can just drop the credentials into the NFS VFS methods > > > and leave it for you to make work. > > > > The latter sounds good for the moment. There are several people who are > > working on the rpc auth code, and thus have an interest here, so it will > > take some time to work out a consensus for what needs to be done. > > The problem with that is that there are bits in the bottom of the sunrpc stuff > that assume they can use current->fs[ug]id (rpcauth_lookupcred() for example), > which is the reason for passing this pointer all the way down:-/ I don't think anybody has problems with the concept of replacing current-> with cred-> in rpcauth_lookupcred(). That reflects the (desirable) change to the way the VFS communicates authorisation information to the lower level code. What we don't want at this time is for any changes that go beyond that minimal approach. It will take time to digest the consequences of the existence of a generic credential, and it is not clear to us at this time that changes to the rpc_cred caching mechanism (as opposed to just the lookup key) is the right thing to do. Trond