[Lxc-users] mapping host PID <-> container PID

Greg Kurz gkurz at fr.ibm.com
Fri May 6 14:03:37 UTC 2011


On Tue, 2011-05-03 at 11:38 -0500, Serge Hallyn wrote:
> Quoting Daniel Lezcano (daniel.lezcano at free.fr):
> > Yes. And I think the positive side effect is we can determine if the
> > pid belongs to the same pid namespace than the current one when the
> > container_init is 1, no ?
> 
> Yup.  (Presumably if one happens to access a /proc for a non-descendent
> pid-namespace, we'll print 0 for both the vpid and the container_init pid)
> 
> Sounds great, thanks guys.
> 
> -serge

Serge, Daniel,

I'm crafting a 2 patch serie for these. Will send on containers@ first
before proposing to lkml. Sounds ok for you ?

Cheers.

-- 
Gregory Kurz                                     gkurz at fr.ibm.com
Software Engineer @ IBM/Meiosys                  http://www.ibm.com
Tel +33 (0)534 638 479                           Fax +33 (0)561 400 420

"Anarchy is about taking complete responsibility for yourself."
        Alan Moore.





More information about the lxc-users mailing list