From fb2144cff0e2e67d101329f45ecd7e3c2f760991 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 20 Nov 2003 18:06:59 +0000 Subject: [PATCH] has_chrootsafe(), call_set_ctxlimit(): removed git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@429 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/lib/syscall-legacy.hc | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/util-vserver/lib/syscall-legacy.hc b/util-vserver/lib/syscall-legacy.hc index be8983e..198bf0a 100644 --- a/util-vserver/lib/syscall-legacy.hc +++ b/util-vserver/lib/syscall-legacy.hc @@ -254,31 +254,3 @@ vc_chrootsafe_legacy (const char *dir) errno = EINVAL; return -1; } - -#if 0 -/* - Return != 0 if chrootsafe is available -*/ -int has_chrootsafe() -{ - init(); - return rev_chrootsafe != -1; -} - -int call_set_ctxlimit (int res, long limit) -{ - init(); - if (rev_set_ctxlimit == -1){ - fprintf (stderr,"set_ctxlimit: Unsupported system call, update kernel\n"); - }else if (rev_set_ctxlimit == 0){ - return set_ctxlimit (res,limit); - }else{ - fprintf (stderr,"set_ctxlimit: kernel support version %d, application expects version 0\n" - ,rev_set_ctxlimit); - } - errno = EINVAL; - return -1; -} - - -#endif -- 1.8.1.5