X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=src%2Fplanetlab.c;h=92042fb0b91c88185755c10738375f3d873c3a4a;hb=994f1ce788c942848aa66de783adb0ae736f154f;hp=447c858f14249345da2ce242ab982879a82f712b;hpb=3b1cb457f4e28baac062f0fe6a87ff06ed4c02e0;p=util-vserver-pl.git diff --git a/src/planetlab.c b/src/planetlab.c index 447c858..92042fb 100644 --- a/src/planetlab.c +++ b/src/planetlab.c @@ -99,7 +99,7 @@ process: if (unshare_flags != 0) { unshare(unshare_flags); - unshare_flags |= vc_space_mask(); + unshare_flags |= vc_get_space_mask(); vc_set_namespace(ctx, unshare_flags); } @@ -196,7 +196,7 @@ pl_chcontext(xid_t ctx, uint64_t bcaps, const struct sliver_resources *slr) /* Unshare the net namespace if the slice if requested in the local slice configuration */ unshare_flags = get_space_flag(ctx); if (unshare_flags != 0) { - unshare|=vc_space_flags(); + unshare_flags |=vc_get_space_mask(); vc_enter_namespace(ctx, unshare_flags); }