hardened-config: enable the randstruct plugin

This commit is contained in:
Joachim Fasting 2017-09-16 00:20:51 +02:00
parent edd0d2f2e9
commit 9a763f8f59
No known key found for this signature in database
GPG Key ID: 66EAB6B14F6B6E0D

View File

@ -93,6 +93,11 @@ ${optionalString (versionAtLeast version "4.11") ''
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