audk/NetworkPkg/UefiPxeBcDxe
edk2-devel-bounces@lists.01.org cde5a72d36 NetworkPkg: UefiPxeBcDxe: Add EXCLUSIVE attribute when opening SNP protocol installed by PXE.
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1152

v2: Sync the same logic to Ipv6 and update code comments.

The PXE driver installs a SNP and open this SNP with attribute BY_DRIVER
to avoid it being opened by MNP driver, this SNP is also expected not to
be opened by other drivers with EXCLUSIVE attribute. In some cases, other
drivers may happen to do this by error, and thus cause a system crash.
This patch adds EXCLUSIVE attribute when opening SNP in PXE driver, and
will reject all OpenProtocol requests by EXCLUSIVE.

Cc: Subramanian, Sriram <sriram-s@hpe.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Wu Jiaxin <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Wang Fan <fan.wang@intel.com>
Reviewed-by: Sriram Subramanian <sriram-s@hpe.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
2018-09-17 14:32:35 +08:00
..
ComponentName.c NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
PxeBcBoot.c NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
PxeBcBoot.h Fix bugs in PXE driver when using option 43 for boot server list and boot menu prompt. 2012-08-24 08:25:42 +00:00
PxeBcDhcp4.c NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
PxeBcDhcp4.h NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
PxeBcDhcp6.c NetworkPkg: UefiPxeBcDxe: Remove the redundant code. 2018-08-23 16:30:47 +08:00
PxeBcDhcp6.h NetworkPkg: UefiPxeBcDxe: Remove the redundant code. 2018-08-23 16:30:47 +08:00
PxeBcDriver.c NetworkPkg: UefiPxeBcDxe: Add EXCLUSIVE attribute when opening SNP protocol installed by PXE. 2018-09-17 14:32:35 +08:00
PxeBcDriver.h Update dual network stack drivers to produce multiple Driver Binding Protocol. 2013-04-25 01:33:43 +00:00
PxeBcImpl.c NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
PxeBcImpl.h NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
PxeBcMtftp.c NetworkPkg:Replace unsafe string functions. 2015-07-08 12:17:11 +00:00
PxeBcMtftp.h NetworkPkg:Replace unsafe string functions. 2015-07-08 12:17:11 +00:00
PxeBcSupport.c NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
PxeBcSupport.h NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
UefiPxeBcDxe.inf NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
UefiPxeBcDxe.uni NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
UefiPxeBcDxeExtra.uni NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00