OpenVZ Forum


Home » Mailing lists » Devel » [RFC][PATCH 5/6] Define helper functions to unshare pid namespace
Re: [RFC][PATCH 5/6] Define helper functions to unshare pid namespace [message #17690 is a reply to message #17656] Sun, 11 March 2007 11:47 Go to previous messageGo to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
sukadev@us.ibm.com writes:

> From: Sukadev Bhattiprolu <sukadev@us.ibm.com>
> Subject: [RFC][PATCH 5/6] Define helper functions to unshare pid namespace
>
> Define clone_pid_ns() and unshare_pid_ns() functions that will be
> used in the next patch to unshare pid namespace.
>
> Changelog: 
> 	- Rewrite of orignal code in -lxc from Cedric Le Goater to enforce
> 	  setsid() requirement on unshare().

Why do we need a setsid() before we unshare?
I know it is almost always the correct thing to do but what requires
the setsid?

Doing the setsid before we switch pid namespaces appears the wrong
order to me.

I am not convinced that unshare can be done safely for a pid
namespace.  Changing the meaning or definition of pid on a running
process is questionable.

Eric
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Pid namespace patchsets review
Next Topic: [RFC][PATCH 4/6] Initialize struct pid_nr for swapper
Goto Forum:
  


Current Time: Sat Oct 11 18:04:22 GMT 2025

Total time taken to generate the page: 0.12432 seconds