Re: [U-Boot] [PATCH] efi_loader: variable: attributes may not be changed if a variable exists

2019-05-15 Thread Heinrich Schuchardt
On 5/15/19 8:09 AM, AKASHI Takahiro wrote: > On Tue, May 14, 2019 at 08:08:49PM +0200, Heinrich Schuchardt wrote: >> On 5/14/19 8:35 AM, Heinrich Schuchardt wrote: >>> On 5/14/19 6:57 AM, AKASHI Takahiro wrote: If a variable already exists, efi_set_variable() should not change the

Re: [U-Boot] [PATCH] efi_loader: variable: attributes may not be changed if a variable exists

2019-05-15 Thread AKASHI Takahiro
On Tue, May 14, 2019 at 08:08:49PM +0200, Heinrich Schuchardt wrote: > On 5/14/19 8:35 AM, Heinrich Schuchardt wrote: > >On 5/14/19 6:57 AM, AKASHI Takahiro wrote: > >>If a variable already exists, efi_set_variable() should not change > >>the variable's attributes. This patch enforces it. > > >

Re: [U-Boot] [PATCH] efi_loader: variable: attributes may not be changed if a variable exists

2019-05-14 Thread Heinrich Schuchardt
On 5/14/19 8:35 AM, Heinrich Schuchardt wrote: On 5/14/19 6:57 AM, AKASHI Takahiro wrote: If a variable already exists, efi_set_variable() should not change the variable's attributes. This patch enforces it. This behavior is mandated by UEFI spec 2.7. Reviewed-by: Heinrich Schuchardt This

Re: [U-Boot] [PATCH] efi_loader: variable: attributes may not be changed if a variable exists

2019-05-14 Thread Heinrich Schuchardt
On 5/14/19 6:57 AM, AKASHI Takahiro wrote: If a variable already exists, efi_set_variable() should not change the variable's attributes. This patch enforces it. This behavior is mandated by UEFI spec 2.7. Reviewed-by: Heinrich Schuchardt Signed-off-by: AKASHI Takahiro ---

[U-Boot] [PATCH] efi_loader: variable: attributes may not be changed if a variable exists

2019-05-13 Thread AKASHI Takahiro
If a variable already exists, efi_set_variable() should not change the variable's attributes. This patch enforces it. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_variable.c | 9 + 1 file changed, 9 insertions(+) diff --git a/lib/efi_loader/efi_variable.c