ANDROID: modpost: generate protected exports
These are symbols that unsigned modules may not export. * kernel/module/internal.h - declares protected exports * modpost generates protected-exports.c - defines protected exports Bug: 393366754 Change-Id: I3e6d630542875e35754126e64bc279313fc131b9 Signed-off-by: Sid Nayyar <sidnayyar@google.com>
This commit is contained in:
@@ -420,3 +420,11 @@ static inline int same_magic(const char *amagic, const char *bmagic, bool has_cr
|
||||
return strcmp(amagic, bmagic) == 0;
|
||||
}
|
||||
#endif /* CONFIG_MODVERSIONS */
|
||||
|
||||
#ifdef CONFIG_MODULE_SIG_PROTECT
|
||||
extern const char *const protected_symbol_exports[];
|
||||
extern size_t protected_symbol_exports_count;
|
||||
#else
|
||||
#define protected_symbol_exports NULL
|
||||
#define protected_symbol_exports_count 0UL
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user