hardened-config: enable the randstruct plugin

Changed files
+5
pkgs
os-specific
linux
+5
pkgs/os-specific/linux/kernel/hardened-config.nix
···
GCC_PLUGIN_STRUCTLEAK y # A port of the PaX structleak plugin
''}
# Disable various dangerous settings
ACPI_CUSTOM_METHOD n # Allows writing directly to physical memory
PROC_KCORE n # Exposes kernel text image layout
···
GCC_PLUGIN_STRUCTLEAK y # A port of the PaX structleak plugin
''}
+
${optionalString (versionAtLeast version "4.13") ''
+
GCC_PLUGIN_RANDSTRUCT y # A port of the PaX randstruct plugin
+
GCC_PLUGIN_RANDSTRUCT_PERFORMANCE y
+
''}
+
# Disable various dangerous settings
ACPI_CUSTOM_METHOD n # Allows writing directly to physical memory
PROC_KCORE n # Exposes kernel text image layout