summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/SecurityStubDxe
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-11-26 01:31:48 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-11-26 01:31:48 +0000
commitcd98f3050246e64f149d9a13032bc1608421811e (patch)
tree69226aa245cbd429fd94559ce6862b0d22d38301 /MdeModulePkg/Universal/SecurityStubDxe
parent7748df3da985214b8c6e39ea983018c212198d54 (diff)
downloadedk2-cd98f3050246e64f149d9a13032bc1608421811e.tar.gz
edk2-cd98f3050246e64f149d9a13032bc1608421811e.tar.bz2
edk2-cd98f3050246e64f149d9a13032bc1608421811e.zip
Add new SecurityManagementLib, and update SecurityStub driver to use this lib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9488 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/SecurityStubDxe')
-rw-r--r--MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c14
-rw-r--r--MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf7
2 files changed, 9 insertions, 12 deletions
diff --git a/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c b/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c
index ac3ab297ab..1660828db8 100644
--- a/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c
+++ b/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c
@@ -1,8 +1,7 @@
/** @file
- This driver implements a sample platform security service, which does
- nothing and always return EFI_SUCCESS.
-
- Copyright (c) 2006 - 2008, Intel Corporation
+ This driver produces security architectural protocol based on SecurityManagementLib.
+
+ Copyright (c) 2006 - 2009, Intel Corporation
All rights reserved. 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
@@ -19,6 +18,7 @@
#include <Library/DebugLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiDriverEntryPoint.h>
+#include <Library/SecurityManagementLib.h>
//
// Handle for the Security Architectural Protocol instance produced by this driver
@@ -68,11 +68,7 @@ SecurityStubAuthenticateState (
IN CONST EFI_DEVICE_PATH_PROTOCOL *File
)
{
- if (File == NULL) {
- return EFI_INVALID_PARAMETER;
- }
-
- return EFI_SUCCESS;
+ return ExecuteSecurityHandlers (AuthenticationStatus, File);
}
//
diff --git a/MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf b/MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
index 2d02248b13..4830a82a18 100644
--- a/MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
+++ b/MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
@@ -1,8 +1,7 @@
#/** @file
-# Sample SecurityStub driver implements the dummy platform security service.
-# It always return success without any authentication check.
+# This driver produces security architectural protocol based on SecurityManagementLib.
#
-# Copyright (c) 2006 - 2008, Intel Corporation
+# Copyright (c) 2006 - 2009, Intel Corporation
# All rights reserved. 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
@@ -32,11 +31,13 @@
[Packages]
MdePkg/MdePkg.dec
+ MdeModulePkg/MdeModulePkg.dec
[LibraryClasses]
UefiDriverEntryPoint
UefiBootServicesTableLib
DebugLib
+ SecurityManagementLib
[Protocols]
gEfiSecurityArchProtocolGuid ## PRODUCED