[CRIU] Re: [PATCH cr 00/13] care about pid namespaces (v3)

Pavel Emelyanov xemul at parallels.com
Tue Jun 19 14:08:05 EDT 2012


On 06/19/2012 03:53 PM, Andrey Vagin wrote:
> Prepare to dump LXC containers. All processes of such CT live in
> a separate pid namespace.
> I suppose that we will start to dump from "init", which has pid = 1.
> 
> When we are dumping a process we actually have two pids.
> real_pid - a pid of a process in crtools's pid ns.
> pid - a pid in CT's pid namespace. This pid will be restored
> 
> 

OK, I take this. Some things to fix incrementally:

1. s/parasite_dump_tid_addr/parasite_dump_tid_info/
2. write a comment near struct pid that the pid is used
   all over in the images and the real_pid is only used
   to hook tasks with ptrace
3. add "pid" to the --namespaces cmdline option arguments
   to explicitly allow dumping and restoring pid namespaces

Thanks,
Pavel


More information about the CRIU mailing list