do not use vc_chrootsafe() anymore
[util-vserver.git] / 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{