From: Enrico Scholz Date: Thu, 20 Nov 2003 18:06:59 +0000 (+0000) Subject: has_chrootsafe(), call_set_ctxlimit(): removed X-Git-Tag: VERSION_0_10~1059 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb2144cff0e2e67d101329f45ecd7e3c2f760991;p=util-vserver.git has_chrootsafe(), call_set_ctxlimit(): removed git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@429 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- 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