/* This API function locks the interface so that no more policy updates can be performed or changes made to the enforcement until the next boot. */
EFI_STATUS EFIAPI LockVariablePolicy(VOID)
/* This API function locks the interface so that no more policy updates can be performed or changes made to the enforcement until the next boot. */
EFI_STATUS EFIAPI LockVariablePolicy(VOID)
{
  if (!IsVariablePolicyLibInitialized ()) {
    return EFI_NOT_READY;
  }
  if (mInterfaceLocked) {
    return EFI_WRITE_PROTECTED;
  }
  mInterfaceLocked = TRUE;
  return EFI_SUCCESS;
}