]> git.baikalelectronics.ru Git - kernel.git/commit
security: export security_kernel_load_data function
authorArnd Bergmann <arnd@arndb.de>
Tue, 17 Jul 2018 20:23:37 +0000 (22:23 +0200)
committerJames Morris <james.morris@microsoft.com>
Wed, 18 Jul 2018 04:26:51 +0000 (21:26 -0700)
commitf7a2ef47e673a454219dd117e57d402d7fe0a2e7
tree1ec49b4c0bc1b7476ca1cc71061a4f5ca2cb152d
parent0119d6302c005c205e295ab93121c5ede83d527d
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: 61990b51209e ("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>
security/security.c