lkdtm: Use init_uts_ns.name instead of macros
authorKees Cook <keescook@chromium.org>
Wed, 1 Sep 2021 23:34:06 +0000 (16:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Sep 2021 15:09:40 +0000 (17:09 +0200)
commit3a3a11e6e5a2bc0595c7e36ae33c861c9e8c75b1
tree6762298294782347644214de7d90a3a0e913eb1d
parentbf9f243f23e6623f310ba03fbb14e10ec3a61290
lkdtm: Use init_uts_ns.name instead of macros

Using generated/compile.h triggered a full LKDTM rebuild with every
build. Avoid this by using the exported strings instead.

Fixes: b8661450bc7f ("lkdtm: Add kernel version to failure hints")
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210901233406.2571643-1-keescook@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/lkdtm/core.c
drivers/misc/lkdtm/lkdtm.h