From: Enrico Scholz Date: Mon, 29 Dec 2003 19:02:29 +0000 (+0000) Subject: do not use vc_chrootsafe() anymore X-Git-Tag: VERSION_0_10~1015 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71500ccdf5e649c3ce24b9e9cf7e61fdfd114a69;hp=ef10c2c2f673ed59eb66f782989e4ed586f09c60;p=util-vserver.git do not use vc_chrootsafe() anymore git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@500 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/src/capchroot.c b/util-vserver/src/capchroot.c index 9220f9b..45a6c80 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{