whitelist cleanups
[util-vserver.git] / src / vsh.c
index b80b8d8..8ea3645 100644 (file)
--- a/src/vsh.c
+++ b/src/vsh.c
@@ -48,6 +48,7 @@
 
 #undef CONFIG_VSERVER_LEGACY
 
+#if 0
 /* Base for all vserver roots for chroot */
 #define VSERVER_ROOT_BASE       "/vservers"
 
@@ -208,13 +209,6 @@ static int sandbox_processes(xid_t ctx, char *context)
            exit(1);
          }
 
-       /* check whether the slice has been taken off of the whitelist */
-       if (slr.vs_whitelisted==0)
-         {
-           fprintf(stderr, "*** %s: %s has not been allocated resources on this node ***\n", hostname, context);
-           exit(0);
-         }
-
        /* check whether the slice has been suspended */
        if (slr.vs_cpu==0)
          {
@@ -224,7 +218,7 @@ static int sandbox_processes(xid_t ctx, char *context)
 
        (void) (sandbox_chroot(ctx));
 
-        if ((ctx_is_new = pl_chcontext(ctx, 0, ~vc_get_insecurebcaps(),&slr)) < 0)
+        if ((ctx_is_new = pl_chcontext(ctx, ~vc_get_insecurebcaps(),&slr)) < 0)
           {
             PERROR("pl_chcontext(%u)", ctx);
             exit(1);
@@ -479,3 +473,10 @@ int main(int argc, char **argv)
 
     return 0; /* shutup compiler */
 }
+#else
+int main(int argc, char *argv[])
+{
+       
+       return 0;
+}
+#endif