From mboxrd@z Thu Jan 1 00:00:00 1970 From: ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org (Eric W. Biederman) Subject: Re: [PATCH 4/6] user namespaces: add user_ns to super block Date: Fri, 01 Aug 2008 18:49:34 -0700 Message-ID: References: <20080726002700.GA29686@us.ibm.com> <20080726002754.GD29874@us.ibm.com> <1217285230.25300.19.camel@localhost.localdomain> <20080729180515.GB365@us.ibm.com> <20080802000609.GA10211@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080802000609.GA10211-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> (Serge E. Hallyn's message of "Fri, 1 Aug 2008 19:06:09 -0500") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Serge E. Hallyn" Cc: Linux Containers , "Eric W. Biederman" List-Id: containers.vger.kernel.org "Serge E. Hallyn" writes: > Ok I wasn't thinking right. We still can't get to a user_ns from > an inode *. > > So playing with this a bit tonight, it seems like the best way > to pass the user_namespace up to the fs is just to define new > super_operations which handle the conversions. Something like > the following. I'm pretty certain you want to pass in the entire inode instead of just inode->i_uid. That would allow you to pass one less argument and give the filesystems more information to work with. Eric