]> 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)
commit036208f03ec1df01ffe4129e142b9f52d9bc9b95
tree6762298294782347644214de7d90a3a0e913eb1d
parent3a8db5be4877180b6a90aa92e437c60d9951172e
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: 798f070b36b7 ("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