Skip to content

Commit

Permalink
Bug 1423296 - Don't use MITIGATION_IMAGE_LOAD_NO_LOW_LABEL when runni…
Browse files Browse the repository at this point in the history
…ng from a network drive. r=jimm, a=jcristau

--HG--
extra : source : 3a5a8818db5af9993407439a97bf3c4638fb34fb
  • Loading branch information
bobowen committed Dec 8, 2017
1 parent 01aa5d1 commit 9925ecb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions security/sandbox/win/src/sandboxbroker/sandboxBroker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,11 +485,12 @@ SandboxBroker::SetSecurityLevelForContentProcess(int32_t aSandboxLevel,
}

if (aSandboxLevel > 3) {
mitigations |= sandbox::MITIGATION_IMAGE_LOAD_NO_LOW_LABEL;
// If we're running from a network drive then we can't block loading from
// remote locations.
// remote locations. Strangely using MITIGATION_IMAGE_LOAD_NO_LOW_LABEL in
// this situation also means the process fails to start (bug 1423296).
if (!sRunningFromNetworkDrive) {
mitigations |= sandbox::MITIGATION_IMAGE_LOAD_NO_REMOTE;
mitigations |= sandbox::MITIGATION_IMAGE_LOAD_NO_REMOTE |
sandbox::MITIGATION_IMAGE_LOAD_NO_LOW_LABEL;
}
}

Expand Down

0 comments on commit 9925ecb

Please sign in to comment.