Re: Hardening a Kernel post hardened-sources

Guillaume Ceccarelli <[email protected]> Fri, 30 Mar 2018 18:12:39 +0200
Newsgroups gmane.linux.gentoo.hardened
Message-ID <[email protected]>
--Apple-Mail=_BF852EF7-862C-4D01-83EF-C2C499213B01
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_99F4075B-173B-4A66-9B74-F556DA990DD3"


--Apple-Mail=_99F4075B-173B-4A66-9B74-F556DA990DD3
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

I see=E2=80=A6 I=E2=80=99m sorry to hear that.

The grsecurity-sources overlay seems to be tracking minipli=E2=80=99s =
unofficial port. So that=E2=80=99s what you already got as a =
recommendation, with the convenience of ebuilds to match.

It looks like the latest release from minipli=E2=80=99s is based off of =
Linux 4.9.74 (early January ; the last one before Spectre / Meltdown =
mitigations got merged into upstream kernels), with the latest upstream =
version today being 4.9.91. So minipli=E2=80=99s kernel is starting to =
be quite a bit behind upstream too. He did mention that it would take =
him a significant amount of time to forward port with KAISER / KPTI. So =
he might just be working on it, still.

Minipli=E2=80=99s kernel might still be your best option after all, but =
I haven=E2=80=99t reviewed the patches that made it to upstream between =
4.9.74 and 4.9.91 so I=E2=80=99m not sure what you=E2=80=99d be missing =
out on at the moment by choosing to go with it.


Best,

=E2=80=93 Guillaume Ceccarelli

> On Mar 30, 2018, at 17:37, Robert Sharp <selinux-/[email protected]> =
wrote:
>=20
> I requested a quote from GRsecurity and they told me that although =
they are looking at providing a package for personal customers they =
don't have one at the moment. They recommended minipli as the next best =
thing...
>=20
> What about the grsecurity-source overlay?
>=20
> On 29/03/18 11:47, Guillaume Ceccarelli wrote:
>> Hi all,
>>=20
>> I=E2=80=99ve been a grsecurity customer for a little over two years =
now, and my use of it is as a small business, on Gentoo server =
installations. While I can=E2=80=99t disclose the amount of money I=E2=80=99=
m paying publicly because every deal is customized, I would encourage =
you to get in touch using the contact form on grsecurity.net =
<http://grsecurity.net/> and ask for a quote if you haven=E2=80=99t =
already.
>>=20
>> You might just end up with an arrangement you can afford, and grsec =
is still certainly worth having today. Not only for the feature set, but =
also for the constant looking over the mainline Linux kernel code, =
including fixing and backporting more fixes than the regular kernel =
stable releases, and for knowledge / emails giving context to important =
kernel vulnerabilities when they occur.
>>=20
>>=20
>> Best,
>>=20
>> =E2=80=93 Guillaume Ceccarelli=20
>>=20
>> On 28 Mar 2018, at 20:22, R0b0t1 <[email protected] =
<mailto:[email protected]>> wrote:
>>=20
>>> On Wed, Mar 28, 2018 at 12:40 PM, Alex Efros <[email protected] =
<mailto:[email protected]>> wrote:
>>>> Hi!
>>>>=20
>>>> On Wed, Mar 28, 2018 at 06:06:00PM +0100, Robert Sharp wrote:
>>>>> Does anyone know of a good, post GRSecurity guide to reasonable =
security
>>>>> for the kernel? In the absence of anything else I will have to go =
back
>>>>> to the KSPP list and start removing stuff until I can get a stable =
kernel.
>>>>=20
>>>> I'm using https://github.com/minipli/linux-unofficial_grsec =
<https://github.com/minipli/linux-unofficial_grsec>, but it lacks
>>>> Spectre and Meltdown mitigation at the moment (see issues). Still, =
I
>>>> believe it's the best we can have now (better is probably paid =
GrSec, but
>>>> AFAIK it's impossible or too costly to buy it for home or small =
business).
>>>>=20
>>>=20
>>> Previous contributors have access to the code, but it doesn't seem
>>> like there is any way to go that route anymore.
>>>=20
>=20


