зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1512731: Add sandbox read rule for user's AppData\Local Fonts dir. r=handyman
This commit is contained in:
Родитель
c1fae83952
Коммит
d2f299b489
|
@ -495,6 +495,11 @@ void SandboxBroker::SetSecurityLevelForContentProcess(int32_t aSandboxLevel,
|
|||
"With these static arguments AddRule should never fail, "
|
||||
"what happened?");
|
||||
} else {
|
||||
// Add rule to allow access to user specific fonts.
|
||||
AddCachedDirRule(mPolicy, sandbox::TargetPolicy::FILES_ALLOW_READONLY,
|
||||
sLocalAppDataDir,
|
||||
NS_LITERAL_STRING("\\Microsoft\\Windows\\Fonts\\*"));
|
||||
|
||||
// Add rule to allow read access to installation directory.
|
||||
AddCachedDirRule(mPolicy, sandbox::TargetPolicy::FILES_ALLOW_READONLY,
|
||||
sBinDir, NS_LITERAL_STRING("\\*"));
|
||||
|
|
Загрузка…
Ссылка в новой задаче