Re: Periodic security find pruning
From: Ulrich Spoerlein (q_at_uni.de)
Date: 03/28/05
- Previous message: Eric Anderson: "Periodic security find pruning"
- In reply to: Eric Anderson: "Periodic security find pruning"
- Next in thread: Eric Anderson: "Re: Periodic security find pruning"
- Reply: Eric Anderson: "Re: Periodic security find pruning"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Mar 2005 17:39:26 +0200 To: Eric Anderson <anderson@centtech.com>
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.
Ulrich Spörlein
-- 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?
- application/pgp-signature attachment: stored
- Previous message: Eric Anderson: "Periodic security find pruning"
- In reply to: Eric Anderson: "Periodic security find pruning"
- Next in thread: Eric Anderson: "Re: Periodic security find pruning"
- Reply: Eric Anderson: "Re: Periodic security find pruning"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]