Skip to content

Commit f93bc86

Browse files
braunerMikulas Patocka
authored andcommitted
selftests: add dm-verity keyring selftests
Add selftests that verify the keyring behaves correctly. For simplicity this works with dm-verity as a module. Signed-off-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
1 parent 033724b commit f93bc86

File tree

3 files changed

+888
-0
lines changed

3 files changed

+888
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
TEST_PROGS := test-dm-verity-keyring.sh
4+
5+
include ../lib.mk
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CONFIG_BLK_DEV_DM=y
2+
CONFIG_DM_VERITY=m
3+
CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG=y
4+
CONFIG_MODULE_UNLOAD=y
5+
CONFIG_KEYS=y
6+
CONFIG_ASYMMETRIC_KEY_TYPE=y
7+
CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y
8+
CONFIG_X509_CERTIFICATE_PARSER=y
9+
CONFIG_PKCS7_MESSAGE_PARSER=y
10+
CONFIG_SYSTEM_DATA_VERIFICATION=y

0 commit comments

Comments
 (0)