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

Discover WinDev 11 RAD
and develop 10 times faster ! ALM, IDE, .Net, PDF, 5GL, Database, 64-bit, etc. Free Express version

Flowcharts from C/C++ code -- Free trial download
Understand C/C++ code in less time. A new team member ? Inherited legacy code ? Get up to speed faster with Crystal Flow for C/C++. Code-formatting improves readability. Flowcharts are integrated with code browser. Export flowcharts to Visio.

Six Sigma Certification
100% Online-Six Sigma Certificate from Villanova - Find Out More Now.

BugSplat - Automatic Crash Analysis
Fast online exception analysis. Capture customer crash data online.

Wanna see your ad here?