Re: [RFC][PATCH] sunrpc: fix oops in rpc_create() when the mount namespace is unshared

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Serge E. Hallyn <serue@...>
Cc: Eric W. Biederman <ebiederm@...>, Cedric Le Goater <clg@...>, Andrew Morton <akpm@...>, Trond Myklebust <trond.myklebust@...>, Linux Kernel Mailing List <linux-kernel@...>, Linux Containers <containers@...>, <linux-nfs@...>
Date: Tuesday, September 9, 2008 - 1:07 pm

On Sep 9, 2008, at Sep 9, 2008, 11:29 AM, Serge E. Hallyn wrote:

If the upper layers are responsible for providing the utsname, you  
will need to fix up lockd and the NFS server's callback client too, at  
least.


It appears to be used only for RPC's AUTH_SYS credentials.  The  
nodename is used to identify the caller's host.  See RFC 1831,  
Appendix A:

   http://rfclibrary.hosting.com/rfc/rfc1831/rfc1831-16.asp

I'm not terribly familiar with uts namespaces, though.  Can someone  
explain why we need to distinguish between these for AUTH_SYS if the  
caller is on a remote system?


I don't like the idea of an oops in here.  Instead, (for now) it  
should warn and fail to create the client, IMO.

-- 
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC][PATCH] sunrpc: fix oops in rpc_create() when the m..., Eric W. Biederman, (Tue Sep 9, 11:09 am)
Re: [RFC][PATCH] sunrpc: fix oops in rpc_create() when the m..., Chuck Lever, (Tue Sep 9, 1:07 pm)
Re: [RFC][PATCH] sunrpc: fix oops in rpc_create() when the m..., Eric W. Biederman, (Wed Sep 10, 4:02 pm)
Re: [RFC][PATCH] sunrpc: fix oops in rpc_create() when the m..., Eric W. Biederman, (Thu Sep 11, 6:27 am)
Re: [RFC][PATCH] sunrpc: fix oops in rpc_create() when the m..., Eric W. Biederman, (Mon Sep 8, 12:09 pm)