Bug 1308851 - Open up devices for NVIDIA proprietary driver in the sandbox. r?jld draft
authorGian-Carlo Pascutto <gcp@mozilla.com>
Mon, 10 Oct 2016 20:51:21 +0200
changeset 423267 9a3350560200154cecb62113b814f9878dcd2629
parent 423257 3cd0102f89e953c1bc0598bffec956221e4207a3
child 533410 249f47e39b3d806b7b0acf1ca5d2223c11d429af
push id31855
push usergpascutto@mozilla.com
push dateMon, 10 Oct 2016 18:52:55 +0000
reviewersjld
bugs1308851
milestone52.0a1
Bug 1308851 - Open up devices for NVIDIA proprietary driver in the sandbox. r?jld MozReview-Commit-ID: 5OMRNSPBbe1
security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp
--- 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)
 {