On 03/13/2011 06:01 PM, Mike Frysinger wrote:
> 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

1) I made a tiny error, but you caught it, it should be *-hardened*
without the extra dash.

2) This works for me, but I'm not familiar with any gentoo kernels that
have -grsec in the uname.  Am I missing something, or is this just in
case some of our users are deploying their own kernels?

-- 
Anthony G. Basile, Ph.D.
Gentoo Developer


Reply via email to