Skip to content

Commit

Permalink
security: export security_kernel_load_data function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnd Bergmann authored and James Morris committed Jul 18, 2018
1 parent 4f0496d commit 83a68a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions security/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,7 @@ int security_kernel_load_data(enum kernel_load_data_id id)
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)
Expand Down

0 comments on commit 83a68a0

Please sign in to comment.