public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 5/8] SecurityPkg/Tcg2Config: Update RouteConfig function
@ 2018-04-18 20:33 Thomas Palmer
  2018-04-18 20:33 ` [PATCH 6/8] SecurityPkg/PwdCredentialProviderDxe: " Thomas Palmer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Thomas Palmer @ 2018-04-18 20:33 UTC (permalink / raw)
  To: edk2-devel
  Cc: joseph.shifflett, nickle.wang, eric.dong, jiewen.yao,
	Thomas Palmer

According to UEFI spec, the RouteConfig protocol function should populate
the Progress pointer with an address inside Configuration.  This patch
ensures that these functions are compliant when EFI_NOT_FOUND is returned.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Thomas Palmer <thomas.palmer@hpe.com>
---
 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c
index b3a849e91812..4195b6c68f5d 100644
--- a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c
+++ b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c
@@ -3,6 +3,7 @@
   NOTE: This module is only for reference only, each platform should have its own setup page.
 
 Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>
+(C) Copyright 2018 Hewlett Packard Enterprise Development LP<BR>
 This program and the accompanying materials 
 are licensed and made available under the terms and conditions of the BSD License 
 which accompanies this distribution.  The full text of the license may be found at 
@@ -375,6 +376,8 @@ Tcg2RouteConfig (
     return EFI_INVALID_PARAMETER;
   }
 
+  *Progress = Configuration;
+
   return EFI_NOT_FOUND;
 }
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 6/8] SecurityPkg/PwdCredentialProviderDxe: Update RouteConfig function
  2018-04-18 20:33 [PATCH 5/8] SecurityPkg/Tcg2Config: Update RouteConfig function Thomas Palmer
@ 2018-04-18 20:33 ` Thomas Palmer
  2018-04-18 20:33 ` [PATCH 7/8] SecurityPkg/UserIdentifyManagerDxe: " Thomas Palmer
  2018-04-18 20:33 ` [PATCH 8/8] SecurityPkg/UserProfileManagerDxe: " Thomas Palmer
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Palmer @ 2018-04-18 20:33 UTC (permalink / raw)
  To: edk2-devel
  Cc: joseph.shifflett, nickle.wang, eric.dong, jiewen.yao,
	Thomas Palmer

According to UEFI spec, the RouteConfig protocol function should populate
the Progress pointer with an address inside Configuration.  This patch
ensures that these functions are compliant when EFI_NOT_FOUND is returned.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Thomas Palmer <thomas.palmer@hpe.com>
---
 .../PwdCredentialProviderDxe/PwdCredentialProvider.c                   | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProvider.c b/SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProvider.c
index b9e89cbfe796..ec1e3893fc04 100644
--- a/SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProvider.c
+++ b/SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProvider.c
@@ -2,6 +2,7 @@
   Password Credential Provider driver implementation.
     
 Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
+(C) Copyright 2018 Hewlett Packard Enterprise Development LP<BR>
 This program and the accompanying materials 
 are licensed and made available under the terms and conditions of the BSD License 
 which accompanies this distribution.  The full text of the license may be found at 
@@ -646,6 +647,8 @@ FakeRouteConfig (
     return EFI_INVALID_PARAMETER;
   }
 
+  *Progress = Configuration;
+
   return EFI_NOT_FOUND;
 }
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 7/8] SecurityPkg/UserIdentifyManagerDxe: Update RouteConfig function
  2018-04-18 20:33 [PATCH 5/8] SecurityPkg/Tcg2Config: Update RouteConfig function Thomas Palmer
  2018-04-18 20:33 ` [PATCH 6/8] SecurityPkg/PwdCredentialProviderDxe: " Thomas Palmer
@ 2018-04-18 20:33 ` Thomas Palmer
  2018-04-18 20:33 ` [PATCH 8/8] SecurityPkg/UserProfileManagerDxe: " Thomas Palmer
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Palmer @ 2018-04-18 20:33 UTC (permalink / raw)
  To: edk2-devel
  Cc: joseph.shifflett, nickle.wang, eric.dong, jiewen.yao,
	Thomas Palmer

According to UEFI spec, the RouteConfig protocol function should populate
the Progress pointer with an address inside Configuration.  This patch
ensures that these functions are compliant when EFI_NOT_FOUND is returned.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Thomas Palmer <thomas.palmer@hpe.com>
---
 .../UserIdentification/UserIdentifyManagerDxe/UserIdentifyManager.c    | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManager.c b/SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManager.c
index a7467b366290..f9743db84d88 100644
--- a/SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManager.c
+++ b/SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManager.c
@@ -2,6 +2,7 @@
   This driver manages user information and produces user manager protocol.
   
 Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
+(C) Copyright 2018 Hewlett Packard Enterprise Development LP<BR>
 This program and the accompanying materials 
 are licensed and made available under the terms and conditions of the BSD License 
 which accompanies this distribution.  The full text of the license may be found at 
@@ -2752,6 +2753,8 @@ FakeRouteConfig (
     return EFI_INVALID_PARAMETER;
   }
 
+  *Progress = Configuration;
+
   return EFI_NOT_FOUND;
 }
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 8/8] SecurityPkg/UserProfileManagerDxe: Update RouteConfig function
  2018-04-18 20:33 [PATCH 5/8] SecurityPkg/Tcg2Config: Update RouteConfig function Thomas Palmer
  2018-04-18 20:33 ` [PATCH 6/8] SecurityPkg/PwdCredentialProviderDxe: " Thomas Palmer
  2018-04-18 20:33 ` [PATCH 7/8] SecurityPkg/UserIdentifyManagerDxe: " Thomas Palmer
@ 2018-04-18 20:33 ` Thomas Palmer
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Palmer @ 2018-04-18 20:33 UTC (permalink / raw)
  To: edk2-devel
  Cc: joseph.shifflett, nickle.wang, eric.dong, jiewen.yao,
	Thomas Palmer

According to UEFI spec, the RouteConfig protocol function should populate
the Progress pointer with an address inside Configuration.  This patch
ensures that these functions are compliant when EFI_NOT_FOUND is returned.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Thomas Palmer <thomas.palmer@hpe.com>
---
 .../UserIdentification/UserProfileManagerDxe/UserProfileManager.c      | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManager.c b/SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManager.c
index 4bba0824c7ab..b84f2cdf9c02 100644
--- a/SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManager.c
+++ b/SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManager.c
@@ -5,6 +5,7 @@
   policy, etc.
 
 Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
+(C) Copyright 2018 Hewlett Packard Enterprise Development LP<BR>
 This program and the accompanying materials 
 are licensed and made available under the terms and conditions of the BSD License 
 which accompanies this distribution.  The full text of the license may be found at 
@@ -805,6 +806,8 @@ FakeRouteConfig (
     return EFI_INVALID_PARAMETER;
   }
 
+  *Progress = Configuration;
+
   return EFI_NOT_FOUND;
 }
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-18 20:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-18 20:33 [PATCH 5/8] SecurityPkg/Tcg2Config: Update RouteConfig function Thomas Palmer
2018-04-18 20:33 ` [PATCH 6/8] SecurityPkg/PwdCredentialProviderDxe: " Thomas Palmer
2018-04-18 20:33 ` [PATCH 7/8] SecurityPkg/UserIdentifyManagerDxe: " Thomas Palmer
2018-04-18 20:33 ` [PATCH 8/8] SecurityPkg/UserProfileManagerDxe: " Thomas Palmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox