Bug 1308851 - Open up devices for NVIDIA proprietary driver in the sandbox. r?jld
MozReview-Commit-ID: 5OMRNSPBbe1
--- a/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp
+++ b/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp
@@ -131,16 +131,19 @@ SandboxBrokerPolicyFactory::SandboxBroke
if (NS_SUCCEEDED(rv)) {
policy->AddDir(rdwrcr, tmpPath.get());
}
}
// If the above fails at any point, fall back to a very good guess.
if (NS_FAILED(rv)) {
policy->AddDir(rdwrcr, "/tmp");
}
+
+ // Bug 1308851: NVIDIA proprietary driver when using WebGL
+ policy->AddPrefix(rdwr, "/dev", "nvidia");
mCommonContentPolicy.reset(policy);
#endif
}
#ifdef MOZ_CONTENT_SANDBOX
UniquePtr<SandboxBroker::Policy>
SandboxBrokerPolicyFactory::GetContentPolicy(int aPid)
{