test: add firmware_class loader test

This provides a simple interface to trigger the firmware_class loader
to test built-in, filesystem, and user helper modes. Additionally adds
tests via the new interface to the selftests tree.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Kees Cook
2014-07-14 14:38:12 -07:00
committed by Greg Kroah-Hartman
parent b1425189d0
commit 0a8adf5847
7 changed files with 310 additions and 0 deletions

View File

@@ -1649,6 +1649,19 @@ config TEST_BPF
If unsure, say N.
config TEST_FIRMWARE
tristate "Test firmware loading via userspace interface"
default n
depends on FW_LOADER
help
This builds the "test_firmware" module that creates a userspace
interface for testing firmware loading. This can be used to
control the triggering of firmware loading without needing an
actual firmware-using device. The contents can be rechecked by
userspace.
If unsure, say N.
source "samples/Kconfig"
source "lib/Kconfig.kgdb"