When run on a hardened system all the grub utilities get killed by the kernel due to unproper pax-marking. After some testing seems that -pems is the bare minimum for the binaries to work. This has been proven on one of the binaries and extrapolated to the rest where the new paxmarking seemed to work whilst the older one didn't. Attached is a patch to fix the issue. Reproducible: Always Steps to Reproduce: 1. emerge grub 2. run any program Actual Results: The program gets killed Expected Results: Program runs flawlessly
Created attachment 297263 [details, diff] Patch to set propper pax marks
Added to main tree to live ebuild and 1.99-r2.