]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaceb634a08965f53c6c481e1f041b9e643d3eaf5
tree6762298294782347644214de7d90a3a0e913eb1d
parentdea32832bec7e62e9410231fb40762e99cfb0c4b
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: db0788f2a63f ("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