lkdtm: add function for testing .rodata section
authorKees Cook <keescook@chromium.org>
Mon, 22 Feb 2016 22:09:29 +0000 (14:09 -0800)
committerKees Cook <keescook@chromium.org>
Fri, 10 Jun 2016 22:57:50 +0000 (15:57 -0700)
commit9a49a528dcf3c2022ff89f700d5d0345b9abf288
tree946dc7b2e73cf54e9b349f881970d47755060c42
parent426f3a53d4a1ffbe228f268e5c4af148686b7346
lkdtm: add function for testing .rodata section

This adds a function that lives in the .rodata section. The section
flags are corrected using objcopy since there is no way with gcc to
declare section flags in an architecture-agnostic way.

Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/misc/Makefile
drivers/misc/lkdtm.h [new file with mode: 0644]
drivers/misc/lkdtm_core.c
drivers/misc/lkdtm_rodata.c [new file with mode: 0644]