From: Trond Myklebust Subject: Re: [PATCH 3/3] SUNRPC: Use AUTH_NULL for GETPORT/GETADDR requests Date: Fri, 12 Jun 2009 17:08:57 -0400 Message-ID: <1244840937.32257.6.camel@heimdal.trondhjem.org> References: <20090515153111.17053.3822.stgit@ingres.1015granger.net> <20090515153309.17053.44496.stgit@ingres.1015granger.net> Mime-Version: 1.0 Content-Type: text/plain Cc: linux-nfs@vger.kernel.org To: Chuck Lever Return-path: Received: from mx2.netapp.com ([216.240.18.37]:11755 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754660AbZFLVI4 (ORCPT ); Fri, 12 Jun 2009 17:08:56 -0400 In-Reply-To: <20090515153309.17053.44496.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org> Sender: linux-nfs-owner@vger.kernel.org List-ID: On Fri, 2009-05-15 at 11:33 -0400, Chuck Lever wrote: > rpcbind servers do not require RPC authentication, so AUTH_NULL is all > that is needed. This saves a few bytes on the wire, and a bit of > computational expense on both ends. This certainly isn't the case for all portmap implementations. Are you sure this change is safe? > Signed-off-by: Chuck Lever > --- > > net/sunrpc/rpcb_clnt.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c > index beee6da..3083597 100644 > --- a/net/sunrpc/rpcb_clnt.c > +++ b/net/sunrpc/rpcb_clnt.c > @@ -141,7 +141,7 @@ static struct rpc_clnt *rpcb_create_local(struct sockaddr *addr, > .servername = "localhost", > .program = &rpcb_program, > .version = version, > - .authflavor = RPC_AUTH_UNIX, > + .authflavor = RPC_AUTH_NULL, > .flags = RPC_CLNT_CREATE_NOPING, > }; > > @@ -158,7 +158,7 @@ static struct rpc_clnt *rpcb_create(char *hostname, struct sockaddr *srvaddr, > .servername = hostname, > .program = &rpcb_program, > .version = version, > - .authflavor = RPC_AUTH_UNIX, > + .authflavor = RPC_AUTH_NULL, > .flags = (RPC_CLNT_CREATE_NOPING | > RPC_CLNT_CREATE_NONPRIVPORT), > }; > -- Trond Myklebust Linux NFS client maintainer NetApp Trond.Myklebust@netapp.com www.netapp.com