Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2005 09:40:48 -0600
From:      Eric Anderson <anderson@centtech.com>
To:        Ulrich Spoerlein <q@uni.de>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Periodic security find pruning
Message-ID:  <42482580.90309@centtech.com>
In-Reply-To: <20050328153926.GA816@galgenberg.net>
References:  <42481D60.9050801@centtech.com> <20050328153926.GA816@galgenberg.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42482580.90309>