All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH user-cr] restart: unshare mounts ns when unsharing pidns (for --pidns)
@ 2010-03-24 16:02 Serge E. Hallyn
       [not found] ` <20100324160251.GA18717-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Serge E. Hallyn @ 2010-03-24 16:02 UTC (permalink / raw)
  To: Oren Laadan, Sukadev Bhattiprolu; +Cc: Linux Containers

NOTE - this is against Suka's latest user-cr patchset.  Without
this patch, the cr_tests/simple testcase ends up remounting
/proc at restart without having unshared mounts.  Therefore,
after running the testcase no tasks show up in /proc.

With this patch on top of Suka's user-cr patchset, all cr_tests
pass.

Signed-off-by: Serge Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
 restart.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/restart.c b/restart.c
index 484668a..677033d 100644
--- a/restart.c
+++ b/restart.c
@@ -554,7 +554,7 @@ int app_restart(struct app_restart_args *args)
 		ret = ckpt_coordinator_pidns(&ctx);
 	} else if (ctx.args->pidns) {
 		ckpt_dbg("new pidns with init\n");
-		ctx.tasks_arr[0].flags |= TASK_NEWPID;
+		ctx.tasks_arr[0].flags |= TASK_NEWPID | TASK_NEWNS;
 		if (global_send_sigint == -1)
 			global_send_sigint = SIGKILL;
 		ret = ckpt_coordinator(&ctx);
-- 
1.7.0

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

end of thread, other threads:[~2010-03-30  7:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-24 16:02 [PATCH user-cr] restart: unshare mounts ns when unsharing pidns (for --pidns) Serge E. Hallyn
     [not found] ` <20100324160251.GA18717-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-03-30  7:07   ` Oren Laadan

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.