From owner-freebsd-jail@FreeBSD.ORG Mon Sep 22 15:55:08 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68F721065670 for ; Mon, 22 Sep 2008 15:55:08 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [62.111.66.27]) by mx1.freebsd.org (Postfix) with ESMTP id 271048FC08 for ; Mon, 22 Sep 2008 15:55:07 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from localhost (amavis.str.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 1D4D541C6A3; Mon, 22 Sep 2008 17:55:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([62.111.66.27]) by localhost (amavis.str.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id lv54IDX719vM; Mon, 22 Sep 2008 17:55:05 +0200 (CEST) Received: by mail.cksoft.de (Postfix, from userid 66) id BF37541C69F; Mon, 22 Sep 2008 17:55:05 +0200 (CEST) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id A53E244487F; Mon, 22 Sep 2008 15:52:43 +0000 (UTC) Date: Mon, 22 Sep 2008 15:52:43 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Randy Schultz In-Reply-To: Message-ID: <20080922155111.T65801@maildrop.int.zabbadoz.net> References: X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-jail@freebsd.org Subject: Re: request for (security) comments on this setup X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2008 15:55:08 -0000 On Mon, 22 Sep 2008, Randy Schultz wrote: Hi, > I'm mounting some iSCSI storage in a jail. It's mounting in the jail via > fstab.. When the jail is up and I'm logged into the jail I can cd > to the mount point, r/w etc., everything seems to work. What's weird tho' > is, > while a df on the parent shows the partion mounted as expected, a df inside > the jail shows the local disk but not the iSCSI mount. > ... > So, my first question is what am I missing, the second is does mounting > things > this way into a jail pose any sort of risk for escaping the jail? Does anything change if you do a sysctl security.jail.enforce_statfs=1 If that's what you want you can add the following lines to /etc/sysctl.conf in the base system so it is automatically set upon boot: # jails security.jail.enforce_statfs=1 /bz -- Bjoern A. Zeeb Stop bit received. Insert coin for new game.