From owner-freebsd-virtualization@FreeBSD.ORG Thu Sep 9 20:05:07 2010 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7E5310656DC for ; Thu, 9 Sep 2010 20:05:07 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [IPv6:2001:4068:10::3]) by mx1.freebsd.org (Postfix) with ESMTP id 0A5018FC16 for ; Thu, 9 Sep 2010 20:05:07 +0000 (UTC) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 0B75341C7CD; Thu, 9 Sep 2010 22:05:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([192.168.74.103]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id ut1Hi34l8iCl; Thu, 9 Sep 2010 22:05:05 +0200 (CEST) Received: by mail.cksoft.de (Postfix, from userid 66) id 7729541C7CB; Thu, 9 Sep 2010 22:05: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 1238D4448F3; Thu, 9 Sep 2010 20:03:07 +0000 (UTC) Date: Thu, 9 Sep 2010 20:03:07 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: "Luiz Gustavo S. Costa" In-Reply-To: Message-ID: <20100909195951.S31898@maildrop.int.zabbadoz.net> References: <20100907164529.O31898@maildrop.int.zabbadoz.net> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD virtualization mailing list Subject: Re: [patch] allow testing VIMAGE with pf in base system only X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2010 20:05:09 -0000 On Thu, 9 Sep 2010, Luiz Gustavo S. Costa wrote: Hey, > But I found something that may be unsafe within the jail environment, > I'm allowed to change /dev/pf, so that if I run a "pfctl-f > /etc/pf.conf" inside the jail to do with that the rules are read > again, killing pf.conf on the main environment yes, see the comment at the top of the patch: ! You should not leak /dev/pf into jails for now or they might ! change your rules;-) See devfs, devfs.rules, etc. The jail startup script would usually apply the devfsrules_jail defines in /etc/defaults/devfs.rules. /bz -- Bjoern A. Zeeb Welcome a new stage of life.