Skip to content

Commit 83a68a0

Browse files
arndbJames Morris
authored andcommitted
security: export security_kernel_load_data function
The firmware_loader can be built as a loadable module, which now fails when CONFIG_SECURITY is enabled, because a call to the security_kernel_load_data() function got added, and this is not exported to modules: ERROR: "security_kernel_load_data" [drivers/base/firmware_loader/firmware_class.ko] undefined! Add an EXPORT_SYMBOL_GPL() to make it available here. Fixes: 6e85265 ("firmware: add call to LSM hook before firmware sysfs fallback") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: James Morris <james.morris@microsoft.com>
1 parent 4f0496d commit 83a68a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

security/security.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,7 @@ int security_kernel_load_data(enum kernel_load_data_id id)
10651065
return ret;
10661066
return ima_load_data(id);
10671067
}
1068+
EXPORT_SYMBOL_GPL(security_kernel_load_data);
10681069

10691070
int security_task_fix_setuid(struct cred *new, const struct cred *old,
10701071
int flags)

0 commit comments

Comments
 (0)