From 93c3c59dd2edb082c5aca2d419aae5c618d1b8c5 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Fri, 28 Nov 2003 23:08:43 +0000 Subject: [PATCH] use chroot() instead of vc_chrootsafe() 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util-vserver/src/capchroot.c b/util-vserver/src/capchroot.c index e3bdfa6..16ece83 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