Gentoo Archives: gentoo-dev

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] pax-utils.eclass: elog -> einfo?
Date: Sun, 13 Mar 2011 22:08:24
Message-Id: 4D7D4034.3050906@gentoo.org
In Reply to: Re: [gentoo-dev] pax-utils.eclass: elog -> einfo? by Mike Frysinger
1 On 03/13/2011 06:01 PM, Mike Frysinger wrote:
2 > On Sunday, March 13, 2011 17:38:29 Anthony G. Basile wrote:
3 >> On 03/13/2011 04:19 PM, Mike Frysinger wrote:
4 >>> maybe have it `elog` only when [[ $(uname -r) == *-grsec* ]]
5 >> blueness@yellowness ~ $ uname -r
6 >> 2.6.37-hardened-r5
7 >>
8 >> so you need == *-hardened-*
9 > you want to additionally match hardened, not replace.
10 > [[ $(uname -r) =~ .*-(grsec|hardened).* ]]
11 > -mike
12
13 1) I made a tiny error, but you caught it, it should be *-hardened*
14 without the extra dash.
15
16 2) This works for me, but I'm not familiar with any gentoo kernels that
17 have -grsec in the uname. Am I missing something, or is this just in
18 case some of our users are deploying their own kernels?
19
20 --
21 Anthony G. Basile, Ph.D.
22 Gentoo Developer

Replies

Subject Author
Re: [gentoo-dev] pax-utils.eclass: elog -> einfo? Mike Frysinger <vapier@g.o>