Periodic security find pruning
Ulrich Spoerlein
q at uni.de
Mon Mar 28 07:39:31 PST 2005
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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20050328/393884a1/attachment.bin
More information about the freebsd-current
mailing list