linux_hardened: structleak covers structs passed by address

This commit is contained in:
Joachim Fasting 2017-11-15 21:39:50 +01:00
parent 8ecae36963
commit 870c86d0ee
No known key found for this signature in database
GPG Key ID: 5C204DF675C90294

View File

@ -100,6 +100,9 @@ GCC_PLUGINS y # Enable gcc plugin options
${optionalString (versionAtLeast version "4.11") ''
GCC_PLUGIN_STRUCTLEAK y # A port of the PaX structleak plugin
''}
${optionalString (versionAtLeast version "4.14") ''
GCC_PLUGIN_STRUCTLEAK_BYREF_ALL y # Also cover structs passed by address
''}
# Disable various dangerous settings
ACPI_CUSTOM_METHOD n # Allows writing directly to physical memory