setting up a chroot jail

Stefan O'Rear stefanor at cox.net
Wed Jun 13 18:07:14 EDT 2007


On Wed, Jun 13, 2007 at 08:52:15AM +0200, Sascha Böhme wrote:
> Hello,
> 
> although my question may be out of topic, I kindly ask for your help.
> 
> I am working on the Google summer of code project to enhance the
> HackageDB website, especially by a tool to automatically generate
> Haddock documentation. For this to work, it is necessary to set up a
> chroot jail, in which packages are unpacked, configured and Haddock
> documentation is build. Some packages also need to be build, which could
> include running untrustable code.
> 
> Up to now, I considered several ideas to set up a chroot jail, but they
> all do not fully satisfy my needs or I could not test them on my machine.
> 
> Here are my proposals for setting up a chroot environment:
>  
>   1) use a hand-written script
>  
>   2) use makejail, jail, jailkit (or a similar tool)
>  
>   3) use debootstrap
>  
>   4) use dpkg to install necessary debian packages
> 
> My distribution is gentoo, which is why I did not test 3). However, I

I definitely recall hearing debootstrap runs on Solaris.  Gentoo, being
still a Linux/glibc system, is thus almost certainly supported.

Stefan


More information about the cabal-devel mailing list