ACK: [PATCH 15/15] uefirtauthvar: cleanup environment for another authenticated variable
Alex Hung
alex.hung at canonical.com
Wed Oct 29 03:17:45 UTC 2014
On 14-10-22 05:40 PM, Ivan Hu wrote:
> 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(>estguid, &attributestest, &getdatasize, data, &status);
> - if (status == EFI_SUCCESS)
> + if (status == EFI_SUCCESS) {
> setvar(>estguid, attributes, sizeof(AuthVarDel), AuthVarDel, &status);
> -
> + setvar(>estguid, attributes, sizeof(AuthVarDelDiff), AuthVarDelDiff, &status);
> + }
> }
>
> static int uefirtauthvar_init(fwts_framework *fw)
Acked-by: Alex Hung <alex.hung at canonical.com>
More information about the fwts-devel
mailing list