Linked by Thom Holwerda on Wed 25th Apr 2007 10:15 UTC, submitted by FreeRhino
Privacy, Security, Encryption "Jailing is a mechanism to virtually change a system's root directory. By employing this method, administrators can isolate services so that they cannot access the real filesystem structure. You should run unsecured and sensitive network services in a chroot jail, because if a hacker can break into a vulnerable service he could exploit your whole system. If a service is jailed, the intruder will be able to see only what you want him to see - that is, nothing useful. Some of the most frequent targets of attack, which therefore should be jailed, are BIND, Apache, FTP, and SSH. SSHjail is a patch for the OpenSSH daemon. It modifies two OpenSSH files (session.c and version.h) and allows you to jail your SSH service without any need for SSH reconfiguration."
Permalink for comment 234081
To read all comments associated with this story, please click here.
chroot is not complete isolation
by ghen on Thu 26th Apr 2007 07:03 UTC
ghen
Member since:
2005-08-31

Please remember that chroot() only restricts filesystem access, and nothing else. Chrooted processes can still access local TCP ports, affect non-chrooted processes running under the same user, run local root exploits, etc.