From 71500ccdf5e649c3ce24b9e9cf7e61fdfd114a69 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Mon, 29 Dec 2003 19:02:29 +0000 Subject: [PATCH] do not use vc_chrootsafe() anymore git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@500 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/src/capchroot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{ -- 1.8.1.5