Current Issue


Table of contents

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 12.0

Version 12.0 delivers every issue of Sys Admin from 1992 through 2006 and every
issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!

Sys Admin Magazine > Archives > 2001 > August 2001

Jailed Internet Services

Liam Widdowson

Many security analysts recommend that a physical server run a single service only. This segmentation of services provides an extra layer of protection in the event of an attack. If, for example, a cracker compromises a server through a buffer overflow in Sendmail, the cracker would not be able to alter Web server content because it would be stored on a separate server that would not be vulnerable to the Sendmail hole.

However, it may be impractical from a systems management or financial point of view to place each distinct service on a separate physical machine. In this situation, systems administrators could still enjoy the benefits of separate hosts by running each service in a virtual machine. Virtual machine software (such as VMWare [1] and Bochs [2]) allows administrators to run separate instances of operating systems simultaneously on a single host. However, this still leaves a systems management problem -- extra operating systems to maintain, increased system complexity, as well as performance degradation due to virtual machine overhead.

Fortunately, UNIX variants possess the chroot(2) system call. This system call causes a particular directory to become the root directory of the calling process. This allows the process to be locked into a virtual root directory, commonly referred to as a "jail" somewhere along the directory tree. For example, an application that executes the following C code (error checking omitted) will have its root directory set to /var/chroot and will open the file /tmp/test.t




MarketPlace

Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.

Instant Answers to Your IT & Business Questions
Sign Up & Get Full Access To The Definitive Online Book Collection With SkillSoft's Books24x7�.

WinDev 11 - Powerful IDE
Develop 10 times faster ! ALM, IDE, .Net, RAD, 5GL, Database, 5GL, 64-bit, etc. Free Express version

Check Out IT Certification Preparation Materials
Sign Up With SkillSoft & Get Access to Training Materials for Over 50 Professional Certifications.

Wanna see your ad here?