lkml.org 
[lkml]   [2008]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] User namespaces: set of cleanups (eventually for linux-next?)
Quoting David Howells (dhowells@redhat.com):
>
> Serge E. Hallyn <serue@us.ibm.com> wrote:
>
> > David, since this consumes your patch, I wasn't sure whether it was
> > appropriate to put your signed-off-by on here or not. I decided
> > doing so was the worse of the potential offenses...
>
> The way I think I'd've done it is to include my patch description and
> signed-off-by then list your additional changes (just keep on incrementing the
> point numbers) and your signed-off-by.
>
> > - new_user = alloc_uid(current->nsproxy->user_ns, new->uid);
> > + new_user = alloc_uid(current_user()->user_ns, new->uid);
>
> That should be current_user_ns() rather than current_user()->user_ns. I made
> this change before adding the macro.

Ok, will change.

> > + key_put(new->thread_keyring);
> > + new->thread_keyring = NULL;
>
> Superfluous. copy_creds() does this immediately upon return.

Oops, will drop.

> Also, in copy_creds(), should the session and process keyrings be discarded if
> CLONE_NEWUSER is set? Actually, I think that should be dealt with by a patch
> to deal with namespacing keyrings as the user-default keyrings need to be
> namespaced rather than here.
>
> David

Oh, yeah, that's going to have to be a separate patch I guess...

thanks,
-serge


\
 
 \ /
  Last update: 2008-10-20 20:55    [W:0.041 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site