diff --git a/src/Platform_Linux.cpp b/src/Platform_Linux.cpp index ae6c237..8555894 100644 --- a/src/Platform_Linux.cpp +++ b/src/Platform_Linux.cpp @@ -27,7 +27,7 @@ std::pair Platform::UEFIReadVariable(const std::stri void Platform::UEFIWriteVariable(const std::string& name, void* buffer, std::size_t size) { - if (efi_set_variable(EFI_GLOBAL_GUID, name.c_str(), static_cast(buffer), size, EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE, 0600) != 0) { + if (efi_set_variable(EFI_GLOBAL_GUID, name.c_str(), static_cast(buffer), size, EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE, 0644) != 0) { throw std::runtime_error("Failed to write UEFI variable: BootNext"); } }