--Apple-Mail=_99F4075B-173B-4A66-9B74-F556DA990DD3
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">I =
see=E2=80=A6 I=E2=80=99m sorry to hear that.<div class=3D""><br =
class=3D""></div><div class=3D"">The grsecurity-sources overlay seems to =
be tracking minipli=E2=80=99s unofficial port. So that=E2=80=99s what =
you already got as a recommendation, with the convenience of ebuilds to =
match.</div><div class=3D""><br class=3D""></div><div class=3D"">It =
looks like the latest release from minipli=E2=80=99s is based off of =
Linux 4.9.74 (early January ; the last one before Spectre / Meltdown =
mitigations got merged into upstream kernels), with the latest upstream =
version today being 4.9.91. So minipli=E2=80=99s kernel is starting to =
be quite a bit behind upstream too. He did mention that it would take =
him a significant amount of time to forward port with KAISER / KPTI. So =
he might just be working on it, still.</div><div class=3D""><br =
class=3D""></div><div class=3D"">Minipli=E2=80=99s kernel might still be =
your best option after all, but I haven=E2=80=99t reviewed the patches =
that made it to upstream between 4.9.74 and 4.9.91 so I=E2=80=99m not =
sure what you=E2=80=99d be missing out on at the moment by choosing to =
go with it.</div><div class=3D""><br class=3D""></div><div class=3D""><br =
class=3D""></div><div class=3D"">Best,</div><div class=3D""><br =
class=3D""></div><div class=3D"">=E2=80=93 Guillaume =
Ceccarelli</div><div class=3D""><div><br class=3D""><blockquote =
type=3D"cite" class=3D""><div class=3D"">On Mar 30, 2018, at 17:37, =
Robert Sharp &lt;<a href=3D"mailto:selinux-/[email protected]" =
class=3D"">selinux-/[email protected]</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D"">
 =20
    <meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8" class=3D"">
 =20
  <div text=3D"#000000" bgcolor=3D"#FFFFFF" class=3D"">
    <div class=3D"moz-cite-prefix">I requested a quote from GRsecurity =
and
      they told me that although they are looking at providing a package
      for personal customers they don't have one at the moment. They
      recommended minipli as the next best thing...<br class=3D"">
      <br class=3D"">
      What about the grsecurity-source overlay?<br class=3D"">
      <br class=3D"">
      On 29/03/18 11:47, Guillaume Ceccarelli wrote:<br class=3D"">
    </div>
    <blockquote type=3D"cite" =
cite=3D"mid:467F3E15-D7B4-411F-994B-780871AA83A4-IyFa6exPGtwsy6BxJt0lzQ@public.gmane.org" =
class=3D"">
      <meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8" class=3D"">
      <div class=3D""><span class=3D""></span></div>
      <div class=3D"">
        <div class=3D""><span style=3D"background-color: rgba(255, 255, =
255, 0);" class=3D"">Hi
            all,<br class=3D"">
            <br class=3D"">
            I=E2=80=99ve been a grsecurity customer for a little over =
two years
            now, and my use of it is as a small business, on Gentoo
            server installations. While I can=E2=80=99t disclose the =
amount of
            money I=E2=80=99m paying publicly because every deal is =
customized,
            I would encourage you to get in touch using the contact form
            on&nbsp;<a href=3D"http://grsecurity.net/" dir=3D"ltr" =
x-apple-data-detectors=3D"true" x-apple-data-detectors-type=3D"link" =
x-apple-data-detectors-result=3D"0" moz-do-not-send=3D"true" =
class=3D"">grsecurity.net</a>&nbsp;and
            ask for a quote if you haven=E2=80=99t already.<br class=3D"">=

            <br class=3D"">
            You might just end up with an arrangement you can afford,
            and grsec is still certainly worth having today. Not only
            for the feature set, but also for the constant looking over
            the mainline Linux kernel code, including fixing and
            backporting more fixes than the regular kernel stable
            releases, and for knowledge / emails giving context to
            important kernel vulnerabilities when they occur.<br =
