kernel/hardened-config.nix: add STACKLEAK plugin on 4.20+

This commit is contained in:
Pierre Bourdon 2019-01-04 02:08:49 +01:00
parent 9dc0d94896
commit 0f7ca26a48
No known key found for this signature in database
GPG Key ID: 6FB80DCD84DA0F1C

View File

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