[CRIU] [PATCH cr 12/12] restore: mount proc for a new pid namespace

Andrey Vagin avagin at openvz.org
Thu May 31 08:58:32 EDT 2012


Create a tmp directory and mount proc from a target pid ns.
This proc will show pid-s from the target pid ns.

crtools uses map_files for restoring sharing mappings.

the tmp directory is removed after restore.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-restore.c |   46 +++++++++++++++++++++++++++++++++++++---------
 1 files changed, 37 insertions(+), 9 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-restore-mount-proc-for-a-new-pid-namespace.patch
Type: text/x-patch
Size: 2558 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120531/d8203204/0012-restore-mount-proc-for-a-new-pid-namespace-0001.bin


More information about the CRIU mailing list