[PATCH 4/6] user namespaces: add user_ns to super block

Serge E. Hallyn serue at us.ibm.com
Sat Aug 2 17:37:13 PDT 2008

Quoting Eric W. Biederman (ebiederm at xmission.com):
> "Serge E. Hallyn" <serue at us.ibm.com> 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

Oh yes of course, the fs will want the whole inode.  Will change that.

And I suppose in that case I may as well have just one function
to convert both uid and gid.



More information about the Containers mailing list