[PATCH] Merge sys_clone() and sys_unshare() nsproxy handling

Cedric Le Goater clg at fr.ibm.com
Wed Feb 28 07:52:13 PST 2007


Badari Pulavarty wrote:
> Hi,
> 
> sys_clone() and sys_unshare() handles copy/clone of nsproxy
> and its associated namespaces differently.
> 
> This patch merges all the handling into common functions
> (as much as possible). 
> 
> Please review. If no objections, I would like to submit for 
> inclusion into -mm.
> 
> Ran standard LTP tests, unshare uts, ipc tests fine.
> 
> Thanks,
> Badari
> 
> Merge sys_clone/sys_unshare nsproxy and namespace copy handling.
> 
> - Create a new nsproxy and its associated namespaces and pass it
> back to caller to attach it to right process.
> 
> - Changed all copy_*_ns() routines to attach the namespace to
> passed in new nsproxy instead of task->nsproxy.
> 
> - Get rid of all individual unshare_*_ns() routines and make
> use of copy_*_ns() instead.

It would be nice if you could in the same move make the get_*_ns()
routines consistent.

thanks,

C.



More information about the Containers mailing list