randstruct: Enable function pointer struct detection
authorKees Cook <keescook@chromium.org>
Sat, 6 May 2017 06:56:07 +0000 (23:56 -0700)
committerKees Cook <keescook@chromium.org>
Wed, 2 Aug 2017 00:04:48 +0000 (17:04 -0700)
commit9225331b310821760f39ba55b00b8973602adbb5
tree486443275c8d05ebe69d6d403ccf0b8fe5296425
parent3598f5d0872ff574c5b6704024f12ca4a3056860
randstruct: Enable function pointer struct detection

This enables the automatic structure selection logic in the randstruct
GCC plugin. The selection logic randomizes all structures that contain
only function pointers, unless marked with __no_randomize_layout.

Signed-off-by: Kees Cook <keescook@chromium.org>
arch/Kconfig
scripts/gcc-plugins/randomize_layout_plugin.c