From owner-freebsd-questions@FreeBSD.ORG Mon Mar 7 16:35:46 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA59916A4CE for ; Mon, 7 Mar 2005 16:35:46 +0000 (GMT) Received: from s001.searchy.nl (s001.searchy.nl [82.94.249.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27F7443D2F for ; Mon, 7 Mar 2005 16:35:44 +0000 (GMT) (envelope-from freebsd@searchy.nl) Received: from [84.26.28.239] (cp12646-a.roose1.nb.home.nl [84.26.28.239]) by s001.searchy.nl (Postfix) with ESMTP id AD0888E016 for ; Mon, 7 Mar 2005 17:35:42 +0100 (CET) Message-ID: <422C82DE.6040506@searchy.nl> Date: Mon, 07 Mar 2005 17:35:42 +0100 From: Frank de Bot User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <422C7B99.5010504@searchy.net> <20050307161304.M78434@wcborstel.nl> In-Reply-To: <20050307161304.M78434@wcborstel.nl> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Jail security X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2005 16:35:46 -0000 Jorn Argelo wrote: > On Mon, 07 Mar 2005 17:04:41 +0100, Frank de Bot wrote > >>Hi, >> >>I've set up a jail. But I don't have any idea how safe a jail is. >>Often is told chroot and jails can be escaped. How safe is it to >>give other people user access to a jailed environment? or maybe even >>root... > > > A jailed process cannot leave its jail. Unless some exploit is being found in > jail itself, but that's rather unlikely. A cracker can only mess up your jail > and not your entire host. So if you build 4 jails for Apache, MySQL, Squid and > Postfix for instance, each of those processes will only run in its jail and > cannot interact with another jail or the host. Which is more secure then just > putting everything on your host. > > Another major advantage of jails is that you can experiment at will without > touching your production enviroment. Just create a jail and install apache in > the other jail. Once you are finished and it works, just amend your firewall > settings and you're ready to go. > > If you're experienced enough I'd encourage you to use them. It can be > complicated for a newbie, but if you know your way around FreeBSD and the > command line, you should really use jails. > > Jorn. What if an exploit is found, then root should have the greatest chance to break out of the jail, or not? Should it be possible to assign root another UID in a jail (this is pretty unlikely I think), so IF it breaks out it will find hisself working as a user at the host system :-P