From owner-freebsd-current@FreeBSD.ORG Thu Sep 22 12:21:16 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F99A16A41F for ; Thu, 22 Sep 2005 12:21:16 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17AB943D5D for ; Thu, 22 Sep 2005 12:21:16 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by smtp1-g19.free.fr (Postfix) with ESMTP id 62286185F1 for ; Thu, 22 Sep 2005 14:21:15 +0200 (CEST) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id 79B0A405D; Thu, 22 Sep 2005 14:21:13 +0200 (CEST) Date: Thu, 22 Sep 2005 14:21:13 +0200 From: Jeremie Le Hen To: freebsd-current@FreeBSD.org Message-ID: <20050922122113.GO24643@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.10i Cc: Subject: jail's periodic stuff X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2005 12:21:16 -0000 Hi, there are some periodic script which shouldn't be run inside a jail, because jail's restrictions would prevent the utility to work correctly. This includes those that gathers statistics from various firewalls, in security/ : 510.ipfdenied 520.pfdenied 550.ipfwlimit 600.ip6fwdenied 610.ipf6denied 650.ip6fwlimit I think that three other scripts from daily/ should be avoided too, but I'm not yet sure about those : 400.status-disks 405.status-ata-raid 420.status-network I would like to hear your comments on this and on the best way to solve this problem. My first thought was to add % if [ `sysctl -n security.jail.jailed` -eq 1 ] % then % exit 0 % fi just before the main case statement, but there may be smarter ways to achieve this. I will be glad to provide a patch as soon as I will have gathered enough informations. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >