Message ID | 1413970840-27212-8-git-send-email-ivan.hu@canonical.com |
---|---|
State | Not Applicable |
Headers | show |
On 22/10/14 10:40, Ivan Hu wrote: > Delete the test authenticated variable created by another key before starting > the tests. > > Signed-off-by: Ivan Hu <ivan.hu@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: Colin Ian King <colin.king@canonical.com>
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@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@canonical.com>
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)
Delete the test authenticated variable created by another key before starting the tests. Signed-off-by: Ivan Hu <ivan.hu@canonical.com> --- src/uefi/uefirtauthvar/uefirtauthvar.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)