From 031e5cce385d3f96b1caa1d53495332a7eb03749 Mon Sep 17 00:00:00 2001 From: Steve McIntyre Date: Tue, 23 Mar 2021 23:49:46 +0000 Subject: New upstream version 15.3 --- lib/security_policy.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'lib/security_policy.c') diff --git a/lib/security_policy.c b/lib/security_policy.c index 211f1cfd..6c42cc14 100644 --- a/lib/security_policy.c +++ b/lib/security_policy.c @@ -1,22 +1,12 @@ +// SPDX-License-Identifier: BSD-2-Clause-Patent /* * Copyright 2012 * - * see COPYING file - * * Install and remove a platform security2 override policy */ - -#include -#include - #include "shim.h" -#include -#include -#include - #if defined(OVERRIDE_SECURITY_POLICY) -#include /* * See the UEFI Platform Initialization manual (Vol2: DXE) for this @@ -60,7 +50,7 @@ extern EFI_STATUS thunk_security_policy_authentication( const EFI_SECURITY_PROTOCOL *This, UINT32 AuthenticationStatus, const EFI_DEVICE_PATH_PROTOCOL *DevicePath - ) + ) __attribute__((unused)); extern EFI_STATUS thunk_security2_policy_authentication( @@ -69,7 +59,7 @@ extern EFI_STATUS thunk_security2_policy_authentication( VOID *FileBuffer, UINTN FileSize, BOOLEAN BootPolicy - ) + ) __attribute__((unused)); static __attribute__((used)) EFI_STATUS @@ -112,7 +102,7 @@ security_policy_authentication ( ) { EFI_STATUS efi_status, fail_status; - EFI_DEVICE_PATH *DevPath + EFI_DEVICE_PATH *DevPath = DuplicateDevicePath((EFI_DEVICE_PATH *)DevicePathConst), *OrigDevPath = DevPath; EFI_HANDLE h; -- cgit v1.2.3