efivarfs: add helper to convert from UC16 name and GUID to utf8 name

These will be used by a later patch to check for uniqueness on initial
EFI variable iteration.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
James Bottomley 2025-01-06 18:35:21 -08:00 • committed by Ard Biesheuvel
commit 1aba87f92d
3 changed files with 29 additions and 14 deletions