do not use vc_chrootsafe() anymore
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 29 Dec 2003 19:02:29 +0000 (19:02 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 29 Dec 2003 19:02:29 +0000 (19:02 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@500 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/capchroot.c

index 9220f9b..45a6c80 100644 (file)
@@ -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{