From owner-freebsd-current@FreeBSD.ORG Mon Mar 28 15:41:17 2005 Return-Path: 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 0687716A511 for ; Mon, 28 Mar 2005 15:41:17 +0000 (GMT) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0BF043D62 for ; Mon, 28 Mar 2005 15:41:15 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id j2SFfB0f099844; Mon, 28 Mar 2005 09:41:11 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <42482580.90309@centtech.com> Date: Mon, 28 Mar 2005 09:40:48 -0600 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050325 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ulrich Spoerlein References: <42481D60.9050801@centtech.com> <20050328153926.GA816@galgenberg.net> In-Reply-To: <20050328153926.GA816@galgenberg.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: FreeBSD Current Subject: Re: Periodic security find pruning X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 28 Mar 2005 15:41:17 -0000 Ulrich Spoerlein wrote: > On Mon, 28.03.2005 at 09:06:08 -0600, Eric Anderson wrote: > >>+ MP=`mount -t ufs | egrep -v " no(suid|exec)" | awk '{ print $3 }' | egrep -v "($excludes)" | sort` > > > You need to consider boundaries. Having /vol, /vol1 and /vol2, setting > excludes to "vol" will result in ".*vol.*" being excluded. I would > suggest using full paths ("/vol") and this regexp: "^$(excludes)\$", > that way one can also exclude / by putting "/" into $excludes. Right you are! Good idea.. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology I have seen the future and it is just like the present, only longer. ------------------------------------------------------------------------