X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvcontext.c;h=a42a82e5b0a42f27a721eb2f55f6281a1c64932c;hb=e187a9fcea8b058175231782da65f09275221a31;hp=0f2f95baa8ff57dae61a3093220d37d25473f4da;hpb=c9cd9fb53dc2b759f35a0bca5175e0718b8edfee;p=util-vserver.git diff --git a/src/vcontext.c b/src/vcontext.c index 0f2f95b..a42a82e 100644 --- a/src/vcontext.c +++ b/src/vcontext.c @@ -274,8 +274,8 @@ doit(struct Arguments const *args, int argc, char *argv[]) if (args->do_chroot) { Echroot("."); if (args->set_namespace) { - if (args->do_migrateself) Evc_set_namespace(xid, 0); - else if (args->do_migrate) Evc_enter_namespace(xid, 0); + if (args->do_migrateself) Evc_set_namespace(xid, CLONE_NEWNS|CLONE_FS); + else if (args->do_migrate) Evc_enter_namespace(xid, CLONE_NEWNS|CLONE_FS); } }