From ff7ef56cdafd89300ee7f38a47d3e7dcbc8da924 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Sun, 8 Dec 2024 01:25:19 +0100 Subject: [PATCH] Dev options file must be persistent, since it manipulates MKEK which is in turn persistent. Signed-off-by: Pol Henarejos --- src/hsm/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hsm/files.c b/src/hsm/files.c index cefc844..ef06e42 100644 --- a/src/hsm/files.c +++ b/src/hsm/files.c @@ -61,7 +61,7 @@ file_t file_entries[] = { .type = FILE_TYPE_INTERNAL_EF | FILE_DATA_FLASH, .data = NULL, .ef_structure = FILE_EF_TRANSPARENT, .acl = { 0xff } }, //retries PIN (SOPIN) /* 15 */ { .fid = EF_DEVOPS, .parent = 5, .name = NULL, - .type = FILE_TYPE_INTERNAL_EF | FILE_DATA_FLASH, .data = NULL, + .type = FILE_TYPE_INTERNAL_EF | FILE_DATA_FLASH | FILE_PERSISTENT, .data = NULL, .ef_structure = FILE_EF_TRANSPARENT, .acl = { 0xff } }, //Device options /* 16 */ { .fid = EF_PRKDFS, .parent = 5, .name = NULL, .type = FILE_TYPE_WORKING_EF, .data = NULL, .ef_structure = FILE_EF_TRANSPARENT, .acl = { 0 } }, //EF.PrKDFs