lkdtm: add usercopy test for blocking kernel text
authorKees Cook <keescook@chromium.org>
Fri, 24 Jun 2016 05:01:26 +0000 (22:01 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 7 Jul 2016 18:09:19 +0000 (11:09 -0700)
commit6c3521400c345fa2575a6f5b212c215db38c5d93
treeda82894be96d44bc48809e6871dd096db1106f22
parente2402b1d214e5d50e807773563d590115a161f45
lkdtm: add usercopy test for blocking kernel text

The upcoming HARDENED_USERCOPY checks will also block access to the
kernel text, so provide a test for this as well.

Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/misc/lkdtm_core.c