[CRIU] [PATCH v3 0/6] Restore of "/proc/self/ns/net" fixes
Kirill Tkhai
ktkhai at virtuozzo.com
Sat Apr 1 04:37:11 PDT 2017
Hi,
here is the third version of fixes of restore opened "/proc/pid/ns/net" files.
Patches 1/6 and 2/6 are new. They allow to add CLONE_VM flag to clone()
in create_user_ns_hierarhy_fn() to keep in consistent state open files
and modifications of memory made by helper with parent task.
v3: Execute create_user_ns_hierarhy_fn() in CLONE_VM environment
v2: Rebased on fresh criu-dev. Added comment.
---
Kirill Tkhai (6):
ns: Alloc child stack dynamically in create_user_ns_hierarhy_fn()
ns: Use CLONE_VM in create_user_ns_hierarhy_fn()
ns: Pack functionality of storing ns fd to store_self_ns()
user_ns: Keep root_user_ns ns fd in fdstore
ns: Fix wrong opened net ns file
zdtm: Add proc-self01 test
criu/include/namespaces.h | 1 +
criu/namespaces.c | 80 ++++++++++++++++++++++++++++------------
test/zdtm/static/Makefile | 2 +
test/zdtm/static/proc-self.c | 4 ++
test/zdtm/static/proc-self01.c | 1 +
5 files changed, 63 insertions(+), 25 deletions(-)
create mode 120000 test/zdtm/static/proc-self01.c
--
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
More information about the CRIU
mailing list