Changeset 184931 in webkit


Ignore:
Timestamp:
May 27, 2015 5:34:39 PM (9 years ago)
Author:
andersca@apple.com
Message:

Can't load local files in WKWebView from containerized app
https://bugs.webkit.org/show_bug.cgi?id=145424
rdar://problem/20831176

Reviewed by Dan Bernstein.

Allow the network process to load local files from its bundle as long as it has
the sandbox extensions to do so.

This was originally added to only allow SSO to read the Info.plist inside its own application
bundle, but being able to read the application bundle from within the network process should be OK.

  • Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb:
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r184930 r184931  
     12015-05-27  Anders Carlsson  <andersca@apple.com>
     2
     3        Can't load local files in WKWebView from containerized app
     4        https://bugs.webkit.org/show_bug.cgi?id=145424
     5        rdar://problem/20831176
     6
     7        Reviewed by Dan Bernstein.
     8
     9        Allow the network process to load local files from its bundle as long as it has
     10        the sandbox extensions to do so.
     11
     12        This was originally added to only allow SSO to read the Info.plist inside its own application
     13        bundle, but being able to read the application bundle from within the network process should be OK.
     14
     15        * Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb:
     16
    1172015-05-27  Andreas Kling  <akling@apple.com>
    218
  • trunk/Source/WebKit2/Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb

    r172989 r184931  
    4343;; enough access to make it possible.
    4444
    45 ;; Disallow networking process from reading any bundles, even with the read extension
    46 (deny file-read*
    47     (require-all
    48         (subpath "/Applications")
    49         (extension "com.apple.app-sandbox.read")))
    50 (deny file-read*
    51     (require-all
    52         (subpath "/private/var/mobile/Containers/Bundle/Application")
    53         (extension "com.apple.app-sandbox.read")))
    54 
    55 ;; Allow the networking process to read directories inside the bundle directories
    56 ;; that we may have killed off above
    57 (allow file-read*
    58     (require-all
    59         (extension "com.apple.app-sandbox.read")
    60         (vnode-type DIRECTORY)))
    61 
    62 ;; Allow the networking process to read the Info.plist files
    63 (allow file-read*
    64     (require-all
    65         (extension "com.apple.app-sandbox.read")
    66         (regex #"/Info\.plist$")))
    67 
    6845;; IOKit user clients
    6946(allow iokit-open
Note: See TracChangeset for help on using the changeset viewer.