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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Eric W. Biederman (ebiederm@xxxxxxxxxxxx):
> "Serge E. Hallyn" <serue@xxxxxxxxxx> 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.

Thanks.

-serge
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux