зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1423296: Don't use MITIGATION_IMAGE_LOAD_NO_LOW_LABEL when running from a network drive. r=jimm
This commit is contained in:
Родитель
3ca7fb8834
Коммит
e19c11cd2a
|
@ -487,11 +487,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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче