forked from mirrors/nixpkgs
linux_hardened: enable structleak plugin
A port of the PaX structleak plugin. Note that this version of structleak seems to cover less ground than the PaX original (only marked structs are zeroed). [1] [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c61f13eaa1ee17728c41370100d2d45c254ce76f
This commit is contained in:
parent
1816e2b960
commit
996b65cfba
|
@ -15,6 +15,10 @@ assert (versionAtLeast version "4.9");
|
|||
''
|
||||
GCC_PLUGINS y # Enable gcc plugin options
|
||||
|
||||
${optionalString (versionAtLeast version "4.11") ''
|
||||
GCC_PLUGIN_STRUCTLEAK y # A port of the PaX structleak plugin
|
||||
''}
|
||||
|
||||
DEBUG_WX y # A one-time check for W+X mappings at boot; doesn't do anything beyond printing a warning
|
||||
|
||||
${optionalString (versionAtLeast version "4.10") ''
|
||||
|
|
Loading…
Reference in a new issue