Should chdir after chroot
authorSteve Muir <smuir@cs.princeton.edu>
Fri, 7 Oct 2005 18:39:24 +0000 (18:39 +0000)
committerSteve Muir <smuir@cs.princeton.edu>
Fri, 7 Oct 2005 18:39:24 +0000 (18:39 +0000)
python/vserver.py

index 7d1364f..325e2e2 100644 (file)
@@ -111,7 +111,8 @@ class VServer:
 
     def __do_chroot(self):
 
-        return os.chroot(self.dir)
+        os.chroot(self.dir)
+        os.chdir("/")
 
     def set_disklimit(self, block_limit):