class=3D"">
            <br class=3D"">
            <br class=3D"">
            Best,<br class=3D"">
            <br class=3D"">
            =E2=80=93 Guillaume Ceccarelli&nbsp;</span></div>
        <div class=3D""><br class=3D"">
          On 28 Mar 2018, at 20:22, R0b0t1 &lt;<a =
href=3D"mailto:[email protected]" moz-do-not-send=3D"true" =
class=3D"">[email protected]</a>&gt;
          wrote:<br class=3D"">
          <br class=3D"">
        </div>
        <blockquote type=3D"cite" class=3D"">
          <div class=3D""><span class=3D"">On Wed, Mar 28, 2018 at 12:40 =
PM, Alex Efros &lt;<a href=3D"mailto:[email protected]" =
moz-do-not-send=3D"true" class=3D"">[email protected]</a>&gt;
              wrote:</span><br class=3D"">
            <blockquote type=3D"cite" class=3D""><span =
class=3D"">Hi!</span><br class=3D"">
            </blockquote>
            <blockquote type=3D"cite" class=3D""><span =
class=3D""></span><br class=3D"">
            </blockquote>
            <blockquote type=3D"cite" class=3D""><span class=3D"">On =
Wed, Mar 28, 2018 at
                06:06:00PM +0100, Robert Sharp wrote:</span><br =
class=3D"">
            </blockquote>
            <blockquote type=3D"cite" class=3D"">
              <blockquote type=3D"cite" class=3D""><span class=3D"">Does =
anyone know of a good,
                  post GRSecurity guide to reasonable security</span><br =
class=3D"">
              </blockquote>
            </blockquote>
            <blockquote type=3D"cite" class=3D"">
              <blockquote type=3D"cite" class=3D""><span class=3D"">for =
the kernel? In the
                  absence of anything else I will have to go =
back</span><br class=3D"">
              </blockquote>
            </blockquote>
            <blockquote type=3D"cite" class=3D"">
              <blockquote type=3D"cite" class=3D""><span class=3D"">to =
the KSPP list and start
                  removing stuff until I can get a stable =
kernel.</span><br class=3D"">
              </blockquote>
            </blockquote>
            <blockquote type=3D"cite" class=3D""><span =
class=3D""></span><br class=3D"">
            </blockquote>
            <blockquote type=3D"cite" class=3D""><span class=3D"">I'm =
using <a href=3D"https://github.com/minipli/linux-unofficial_grsec" =
moz-do-not-send=3D"true" =
class=3D"">https://github.com/minipli/linux-unofficial_grsec</a>,
                but it lacks</span><br class=3D"">
            </blockquote>
            <blockquote type=3D"cite" class=3D""><span class=3D"">Spectre =
and Meltdown
                mitigation at the moment (see issues). Still, =
I</span><br class=3D"">
            </blockquote>
            <blockquote type=3D"cite" class=3D""><span class=3D"">believe =
it's the best we can
                have now (better is probably paid GrSec, but</span><br =
class=3D"">
            </blockquote>
            <blockquote type=3D"cite" class=3D""><span class=3D"">AFAIK =
it's impossible or too
                costly to buy it for home or small business).</span><br =
class=3D"">
            </blockquote>
            <blockquote type=3D"cite" class=3D""><span =
class=3D""></span><br class=3D"">
            </blockquote>
            <span class=3D""></span><br class=3D"">
            <span class=3D"">Previous contributors have access to the =
code, but it
              doesn't seem</span><br class=3D"">
            <span class=3D"">like there is any way to go that route =
anymore.</span><br class=3D"">
            <span class=3D""></span><br class=3D"">
          </div>
        </blockquote>
      </div>
    </blockquote><p class=3D""><br class=3D"">
    </p>
  </div>

</div></blockquote></div><br class=3D""></div></body></html>=

--Apple-Mail=_99F4075B-173B-4A66-9B74-F556DA990DD3--

--Apple-Mail=_BF852EF7-862C-4D01-83EF-C2C499213B01
Content-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