All of lore.kernel.org
 help / color / mirror / Atom feed
* Mapping PIDs from parent->child namespaces
@ 2011-01-03 23:02 Mike Heffner
       [not found] ` <4D225579.6030106-ql8fK+M3D0TQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Mike Heffner @ 2011-01-03 23:02 UTC (permalink / raw)
  To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

Hi,

Is it possible for a process running in a parent PID namespace to map 
the PID of a process running in a child's namespace from the 
parent->child's namespace? For example, if I span the process "myproc" 
with CLONE_NEWPID then a call to getpid() inside myproc will return "1" 
whereas in the parent's namespace that process could actually be PID 
"23495". I'd like to be able to know that 23495 maps to 1 in the new NS. 
Obviously, just mapping the first PID is straightforward since I can 
just look at the result of clone(). However, mapping the PIDs of 
processes subsequently forked from "myproc" -- in this example -- I 
haven't been able to figure out.


Thanks,

Mike

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-01-05 13:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-03 23:02 Mapping PIDs from parent->child namespaces Mike Heffner
     [not found] ` <4D225579.6030106-ql8fK+M3D0TQT0dZR+AlfA@public.gmane.org>
2011-01-04 16:04   ` Daniel Lezcano
     [not found]     ` <4D23451B.6060807-GANU6spQydw@public.gmane.org>
2011-01-04 16:44       ` Cedric Le Goater
     [not found]         ` <4D234E77.6000605-GANU6spQydw@public.gmane.org>
2011-01-04 20:17           ` Mike Heffner
     [not found]             ` <4D23806C.5040806-ql8fK+M3D0TQT0dZR+AlfA@public.gmane.org>
2011-01-04 20:49               ` Serge Hallyn
2011-01-05 13:50               ` Cedric Le Goater
     [not found]                 ` <4D24773F.8050800-GANU6spQydw@public.gmane.org>
2011-01-05 13:54                   ` Cedric Le Goater
2011-01-04 22:02           ` Daniel Lezcano
2011-01-04 19:57       ` Mike Heffner
     [not found]         ` <4D237B9C.5060007-ql8fK+M3D0TQT0dZR+AlfA@public.gmane.org>
2011-01-04 22:13           ` Daniel Lezcano
     [not found]             ` <4D239B72.4000103-GANU6spQydw@public.gmane.org>
2011-01-05  4:50               ` Mike Heffner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.