This is not an option used by the utils, but the semantics are for filesystem namespaces.
[util-vserver.git] / src / vcontext.c
index 7f1a809..a42a82e 100644 (file)
@@ -254,7 +254,7 @@ doit(struct Arguments const *args, int argc, char *argv[])
     doSyncStage0(p, args->do_disconnect);  
     
     if (args->do_create) {
-      xid = vc_ctx_create(args->xid);
+      xid = vc_ctx_create(args->xid, NULL);
       if (xid==VC_NOCTX) {
        switch (errno) {
          case EEXIST   :
@@ -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);
       }
     }