On Sunday, March 13, 2011 17:38:29 Anthony G. Basile wrote:
> On 03/13/2011 04:19 PM, Mike Frysinger wrote:
> > maybe have it `elog` only when [[ $(uname -r) == *-grsec* ]]
> 
> blueness@yellowness ~ $ uname -r
> 2.6.37-hardened-r5
> 
> so you need == *-hardened-*

you want to additionally match hardened, not replace.
[[ $(uname -r) =~ .*-(grsec|hardened).* ]]
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to