From: Enrico Scholz Date: Fri, 28 Nov 2003 23:08:43 +0000 (+0000) Subject: use chroot() instead of vc_chrootsafe() X-Git-Tag: version_0_26_90~27 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93c3c59dd2edb082c5aca2d419aae5c618d1b8c5;p=util-vserver.git use chroot() instead of vc_chrootsafe() git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@449 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/src/capchroot.c b/util-vserver/src/capchroot.c index e3bdfa6..16ece83 100644 --- a/util-vserver/src/capchroot.c +++ b/util-vserver/src/capchroot.c @@ -73,7 +73,7 @@ int main (int argc, char *argv[]) // and also a security flaw. The shared objects in the vserver // may be tweaked to get control of the root server ... getpwnam ("root"); - if (vc_chrootsafe (argv[dir]) == -1){ + if (chroot(argv[dir]) == -1){ fprintf (stderr,"Can't chroot to directory %s (%s)\n",argv[dir] ,strerror(errno)); }else{