ANDROID: GKI: Make linux_banner a C pointer

This variable can have its ABI intentionally changed by anybody building
on a different hostname etc. so it does not make sense to monitor it as
a C string. Make linux_banner a C pointer so it is checked for presence
but not for length.

Bug: 154345163
Signed-off-by: Alistair Delva <adelva@google.com>
Change-Id: I932e7c2ca1a1bd6d730462249005515c71771ed8
This commit is contained in:
Alistair Delva 2020-04-17 12:11:40 -07:00
parent adc90eb071
commit fdef3b7210
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@
#include <linux/linkage.h>
#include <linux/cache.h>
extern const char linux_banner[];
extern const char *linux_banner;
extern const char linux_proc_banner[];
#define PRINTK_MAX_SINGLE_HEADER_LEN 2

View file

@ -42,7 +42,7 @@ struct uts_namespace init_uts_ns = {
EXPORT_SYMBOL_GPL(init_uts_ns);
/* FIXED STRINGS! Don't touch! */
const char linux_banner[] =
const char *linux_banner =
"Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
EXPORT_SYMBOL_GPL(linux_banner);