Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions drivers/soc/apple/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,24 @@ config APPLE_AURORA_BOOT_SECURITY_LOCKDOWN
locked down by this option; lockdown= on the command line still
applies.

config APPLE_AURORA_BOOT_SECURITY_KUNIT_TEST
tristate "KUnit tests for the Aurora boot security record" if !KUNIT_ALL_TESTS
depends on APPLE_AURORA_BOOT_SECURITY && KUNIT && OF_DYNAMIC
default KUNIT_ALL_TESTS
help
Build boot records in the live device tree and check what the
driver decides from them: which Stage 1 measurement makes the
chain enforced, when a claimed "verified" state is demoted, which
records are ignored, and what every file in
/sys/firmware/aurora/boot_security/ shows for absent, empty,
unterminated, short, long and oversized properties. The built-in
init suite adds and removes a test /chosen/aurora,boot-security
and skips when APPLE_AURORA_BOOT_SECURITY_LOCKDOWN is set. Both
suites skip while the boot-security state is in use. The IMA
submission case skips when IMA is enabled. No hardware is touched.

If unsure, say N.

endmenu

endif
Expand Down
3 changes: 3 additions & 0 deletions drivers/soc/apple/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,6 @@ obj-$(CONFIG_APPLE_ADT_SYSFS) += adt-sysfs.o
obj-$(CONFIG_APPLE_ADT_SYSFS_KUNIT_TEST) += adt-sysfs-test.o

obj-$(CONFIG_APPLE_AURORA_BOOT_SECURITY) += aurora-boot-security.o
ifeq ($(CONFIG_APPLE_AURORA_BOOT_SECURITY_KUNIT_TEST),m)
obj-m += aurora-boot-security-test.o
endif
Loading
Loading