Re: Periodic security find pruning

From: Ulrich Spoerlein (q_at_uni.de)
Date: 03/28/05

  • Next message: Eric Anderson: "Re: Periodic security find pruning"
    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?
    
    



  • Next message: Eric Anderson: "Re: Periodic security find pruning"