audk/NetworkPkg
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
..
Application NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
Dhcp6Dxe NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
DnsDxe NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
HttpBootDxe NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
HttpDxe NetworkPkg/HttpDxe: Strip square brackets in IPv6 expressed HostName. 2018-08-03 08:34:03 +08:00
HttpUtilitiesDxe NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
IScsiDxe NetworkPkg: IScsiDxe: Remove the redundant code and definition. 2018-08-23 16:30:45 +08:00
Include/Guid NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
Ip6Dxe NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
IpSecDxe NetworkPkg: IpSecDxe: Remove the redundant code. 2018-08-23 16:30:46 +08:00
Mtftp6Dxe NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
TcpDxe NetworkPkg: TcpDxe: Remove the redundant code. 2018-08-23 16:30:46 +08:00
TlsAuthConfigDxe NetworkPkg/TlsAuthConfigDxe: fix TlsCaCertificate attributes retrieval 2018-08-22 10:32:43 +02:00
TlsDxe NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
Udp6Dxe NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
UefiPxeBcDxe NetworkPkg: UefiPxeBcDxe: Add EXCLUSIVE attribute when opening SNP protocol installed by PXE. 2018-09-17 14:32:35 +08:00
NetworkPkg.dec NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
NetworkPkg.dsc NetworkPkg: Removing ipf which is no longer supported from edk2. 2018-08-14 08:58:30 +08:00
NetworkPkg.uni NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00
NetworkPkgExtra.uni NetworkPkg: Clean up source files 2018-06-28 11:19:49 +08:00