summaryrefslogtreecommitdiff
path: root/drivers/misc/lkdtm_rodata.c
AgeCommit message (Collapse)AuthorFilesLines
2016-07-15lkdtm: silence warnings about function declarationsKees Cook1-1/+1
When building under W=1, the lack of lkdtm.h in lkdtm_usercopy.c and lkdtm_rodata.c was discovered. This fixes the issue and consolidates the common header and the pr_fmt macro for simplicity and regularity across each test source file. Signed-off-by: Kees Cook <keescook@chromium.org>
2016-06-10lkdtm: add function for testing .rodata sectionKees Cook1-0/+10
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>