Adjust sandbox profile for simulator.
authorpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 May 2018 20:44:36 +0000 (20:44 +0000)
committerpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 May 2018 20:44:36 +0000 (20:44 +0000)
https://bugs.webkit.org/show_bug.cgi?id=185319

Reviewed by Brent Fulgham.

Disable Kerberos rules, as well as rules related to NSApplication initialization.

* WebProcess/com.apple.WebProcess.sb.in:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231374 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/WebProcess/com.apple.WebProcess.sb.in

index 9bb2d41..ce7d6ff 100644 (file)
@@ -1,3 +1,14 @@
+2018-05-04  Per Arne Vollan  <pvollan@apple.com>
+
+        Adjust sandbox profile for simulator.
+        https://bugs.webkit.org/show_bug.cgi?id=185319
+
+        Reviewed by Brent Fulgham.
+
+        Disable Kerberos rules, as well as rules related to NSApplication initialization.
+
+        * WebProcess/com.apple.WebProcess.sb.in:
+
 2018-05-04  Tim Horton  <timothy_horton@apple.com>
 
         Wasted time dlopening Lookup when tearing down a WKWebView
index 3a2dbc9..eac416a 100644 (file)
 (allow mach-lookup
     (global-name "com.apple.nehelper"))
 
+#if PLATFORM(MAC)
 ;; FIXME should be removed when <rdar://problem/9347205> + related radar in Safari is fixed
 (allow mach-lookup
        (global-name "org.h5l.kcm")
        (global-name "com.apple.GSSCred")
        (global-name "com.apple.system.logger")
        (global-name "com.apple.system.notification_center"))
-#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101300
+#if __MAC_OS_X_VERSION_MIN_REQUIRED < 101300
 (allow network-outbound
        (remote udp))
 #endif
         (literal "/private/etc/host")
         (subpath "/Library/KerberosPlugins/GSSAPI")
         (subpath "/Library/KerberosPlugins/KerberosFrameworkPlugins"))
+#endif
 
 (if (defined? 'vnode-type)
         (deny file-write-create (vnode-type SYMLINK)))
        (global-name "com.apple.coreservices.appleevents")
        (global-name "com.apple.pasteboard.1")
        (global-name "com.apple.speech.recognitionserver"))
+#if PLATFORM(MAC)
 ;; Also part of unnecessary NSApplication initialization, but we can't block access to these yet, see <rdar://problem/13869765>.
 (allow file-read*
        (subpath "/Library/Components")
        (home-subpath "/Library/Components")
        (home-subpath "/Library/Keyboard Layouts")
        (home-subpath "/Library/Input Methods"))
+#endif
 
 ;; AirPlay
 (allow mach-lookup