From owner-freebsd-current@FreeBSD.ORG Mon Mar 28 15:39:31 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 9FE1116A4CE for ; Mon, 28 Mar 2005 15:39:31 +0000 (GMT) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id E545E43D3F for ; Mon, 28 Mar 2005 15:39:30 +0000 (GMT) (envelope-from q@uni.de) Received: from wrzx30.rz.uni-wuerzburg.de (wrzx30.rz.uni-wuerzburg.de [132.187.1.30]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id B07E8D8953; Mon, 28 Mar 2005 17:39:29 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 96FED914BF; Mon, 28 Mar 2005 17:39:29 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 7E24D91456; Mon, 28 Mar 2005 17:39:29 +0200 (CEST) Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 422C1D8953; Mon, 28 Mar 2005 17:39:29 +0200 (CEST) Received: from coyote.q.local (gb-21-237.galgenberg.net [172.16.21.237]) by frodo.galgenberg.net (8.13.1/8.13.1) with ESMTP id j2SFdTKM031317; Mon, 28 Mar 2005 17:39:29 +0200 (CEST) (envelope-from q@uni.de) Received: from roadrunner.q.local (roadrunner.q.local [192.168.0.148]) by coyote.q.local (8.13.1/8.13.1) with ESMTP id j2SFdSxm042344; Mon, 28 Mar 2005 17:39:28 +0200 (CEST) (envelope-from q@uni.de) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.3/8.13.1) with ESMTP id j2SFdSqi002644; Mon, 28 Mar 2005 17:39:28 +0200 (CEST) (envelope-from q@uni.de) Received: (from q@localhost) by roadrunner.q.local (8.13.3/8.13.1/Submit) id j2SFdRMr002643; Mon, 28 Mar 2005 17:39:27 +0200 (CEST) (envelope-from q@uni.de) Date: Mon, 28 Mar 2005 17:39:26 +0200 From: Ulrich Spoerlein To: Eric Anderson Message-ID: <20050328153926.GA816@galgenberg.net> Mail-Followup-To: Eric Anderson , FreeBSD Current References: <42481D60.9050801@centtech.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MGYHOYXEY6WxJCY8" Content-Disposition: inline In-Reply-To: <42481D60.9050801@centtech.com> User-Agent: Mutt/1.5.8i X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) 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:39:31 -0000 --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, 28.03.2005 at 09:06:08 -0600, Eric Anderson wrote: > + MP=3D`mount -t ufs | egrep -v " no(suid|exec)" | awk '{ print $3 }' | e= grep -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. Ulrich Sp=F6rlein --=20 PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand? --MGYHOYXEY6WxJCY8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCSCUumArGtfDbn0QRAvmJAJ0e91TgDNJ2cbkwnYKdQwhSoqrWFwCg7VNq AoK9hOVf3Jm8AsEKVvcuJas= =dnke -----END PGP SIGNATURE----- --MGYHOYXEY6WxJCY8--