makejail - Automatically create chroot jails for programs

Distribution: Debian 8 (Jessie)
Repository: Debian Main amd64
Package name: makejail
Package version: 0.0.5
Package release: 10
Package architecture: all
Package type: deb
Installed size: 149 B
Download size: 35.96 KB
Official Mirror:
Makejail helps an administrator to create and update a chroot jail using short configuration files. If not enough information is provided in these it will attempt to guess which files are required by the daemon and will install all of them in the jail.



    Binary package: makejail_0.0.5-10_all.deb
    Source package: makejail

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install makejail deb package:
      # sudo apt-get install makejail


    • /usr/sbin/makejail
    • /usr/share/doc/makejail/README.Debian
    • /usr/share/doc/makejail/README.gz
    • /usr/share/doc/makejail/changelog.Debian.gz
    • /usr/share/doc/makejail/copyright
    • /usr/share/doc/makejail/examples/apache-chroot.html
    • /usr/share/doc/makejail/examples/
    • /usr/share/doc/makejail/examples/
    • /usr/share/doc/makejail/examples/
    • /usr/share/doc/makejail/examples/global.OpenBSD
    • /usr/share/doc/makejail/examples/
    • /usr/share/doc/makejail/examples/
    • /usr/share/doc/makejail/examples/
    • /usr/share/doc/makejail/examples/
    • /usr/share/doc/makejail/examples/
    • /usr/share/doc/makejail/examples/
    • /usr/share/doc/makejail/html/index.html
    • /usr/share/lintian/overrides/makejail
    • /usr/share/man/man8/makejail.8.gz


    2012-03-03 - Javier Fernandez-Sanguino Pen~a <> makejail (0.0.5-10) unstable; urgency=low * Reorder the call to shutil to ensure that the setuid bit is copied when making a jail, thanks to Charles Burgoyne for the report and fix. (Closes: 661497) * examples/ Add an example to chroot exim4 (largely untested)

    2010-03-20 - Javier Fernandez-Sanguino Pen~a <> makejail (0.0.5-9) unstable; urgency=low * Fix pathname handling when the directory components include absolute symlink. Thanks to Daiki Ueno for the patch (Closes: #570695).

    2010-02-23 - Javier Fernandez-Sanguino Pen~a <> makejail (0.0.5-8) unstable; urgency=low [ Changes by Florian Grandel < ] * Makejail default configuration now in /etc/makejail/makejail.conf There is no conflict now with the /etc/makejail/ directory and it is possible for the administrator to set defaults (Closes: #495112) * Changed default for straceCommand/straceCommandPid to include child threads (strace -ff) * Changed default for doNotCopy for security reasons (added /proc) * cleanJailFirst default now correctly documented, manual page now indicates * that the default value for cleanJailFirst is 0 and not 1 (Closes: #495118) (closes: #495118) * should now preserve POSIX attributes (closes: #310781), still does not preserve ext2/ext3 attributes however * now copies directory as a result of chdir by introducing additional patterns to be processed in the strace (closes: #392773) * now chowns copied files (closes: #495147) * now correctly handles strace -ff (closes: #495277) * fixes several lintian warnings * updated policy version * debian/rules: now builds the documentation (should not be included in source) [ Changes by Javier Fernandez-Sanguino ] * Use debhelper compatibility version 5 * Check if /sbin/ldconfig.real exists (Ubuntu systems) and set pathToLdConfig to /sbin/ldconfig.real to avoid introducing bash in all jails. (LP: #263614, closes: #495116) * Review documentation to fix a widespread typo in makejail (librairies->libraries) * Remove ISO-8859-1 encoding in examples/ as it prevented it from being loaded in newer python versions due to issues in enconding. * Include the pam.d/common-* files in the example for sshd. * Provides a more descriptive message if the target chroot directory does not exist (Closes: #193087, #570607) * Added Alexandre Ratti's documentation on how to setup a chrooted Apache with makejail, credit him in debian/copyright and distribute the files under the examples/ directory adjusting also the file. (Closes: #171842) * Add the Homepage location to debian/control as a pseudo-header * Highlight in the manpage that the package is heavily patched

    2006-07-16 - Javier Fernandez-Sanguino Pen~a <> makejail (0.0.5-7) unstable; urgency=low * Ldd output has now changed and some libraries might not include a '=>' but, rather, the absolute path. Patch makejail so it handles those lines. This helps it detect that it needs to install /lib/ in the jail (Closes: #358975) * Use shutil.copystat instead of the inline CopyStat function in order to properly preserve setuid bits (Closes: #310781) * Use Debhelper compatibility version 4 * Add /usr/sbin/rndc to the example makejail file for Bind (Closes: #259453) * Unmount /proc if we will attempt to clean the Jail first so that reruning makejail will not fail if /proc is mounted (Closes: #375130)

    2005-09-04 - Javier Fernandez-Sanguino Pen~a <> makejail (0.0.5-6) unstable; urgency=low * Fix typo in manpage (Closes: #326537)

    2004-01-23 - Javier Fernandez-Sanguino Pen~a <> makejail (0.0.5-5) unstable; urgency=low * Proper debian/copyright file. * Moved Build-Depends to Build-Depends-Indep * Fixed description