This script is for Slackware 12.2 only and may be outdated.

SlackBuilds Repository

12.2 > Network > mod_chroot (0.5)

mod_chroot allows you to run Apache in a chroot jail with no additional files.
This makes running Apache in a chroot environment easy.

The chroot() system call is performed at the end of startup procedure - when
all libraries are loaded and log files open. No need for a special directory
hierarchy (containing /dev, /lib, /etc...), unless an external handler, such
as suEXEC or suPHP, is being used, or system()-like functions are in use.

This package pre-creates /var/chroot/httpd with just enough subdirs to enable
the stock Slackware config to run. Provided /etc/httpd/httpd.conf contains:

ChrootDir /var/chroot/httpd
LoadModule chroot_module lib/httpd/modules/mod_chroot.so

And the following (or similar) commands where run:

mount -o nosuid,nodev --bind /var/run/httpd /var/chroot/httpd/var/run/httpd
mount -o nosuid,nodev --bind /srv /var/chroot/httpd/srv
mount --bind /var/www /var/chroot/httpd/var/www

Above commands maybe added to rc.local.

Maintained by: Menno E. Duursma
Keywords: apache,security
ChangeLog: mod_chroot

Homepage:
http://core.segfault.pl/~hobbit/mod_chroot/

Source Downloads:
mod_chroot-0.5.tar.gz (d72716052faa3bdd3371210f26b13f38)

Download SlackBuild:
mod_chroot.tar.gz
mod_chroot.tar.gz.asc (FAQ)

(the SlackBuild does not include the source)

Individual Files:
README
mod_chroot.SlackBuild
mod_chroot.info
slack-desc

Validated for Slackware 12.2

See our HOWTO for instructions on how to use the contents of this repository.

Access to the repository is available via:
ftp git cgit http rsync

© 2006-2024 SlackBuilds.org Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds