Gentoo Archives: gentoo-hardened

From: "Tóth Attila" <atoth@××××××××××.hu>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] Patch to make openjdk compile without manual intervention on systems running pax/grsec kernels
Date: Sat, 12 Feb 2022 18:42:14
Message-Id: b7ae989950ee544414852ef14e268c35.squirrel@atoth.sote.hu
1 Icedtea has effective treatment to compile on pax/grsec systems, but is
2 getting outdated.
3 Openjdk is moving ahead and despite current ebuilds label the compiled
4 binaries well for a pax/grsec systems, I still need to manually label
5 executables 4 times to make the packages compile.
6 Based on the suggestion from Brad Spengler @ grsec I've created patches
7 for current openjdk-11 and openjdk-17 ebuilds to let them compile. Please
8 find them attached. I haven't elaborated whether all the changes are
9 really necessary. I also realize, that it is possible to mass-modify the
10 files using sed from the ebuild, but I opted for the patch approach for a
11 less intrusive path - simply placing them in the appropriate patches
12 directory.
13
14 I thought these could be helpful for someone on the list.
15
16 BR: Dw.
17 --
18 dr Tóth Attila, Radiológus, 06-20-825-8057
19 Attila Toth MD, Radiologist, +36-20-825-8057

Attachments

File name MIME type
openjdk-11-setarch-S.patch application/octet-stream
openjdk-17-setarch-S.patch application/octet-stream