[PATCH 15/15] uefirtauthvar: cleanup environment for another authenticated variable

Ivan Hu ivan.hu at canonical.com
Wed Oct 22 09:40:40 UTC 2014


Delete the test authenticated variable created by another key before starting
the tests.

Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
---
 src/uefi/uefirtauthvar/uefirtauthvar.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/uefi/uefirtauthvar/uefirtauthvar.c b/src/uefi/uefirtauthvar/uefirtauthvar.c
index 1afa1de..7d2fa05 100644
--- a/src/uefi/uefirtauthvar/uefirtauthvar.c
+++ b/src/uefi/uefirtauthvar/uefirtauthvar.c
@@ -96,9 +96,10 @@ static void uefirtvariable_env_cleanup(void)
 	uint32_t attributestest;
 
 	getvar(&gtestguid, &attributestest, &getdatasize, data, &status);
-	if (status == EFI_SUCCESS)
+	if (status == EFI_SUCCESS) {
 		setvar(&gtestguid, attributes, sizeof(AuthVarDel), AuthVarDel, &status);
-
+		setvar(&gtestguid, attributes, sizeof(AuthVarDelDiff), AuthVarDelDiff, &status);
+	}
 }
 
 static int uefirtauthvar_init(fwts_framework *fw)
-- 
1.7.9.5




More information about the fwts-devel mailing list