Bug 1458553 - Return of Google Maps all black map with updated Nvidia web driver on Mac r=Alex_Gaynor draft
authorHaik Aftandilian <haftandilian@mozilla.com>
Wed, 02 May 2018 09:26:55 -0700
changeset 791112 d8eefdd5a180db5d3ea8207d923e021420f2318e
parent 790821 1c582cda2b8ac3bf155a065a2794b503b607d40c
push id108700
push userhaftandilian@mozilla.com
push dateThu, 03 May 2018 14:48:34 +0000
reviewersAlex_Gaynor
bugs1458553
milestone61.0a1
Bug 1458553 - Return of Google Maps all black map with updated Nvidia web driver on Mac r=Alex_Gaynor Update Mac sandbox rules to allow executable mappings from /Library/GPUBundles which is used by the Nvidia downloadable "Web" driver. MozReview-Commit-ID: L2nTP4YWdJJ
security/sandbox/mac/SandboxPolicies.h
--- a/security/sandbox/mac/SandboxPolicies.h
+++ b/security/sandbox/mac/SandboxPolicies.h
@@ -75,28 +75,29 @@ static const char contentSandboxRules[] 
     (deny iokit-get-properties))
   (if (defined? 'file-map-executable)
     (deny file-map-executable))
 
   (if (defined? 'file-map-executable)
     (allow file-map-executable file-read*
       (subpath "/System")
       (subpath "/usr/lib")
+      (subpath "/Library/GPUBundles")
       (subpath appdir-path))
     (allow file-read*
         (subpath "/System")
         (subpath "/usr/lib")
+        (subpath "/Library/GPUBundles")
         (subpath appdir-path)))
 
   ; Allow read access to standard system paths.
   (allow file-read*
     (require-all (file-mode #o0004)
       (require-any
         (subpath "/Library/Filesystems/NetFSPlugins")
-        (subpath "/Library/GPUBundles")
         (subpath "/usr/share"))))
 
   ; Top-level directory metadata access (bug 1404298)
   (allow file-read-metadata (regex #"^/[^/]+$"))
 
   (allow file-read-metadata
     (literal "/private/etc/localtime")
     (regex #"^/private/tmp/KSInstallAction\."))