Quoting Sukadev Bhattiprolu (sukadev@xxxxxxxxxxxxxxxxxx): > Serge E. Hallyn [serue@xxxxxxxxxx] wrote: > | Quoting Oren Laadan (orenl@xxxxxxxxxxxxxxx): > | > In general, can a task figure out it's depth in the pid-ns hierarchy ? > | > | In user-space? No. > > Not from any existing user interface. But hypothetically or in the > long-term can/should sys_checkpoint() not be able to figure out if > it has to C/R say a bash shell that has nested pid namespaces ? > > I am guessing sys_checkpoint() can know if its crossing a pid-ns > boundary by comparing or computing the max nesting level while > walking a process tree. i.e if task_pid(task)->pid_ns->level is > not the same for all process in the tree, then we have nested > namespaces. How to checkpoint/restart such a tree is of course a > bigger challenge. > > But if sys_checkpoint() can find the max nesting level ? If that > info is saved in checkpoint image, clone_with_pids() could > use that info - no ? If a container at pidns level 2, with 1 more pidns underneath it, is checkpointed, then the checkpoint image should only reflect the base and child pidns. The two ancestor pidns levels should not be there. -serge _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers