use chroot() instead of vc_chrootsafe()
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 28 Nov 2003 23:08:43 +0000 (23:08 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 28 Nov 2003 23:08:43 +0000 (23:08 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@449 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/capchroot.c

index e3bdfa6..16ece83 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{