lkml.org 
[lkml]   [2007]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH -mm 8/8] user ns: implement user ns unshare
From
Date
On Thu, 04 Jan 2007 19:07:00 GMT, Frederik Deweerdt said:
> On Thu, Jan 04, 2007 at 12:13:10PM -0600, Serge E. Hallyn wrote:
> > From: Serge E. Hallyn <serue@us.ibm.com>
> > Subject: [PATCH -mm 8/8] user ns: implement user ns unshare
> >
> > Implement CLONE_NEWUSER flag useable at clone/unshare.
> >
> > Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
> > ---
>
> > int copy_user_ns(int flags, struct task_struct *tsk)
> > {
> > - struct user_namespace *old_ns = tsk->nsproxy->user_ns;
> > + struct user_namespace *new_ns, *old_ns = tsk->nsproxy->user_ns;
> > int err = 0;
> ^^^^^^^^^^^^
> The "= 0" is superfluous here.

Umm? bss gets cleared automagically, but when did we start auto-zeroing
the stack?
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2007-01-04 23:27    [W:0.060 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site