git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "Revert "Revert "linux-hardened: Disable GCC_PLUGIN_RANDSTRUCT"""

The issue with out-of-tree modules has been addressed and the feature should now be good to re-enable again. This reverts commit 865f7a14b49786a2ed55c5ecf3e994f6a3099e8c.

commitb26c824da3d982beb46384b9d75421b9635878d4 authorPierre Bourdon <delroth@gmail.com> dateTue 8 Jan 2019, 12:15 (8 years ago) parent1b9bf8f
1 file changed+5
pkgs/os-specific/linux/kernel/hardened-config.nix+5
pkgs/os-specific/linux/kernel/hardened-config.nix+5
@@ -125,6 +125,11 @@ ${optionalString (versionAtLeast version "4.20") ''
125125 GCC_PLUGIN_STACKLEAK y # A port of the PaX stackleak plugin
126126''}
127127
128+${optionalString (versionAtLeast version "4.13") ''
129+ GCC_PLUGIN_RANDSTRUCT y # A port of the PaX randstruct plugin
130+ GCC_PLUGIN_RANDSTRUCT_PERFORMANCE y
131+''}
132+
128133# Disable various dangerous settings
129134ACPI_CUSTOM_METHOD n # Allows writing directly to physical memory
130135PROC_KCORE n # Exposes kernel text image layout