Re: [PATCH RFC 22/31] net: Add network namespace clone support.

2007-02-28 Thread Eric W. Biederman
Daniel Lezcano <[EMAIL PROTECTED]> writes: >> + >> +mutex_lock(&net_mutex); >> +err = setup_net(new_net); >> +if (err) >> +goto out_unlock; >> > Should we "net_free" in case of error ? Oops. Yes we should. Thanks. >> +net_lock(); >> +net_list_append(new_net); >>

Re: [PATCH RFC 22/31] net: Add network namespace clone support.

2007-02-28 Thread Daniel Lezcano
Eric W. Biederman wrote: From: Eric W. Biederman <[EMAIL PROTECTED]> - unquoted This patch allows you to create a new network namespace using sys_clone(...). Signed-off-by: Eric W. Biederman <[EMAIL PROTECTED]> --- include/linux/sched.h|1 + kernel/nsproxy.c | 11 +++