From: Randy Dunlap <[email protected]> Fix build error when CONFIG_FW_LOADER=m, CONFIG_FW_LOADER_USER_HELPER=y, CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y, and CONFIG_SECURITY=y:
ERROR: "security_kernel_load_data" [drivers/base/firmware_loader/firmware_class.ko] undefined! Signed-off-by: Randy Dunlap <[email protected]> Cc: James Morris <[email protected]> Cc: "Serge E. Hallyn" <[email protected]> Cc: [email protected] Cc: Luis R. Rodriguez <[email protected]> --- security/security.c | 1 + 1 file changed, 1 insertion(+) --- linux-next-20180717.orig/security/security.c +++ linux-next-20180717/security/security.c @@ -1121,6 +1121,7 @@ int security_kernel_load_data(enum kerne return ret; return ima_load_data(id); } +EXPORT_SYMBOL_GPL(security_kernel_load_data); int security_task_fix_setuid(struct cred *new, const struct cred *old, int flags)

