Re: Technical repercussions of grsecurity removal

Miroslav Rovis <miro.rovis-w3I/[email protected]> Mon, 8 May 2017 22:49:12 +0200
Newsgroups gmane.linux.gentoo.hardened
Message-ID <[email protected]>
(thanks also to Luis Ressel for clarifications in the other email)

(I'm only top posting because this reply of mine has no particularities
to place it btwn any lines further below. Otherwise, I don't top post.)

Mathias, I only wish to thank you for the quick reply and the tips
below. And all my hopes are in you and your team/your contributors
(I'm sure there will be great libre people congregating on
linux-unofficial_grsec these days and weeks ahead, and longer). Make it
as libre as possible! Keep fixing the kernel that Mr Linux wouldn't make
secure...  Yes, he and his comrades from big business caused this rift.
I don't blame spender and PaX Team either....

And about ebuild making, I'll try my best and if I don't break apart in
unsuccessful trying, I'll be back with an ebuild to discuss. Or if
anybody from Gentoo hardened cares, they can teach us how to do the
Gentoo details.

(no more new text, only my signature in bottom)

On 170508-22:07+0200, Mathias Krause wrote:
> On 8 May 2017 at 20:08, Miroslav Rovis <miro.rovis-w3I/[email protected]> wrote:
> > [...]
> > But I saw the other link that gives me some hope:
> >
> > Unofficial forward ports of the last publicly available grsecurity patch
> > https://github.com/minipli/linux-unofficial_grsec/tree/linux-4.9.x-unofficial_grsec
> >
> > which I cloned into my machine. (And I have just spent hours trying to
> > fix an ebuild in my custom overlay and install it in my machine, to no
> > avail so far, and I'm at the end of my forbearance... A little more below.)
> >
> > And I wonder:
> >
> > 1) Are there any guides for non-programmers how to install the:
> >
> > Merge tag 'v4.9.26' into linux-4.9.x-unofficial_grsec
> > https://github.com/minipli/linux-unofficial_grsec/commit/bb9fb983874810ca4167430508e06975af700824?diff=unified
> 
> See below.
> 
> > [...]
> >
> > 2) How can I check the integrity? I can:
> 
> You figured that one already ;)
> 
> > [...]
> > The README.md is plain readme from the kernel, no mention of grsec at
> > all...
> 
> ...as it used to be the case for the official grsec patch. So nothing
> has changed here. ;) But I can understand your concerns. If you're
> used to getting a patch and have to use a git repo now, it's not
> intuitive on *how* to make use of it. But, again, see below...
> 
> >
> > Where do I get some tips how to install? I do have the git sources, they
> > verify fine... I will, hopefully, keep strong and keep trying, but I'm
> > not so very sure I am able to craft an ebuild that would work and that
> > would install with the local git linux-unofficial_grsec repo...
> 
> I'm not familiar with the gentoo ebuild based package system but I
> guess patches integrate more smoothly than git repositories do. So
> here's how you generate a patch for the unofficial port for v4.9.27
> (just pushed ;):
> 
>   $ git remote update
>   [update log foo]
>   $ git diff v4.9.27..v4.9.27-unofficial_grsec > ~/unofficial_grsec-v4.9.27.diff
> 
> If you don't want to clone the git repo you can fetch the patch
> directly via the github web interface:
> 
>   $ curl https://github.com/minipli/linux-unofficial_grsec/compare/v4.9.27...v4.9.27-unofficial_grsec.diff
> > ~/unofficial_grsec-v4.9.27.diff
> 
> The pattern should be intuitive: just change "v4.9.27" for the kernel
> version you want to get a patch for (v4.9.25 to v4.9.27 so far).
> 
> The generated patch can be applied on a vanilla Linux v4.9.27 as usual
> to generate the unofficial grsec kernel.
> 
> I hope this helps!
> 
> Cheers,
> Mathias

Regards!
-- 
Miroslav Rovis
Zagreb, Croatia
https://www.CroatiaFidelis.hr
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE/PEyRe0kfc5EOFW36piEiE+68K4FAlkQ2cQACgkQ6piEiE+6
8K7NJw/+Pfpjl75YkRSfcjl4XdNtb4JqeHxKTLxk5jUwiQj4mxv9O6dOSoFCQc3C
IeW3RSSL7ZqQKV8lNQxWnMdwpCcclXmCgi7TNEEWdNvzdHlUrXNlLbkH4ZWgkv3y
g8v1pDjKD3LzDNHNa4I/2FgX1bVav3R4iDniAdOwCJ/9IxpztbNWp+knjW76QzXG
mEn+kWEUxxoO6FSggi6ujcAxDiX06CAY4hX0eX6t7gskmmw+2PYobMbJz3ovE6Kf
VBDk1ViWXMSwc3E5cDSr4aNuBKXyxvcPUeyXDDkUOmFbfrG6kg1tN2VyTzX3+46i
X60y1+U7Av+nsBNenfslZ/+gk4VFrJofzf+8IOxIBHUYbgcsTkdb5tFOMg6OCcfF
+Bhe5GDQM0Ni6L8p6AkxYci9LEL4l1Brdw1aclOmA6QmAEcUiw/T9zI1bX9QX0N+
IyX6liD/Ccd3fVJK1io40Bs3QQ8SBDQKVUWXHNei3xQrdT3wG2mHBX4APv3cbjdo
ZoXGtTwEs+88lc+MSmOt+xG5CEBEcE1mN49JXtTYkX5bP1Xl9xfYjNtE0LP4pPIV
dvAeePUf9EZsjllHg8hsC8KCBZftL6n4l40hXu6GEsXsDRsBk4451F/06F2/rlfx
7SZ82FRZUM9U9gUKIn9WaTBWIvgKRbaVo9GkqbFrEVRKyDDWK6Y=
=RHeU
-----END PGP SIGNATURE-----