lkml.org 
[lkml]   [2012]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [rfc] fcntl: Add F_GETOWNER_UIDS option
On Tue, Mar 27, 2012 at 05:25:34PM +0200, Oleg Nesterov wrote:
> user_ns_map_uid() should translate uid_t from one namespace to another,
> in this case the namespace is the same.
>
> user_ns_map_uid(cred->user_ns, cred) must be the identical mapping,
> no matter how we change the implementation.
>
> What I think you need is
> user_ns_map_uid(current_user_ns(), filp->f_owner.cred), the only
> problem is that f_owner.cred doesn't exist.
>

Hmm, I was confused by likely() in user_ns_map_uid. But indeed, I think
you're so right. Is there some reason why we can't carry f_owner.cred
pointer?

> > Or I miss something
> > in general?
>
> Or me. Add Serge, may be I missed something.
>
> Oleg.
>

Cyrill


\
 
 \ /
  Last update: 2012-03-27 19:01    [W:0.061 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site