OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] Merge sys_clone() and sys_unshare() nsproxy handling
Re: [PATCH] Merge sys_clone() and sys_unshare() nsproxy handling [message #17535 is a reply to message #17528] Wed, 28 February 2007 15:52 Go to previous message
Cedric Le Goater is currently offline  Cedric Le Goater
Messages: 443
Registered: February 2006
Senior Member
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.
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Previous Topic: [PATCH 2/2] src/lib/config.c: Fix "cast discards qualifiers from pointer target type" warn
Next Topic: [PATCH] attach_pid() with struct pid parameter
Goto Forum:
  


Current Time: Sat Sep 20 15:53:08 GMT 2025

Total time taken to generate the page: 0.05776 seconds