]> git.proxmox.com Git - mirror_edk2.git/commit - SecurityPkg/Library/AuthVariableLib/AuthService.c
SecurityPkg: Make time based AuthVariable update atomic
authorChao Zhang <chao.b.zhang@intel.com>
Fri, 10 Jul 2015 06:20:04 +0000 (06:20 +0000)
committerczhang46 <czhang46@Edk2>
Fri, 10 Jul 2015 06:20:04 +0000 (06:20 +0000)
commit64b6a3ff4a2ba45681e79c911d7061c08f1a139c
tree80bba21c15fc6ae7aa74aa176cb5006ba49f18c8
parentcfa451c84a6a4dad6fa96da56802ef8112de301f
SecurityPkg: Make time based AuthVariable update atomic

System may break during time based AuthVariable update, causing certdb inconsistent. 2 ways are used to ensure update atomic.
 1. Delete cert in certdb after variable is deleted
 2. Clean up certdb on variable initialization

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17919 6f19259b-4bc3-4df7-8a09-765794883524
SecurityPkg/Library/AuthVariableLib/AuthService.c
SecurityPkg/Library/AuthVariableLib/AuthServiceInternal.h
SecurityPkg/Library/AuthVariableLib/AuthVariableLib.c